Class VpcEndpointConnectionNotification
Provides a VPC Endpoint connection notification resource. Connection notifications notify subscribers of VPC Endpoint events.
Example Usage
using Pulumi;
using Aws = Pulumi.Aws;
class MyStack : Stack
{
public MyStack()
{
var topic = new Aws.Sns.Topic("topic", new Aws.Sns.TopicArgs
{
Policy = @"{
""Version"":""2012-10-17"",
""Statement"":[{
""Effect"": ""Allow"",
""Principal"": {
""Service"": ""vpce.amazonaws.com""
},
""Action"": ""SNS:Publish"",
""Resource"": ""arn:aws:sns:*:*:vpce-notification-topic""
}]
}
",
});
var fooVpcEndpointService = new Aws.Ec2.VpcEndpointService("fooVpcEndpointService", new Aws.Ec2.VpcEndpointServiceArgs
{
AcceptanceRequired = false,
NetworkLoadBalancerArns =
{
aws_lb.Test.Arn,
},
});
var fooVpcEndpointConnectionNotification = new Aws.Ec2.VpcEndpointConnectionNotification("fooVpcEndpointConnectionNotification", new Aws.Ec2.VpcEndpointConnectionNotificationArgs
{
ConnectionEvents =
{
"Accept",
"Reject",
},
ConnectionNotificationArn = topic.Arn,
VpcEndpointServiceId = fooVpcEndpointService.Id,
});
}
}
Inherited Members
Namespace: Pulumi.Aws.Ec2
Assembly: Pulumi.Aws.dll
Syntax
public class VpcEndpointConnectionNotification : CustomResource
Constructors
View SourceVpcEndpointConnectionNotification(String, VpcEndpointConnectionNotificationArgs, CustomResourceOptions)
Create a VpcEndpointConnectionNotification resource with the given unique name, arguments, and options.
Declaration
public VpcEndpointConnectionNotification(string name, VpcEndpointConnectionNotificationArgs args, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resource |
| VpcEndpointConnectionNotificationArgs | args | The arguments used to populate this resource's properties |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Properties
View SourceConnectionEvents
One or more endpoint events for which to receive notifications.
Declaration
public Output<ImmutableArray<string>> ConnectionEvents { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Collections.Immutable.ImmutableArray<System.String>> |
ConnectionNotificationArn
The ARN of the SNS topic for the notifications.
Declaration
public Output<string> ConnectionNotificationArn { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
NotificationType
The type of notification.
Declaration
public Output<string> NotificationType { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
State
The state of the notification.
Declaration
public Output<string> State { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
VpcEndpointId
The ID of the VPC Endpoint to receive notifications for.
Declaration
public Output<string> VpcEndpointId { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
VpcEndpointServiceId
The ID of the VPC Endpoint Service to receive notifications for.
Declaration
public Output<string> VpcEndpointServiceId { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Methods
View SourceGet(String, Input<String>, VpcEndpointConnectionNotificationState, CustomResourceOptions)
Get an existing VpcEndpointConnectionNotification resource's state with the given name, ID, and optional extra properties used to qualify the lookup.
Declaration
public static VpcEndpointConnectionNotification Get(string name, Input<string> id, VpcEndpointConnectionNotificationState state = null, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resulting resource. |
| Input<System.String> | id | The unique provider ID of the resource to lookup. |
| VpcEndpointConnectionNotificationState | state | Any extra arguments used during the lookup. |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Returns
| Type | Description |
|---|---|
| VpcEndpointConnectionNotification |