Show / Hide Table of Contents

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,
    });
}

}
Inheritance
System.Object
Resource
CustomResource
VpcEndpointConnectionNotification
Inherited Members
CustomResource.Id
Resource.GetResourceType()
Resource.GetResourceName()
Resource.Urn
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Pulumi.Aws.Ec2
Assembly: Pulumi.Aws.dll
Syntax
public class VpcEndpointConnectionNotification : CustomResource

Constructors

View Source

VpcEndpointConnectionNotification(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 Source

ConnectionEvents

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>>
View Source

ConnectionNotificationArn

The ARN of the SNS topic for the notifications.

Declaration
public Output<string> ConnectionNotificationArn { get; }
Property Value
Type Description
Output<System.String>
View Source

NotificationType

The type of notification.

Declaration
public Output<string> NotificationType { get; }
Property Value
Type Description
Output<System.String>
View Source

State

The state of the notification.

Declaration
public Output<string> State { get; }
Property Value
Type Description
Output<System.String>
View Source

VpcEndpointId

The ID of the VPC Endpoint to receive notifications for.

Declaration
public Output<string> VpcEndpointId { get; }
Property Value
Type Description
Output<System.String>
View Source

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 Source

Get(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
  • View Source
Back to top Copyright 2016-2020, Pulumi Corporation.