Class: AWSCDK::EC2::CfnVPCEndpointConnectionNotificationProps
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::EC2::CfnVPCEndpointConnectionNotificationProps
- Defined in:
- ec2/cfn_vpc_endpoint_connection_notification_props.rb
Overview
Properties for defining a CfnVPCEndpointConnectionNotification.
Instance Attribute Summary collapse
-
#connection_events ⇒ Array<String>
readonly
The endpoint events for which to receive notifications.
-
#connection_notification_arn ⇒ String, AWSCDK::Interfaces::AWSSNS::ITopicRef
readonly
The ARN of the SNS topic for the notifications.
-
#service_id ⇒ String, ...
readonly
The ID of the endpoint service.
-
#vpc_endpoint_id ⇒ String?
readonly
The ID of the endpoint.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(connection_events:, connection_notification_arn:, service_id: nil, vpc_endpoint_id: nil) ⇒ CfnVPCEndpointConnectionNotificationProps
constructor
A new instance of CfnVPCEndpointConnectionNotificationProps.
- #to_jsii ⇒ Object
Constructor Details
#initialize(connection_events:, connection_notification_arn:, service_id: nil, vpc_endpoint_id: nil) ⇒ CfnVPCEndpointConnectionNotificationProps
Returns a new instance of CfnVPCEndpointConnectionNotificationProps.
13 14 15 16 17 18 19 20 21 22 |
# File 'ec2/cfn_vpc_endpoint_connection_notification_props.rb', line 13 def initialize(connection_events:, connection_notification_arn:, service_id: nil, vpc_endpoint_id: nil) @connection_events = connection_events Jsii::Type.check_type(@connection_events, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "connectionEvents") @connection_notification_arn = connection_notification_arn Jsii::Type.check_type(@connection_notification_arn, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3sicHJpbWl0aXZlIjoic3RyaW5nIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5pbnRlcmZhY2VzLmF3c19zbnMuSVRvcGljUmVmIn1dfX0=")), "connectionNotificationArn") @service_id = service_id Jsii::Type.check_type(@service_id, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3sicHJpbWl0aXZlIjoic3RyaW5nIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5pbnRlcmZhY2VzLmF3c19lYzIuSVZQQ0VuZHBvaW50U2VydmljZVJlZiJ9XX19")), "serviceId") unless @service_id.nil? @vpc_endpoint_id = vpc_endpoint_id Jsii::Type.check_type(@vpc_endpoint_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "vpcEndpointId") unless @vpc_endpoint_id.nil? end |
Instance Attribute Details
#connection_events ⇒ Array<String> (readonly)
The endpoint events for which to receive notifications.
Valid values are Accept , Connect , Delete , and Reject .
30 31 32 |
# File 'ec2/cfn_vpc_endpoint_connection_notification_props.rb', line 30 def connection_events @connection_events end |
#connection_notification_arn ⇒ String, AWSCDK::Interfaces::AWSSNS::ITopicRef (readonly)
The ARN of the SNS topic for the notifications.
35 36 37 |
# File 'ec2/cfn_vpc_endpoint_connection_notification_props.rb', line 35 def connection_notification_arn @connection_notification_arn end |
#service_id ⇒ String, ... (readonly)
The ID of the endpoint service.
40 41 42 |
# File 'ec2/cfn_vpc_endpoint_connection_notification_props.rb', line 40 def service_id @service_id end |
#vpc_endpoint_id ⇒ String? (readonly)
The ID of the endpoint.
45 46 47 |
# File 'ec2/cfn_vpc_endpoint_connection_notification_props.rb', line 45 def vpc_endpoint_id @vpc_endpoint_id end |
Class Method Details
.jsii_properties ⇒ Object
47 48 49 50 51 52 53 54 |
# File 'ec2/cfn_vpc_endpoint_connection_notification_props.rb', line 47 def self.jsii_properties { :connection_events => "connectionEvents", :connection_notification_arn => "connectionNotificationArn", :service_id => "serviceId", :vpc_endpoint_id => "vpcEndpointId", } end |
Instance Method Details
#to_jsii ⇒ Object
56 57 58 59 60 61 62 63 64 65 |
# File 'ec2/cfn_vpc_endpoint_connection_notification_props.rb', line 56 def to_jsii result = {} result.merge!({ "connectionEvents" => @connection_events, "connectionNotificationArn" => @connection_notification_arn, "serviceId" => @service_id, "vpcEndpointId" => @vpc_endpoint_id, }) result.compact end |