Class CfnVPCEndpointConnectionNotification

All Implemented Interfaces:
IConstruct, IDependable, IInspectable,, software.constructs.IConstruct

@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)", date="2023-06-19T16:30:39.161Z") @Stability(Stable) public class CfnVPCEndpointConnectionNotification extends CfnResource implements IInspectable
A CloudFormation AWS::EC2::VPCEndpointConnectionNotification.

Specifies a connection notification for a VPC endpoint or VPC endpoint service. A connection notification notifies you of specific endpoint events. You must create an SNS topic to receive notifications. For more information, see Create a Topic in the Amazon Simple Notification Service Developer Guide .

You can create a connection notification for interface endpoints only.


 // The code below shows an example of how to instantiate this type.
 // The values are placeholders you should change.
 CfnVPCEndpointConnectionNotification cfnVPCEndpointConnectionNotification = CfnVPCEndpointConnectionNotification.Builder.create(this, "MyCfnVPCEndpointConnectionNotification")
         // the properties below are optional
  • Field Details


      @Stability(Stable) public static final String CFN_RESOURCE_TYPE_NAME
      The CloudFormation resource type name for this resource class.
  • Constructor Details

    • CfnVPCEndpointConnectionNotification

      protected CfnVPCEndpointConnectionNotification( objRef)
    • CfnVPCEndpointConnectionNotification

      protected CfnVPCEndpointConnectionNotification( initializationMode)
    • CfnVPCEndpointConnectionNotification

      @Stability(Stable) public CfnVPCEndpointConnectionNotification(@NotNull Construct scope, @NotNull String id, @NotNull CfnVPCEndpointConnectionNotificationProps props)
      Create a new AWS::EC2::VPCEndpointConnectionNotification.

      scope -
      • scope in which this resource is defined.
      This parameter is required.
      id -
      • scoped id of the resource.
      This parameter is required.
      props -
      • resource properties.
      This parameter is required.
  • Method Details

    • inspect

      @Stability(Stable) public void inspect(@NotNull TreeInspector inspector)
      Examines the CloudFormation resource and discloses attributes.

      Specified by:
      inspect in interface IInspectable
      inspector -
      • tree inspector to collect and process attributes.
      This parameter is required.
    • renderProperties

      @Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String,Object> props)
      renderProperties in class CfnResource
      props - This parameter is required.
    • getCfnProperties

      @Stability(Stable) @NotNull protected Map<String,Object> getCfnProperties()
      getCfnProperties in class CfnResource
    • getConnectionEvents

      @Stability(Stable) @NotNull public List<String> getConnectionEvents()
      The endpoint events for which to receive notifications.

      Valid values are Accept , Connect , Delete , and Reject .

    • setConnectionEvents

      @Stability(Stable) public void setConnectionEvents(@NotNull List<String> value)
      The endpoint events for which to receive notifications.

      Valid values are Accept , Connect , Delete , and Reject .

    • getConnectionNotificationArn

      @Stability(Stable) @NotNull public String getConnectionNotificationArn()
      The ARN of the SNS topic for the notifications.
    • setConnectionNotificationArn

      @Stability(Stable) public void setConnectionNotificationArn(@NotNull String value)
      The ARN of the SNS topic for the notifications.
    • getServiceId

      @Stability(Stable) @Nullable public String getServiceId()
      The ID of the endpoint service.
    • setServiceId

      @Stability(Stable) public void setServiceId(@Nullable String value)
      The ID of the endpoint service.
    • getVpcEndpointId

      @Stability(Stable) @Nullable public String getVpcEndpointId()
      The ID of the endpoint.
    • setVpcEndpointId

      @Stability(Stable) public void setVpcEndpointId(@Nullable String value)
      The ID of the endpoint.