Class: AWSCDK::RTBFabric::CfnRequesterGatewayProps
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::RTBFabric::CfnRequesterGatewayProps
- Defined in:
- rtb_fabric/cfn_requester_gateway_props.rb
Overview
Properties for defining a CfnRequesterGateway.
Instance Attribute Summary collapse
-
#description ⇒ String?
readonly
An optional description for the requester gateway.
-
#security_group_ids ⇒ Array<String, AWSCDK::Interfaces::AWSEC2::ISecurityGroupRef>
readonly
The unique identifiers of the security groups.
-
#subnet_ids ⇒ Array<String, AWSCDK::Interfaces::AWSEC2::ISubnetRef>
readonly
The unique identifiers of the subnets.
-
#tags ⇒ Array<AWSCDK::CfnTag>?
readonly
A map of the key-value pairs of the tag or tags to assign to the resource.
-
#vpc_id ⇒ String, AWSCDK::Interfaces::AWSEC2::IVPCRef
readonly
The unique identifier of the Virtual Private Cloud (VPC).
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(security_group_ids:, subnet_ids:, vpc_id:, description: nil, tags: nil) ⇒ CfnRequesterGatewayProps
constructor
A new instance of CfnRequesterGatewayProps.
- #to_jsii ⇒ Object
Constructor Details
#initialize(security_group_ids:, subnet_ids:, vpc_id:, description: nil, tags: nil) ⇒ CfnRequesterGatewayProps
Returns a new instance of CfnRequesterGatewayProps.
14 15 16 17 18 19 20 21 22 23 24 25 |
# File 'rtb_fabric/cfn_requester_gateway_props.rb', line 14 def initialize(security_group_ids:, subnet_ids:, vpc_id:, description: nil, tags: nil) @security_group_ids = security_group_ids Jsii::Type.check_type(@security_group_ids, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InVuaW9uIjp7InR5cGVzIjpbeyJwcmltaXRpdmUiOiJzdHJpbmcifSx7ImZxbiI6ImF3cy1jZGstbGliLmludGVyZmFjZXMuYXdzX2VjMi5JU2VjdXJpdHlHcm91cFJlZiJ9XX19LCJraW5kIjoiYXJyYXkifX0=")), "securityGroupIds") @subnet_ids = subnet_ids Jsii::Type.check_type(@subnet_ids, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InVuaW9uIjp7InR5cGVzIjpbeyJwcmltaXRpdmUiOiJzdHJpbmcifSx7ImZxbiI6ImF3cy1jZGstbGliLmludGVyZmFjZXMuYXdzX2VjMi5JU3VibmV0UmVmIn1dfX0sImtpbmQiOiJhcnJheSJ9fQ==")), "subnetIds") @vpc_id = vpc_id Jsii::Type.check_type(@vpc_id, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3sicHJpbWl0aXZlIjoic3RyaW5nIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5pbnRlcmZhY2VzLmF3c19lYzIuSVZQQ1JlZiJ9XX19")), "vpcId") @description = description Jsii::Type.check_type(@description, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "description") unless @description.nil? @tags = .is_a?(Array) ? .map { |jsii_v0| jsii_v0.is_a?(Hash) ? ::AWSCDK::CfnTag.new(**jsii_v0.transform_keys(&:to_sym)) : jsii_v0 } : Jsii::Type.check_type(@tags, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7ImZxbiI6ImF3cy1jZGstbGliLkNmblRhZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "tags") unless @tags.nil? end |
Instance Attribute Details
#description ⇒ String? (readonly)
An optional description for the requester gateway.
46 47 48 |
# File 'rtb_fabric/cfn_requester_gateway_props.rb', line 46 def description @description end |
#security_group_ids ⇒ Array<String, AWSCDK::Interfaces::AWSEC2::ISecurityGroupRef> (readonly)
The unique identifiers of the security groups.
31 32 33 |
# File 'rtb_fabric/cfn_requester_gateway_props.rb', line 31 def security_group_ids @security_group_ids end |
#subnet_ids ⇒ Array<String, AWSCDK::Interfaces::AWSEC2::ISubnetRef> (readonly)
The unique identifiers of the subnets.
36 37 38 |
# File 'rtb_fabric/cfn_requester_gateway_props.rb', line 36 def subnet_ids @subnet_ids end |
#tags ⇒ Array<AWSCDK::CfnTag>? (readonly)
A map of the key-value pairs of the tag or tags to assign to the resource.
51 52 53 |
# File 'rtb_fabric/cfn_requester_gateway_props.rb', line 51 def @tags end |
#vpc_id ⇒ String, AWSCDK::Interfaces::AWSEC2::IVPCRef (readonly)
The unique identifier of the Virtual Private Cloud (VPC).
41 42 43 |
# File 'rtb_fabric/cfn_requester_gateway_props.rb', line 41 def vpc_id @vpc_id end |
Class Method Details
.jsii_properties ⇒ Object
53 54 55 56 57 58 59 60 61 |
# File 'rtb_fabric/cfn_requester_gateway_props.rb', line 53 def self.jsii_properties { :security_group_ids => "securityGroupIds", :subnet_ids => "subnetIds", :vpc_id => "vpcId", :description => "description", :tags => "tags", } end |
Instance Method Details
#to_jsii ⇒ Object
63 64 65 66 67 68 69 70 71 72 73 |
# File 'rtb_fabric/cfn_requester_gateway_props.rb', line 63 def to_jsii result = {} result.merge!({ "securityGroupIds" => @security_group_ids, "subnetIds" => @subnet_ids, "vpcId" => @vpc_id, "description" => @description, "tags" => @tags, }) result.compact end |