Class: AWSCDK::Directconnect::CfnDirectConnectGatewayAssociationProps
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Directconnect::CfnDirectConnectGatewayAssociationProps
- Defined in:
- directconnect/cfn_direct_connect_gateway_association_props.rb
Overview
Properties for defining a CfnDirectConnectGatewayAssociation.
Instance Attribute Summary collapse
-
#accept_direct_connect_gateway_association_proposal_role_arn ⇒ String?
readonly
The Amazon Resource Name (ARN) of the role to accept the Direct Connect Gateway association proposal.
-
#allowed_prefixes_to_direct_connect_gateway ⇒ Array<String>?
readonly
The Amazon VPC prefixes to advertise to the Direct Connect gateway.
- #associated_gateway_id ⇒ String, ... readonly
- #direct_connect_gateway_id ⇒ String, AWSCDK::Interfaces::AWSDirectconnect::IDirectConnectGatewayRef readonly
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(associated_gateway_id:, direct_connect_gateway_id:, accept_direct_connect_gateway_association_proposal_role_arn: nil, allowed_prefixes_to_direct_connect_gateway: nil) ⇒ CfnDirectConnectGatewayAssociationProps
constructor
A new instance of CfnDirectConnectGatewayAssociationProps.
- #to_jsii ⇒ Object
Constructor Details
#initialize(associated_gateway_id:, direct_connect_gateway_id:, accept_direct_connect_gateway_association_proposal_role_arn: nil, allowed_prefixes_to_direct_connect_gateway: nil) ⇒ CfnDirectConnectGatewayAssociationProps
Returns a new instance of CfnDirectConnectGatewayAssociationProps.
13 14 15 16 17 18 19 20 21 22 |
# File 'directconnect/cfn_direct_connect_gateway_association_props.rb', line 13 def initialize(associated_gateway_id:, direct_connect_gateway_id:, accept_direct_connect_gateway_association_proposal_role_arn: nil, allowed_prefixes_to_direct_connect_gateway: nil) @associated_gateway_id = associated_gateway_id Jsii::Type.check_type(@associated_gateway_id, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3sicHJpbWl0aXZlIjoic3RyaW5nIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5pbnRlcmZhY2VzLmF3c19lYzIuSVRyYW5zaXRHYXRld2F5UmVmIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5pbnRlcmZhY2VzLmF3c19lYzIuSVZQTkdhdGV3YXlSZWYifV19fQ==")), "associatedGatewayId") @direct_connect_gateway_id = direct_connect_gateway_id Jsii::Type.check_type(@direct_connect_gateway_id, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3sicHJpbWl0aXZlIjoic3RyaW5nIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5pbnRlcmZhY2VzLmF3c19kaXJlY3Rjb25uZWN0LklEaXJlY3RDb25uZWN0R2F0ZXdheVJlZiJ9XX19")), "directConnectGatewayId") @accept_direct_connect_gateway_association_proposal_role_arn = accept_direct_connect_gateway_association_proposal_role_arn Jsii::Type.check_type(@accept_direct_connect_gateway_association_proposal_role_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "acceptDirectConnectGatewayAssociationProposalRoleArn") unless @accept_direct_connect_gateway_association_proposal_role_arn.nil? @allowed_prefixes_to_direct_connect_gateway = allowed_prefixes_to_direct_connect_gateway Jsii::Type.check_type(@allowed_prefixes_to_direct_connect_gateway, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "allowedPrefixesToDirectConnectGateway") unless @allowed_prefixes_to_direct_connect_gateway.nil? end |
Instance Attribute Details
#accept_direct_connect_gateway_association_proposal_role_arn ⇒ String? (readonly)
The Amazon Resource Name (ARN) of the role to accept the Direct Connect Gateway association proposal.
Needs directconnect:AcceptDirectConnectGatewayAssociationProposal permissions.
36 37 38 |
# File 'directconnect/cfn_direct_connect_gateway_association_props.rb', line 36 def accept_direct_connect_gateway_association_proposal_role_arn @accept_direct_connect_gateway_association_proposal_role_arn end |
#allowed_prefixes_to_direct_connect_gateway ⇒ Array<String>? (readonly)
The Amazon VPC prefixes to advertise to the Direct Connect gateway.
This parameter is required when you create an association to a transit gateway.
43 44 45 |
# File 'directconnect/cfn_direct_connect_gateway_association_props.rb', line 43 def allowed_prefixes_to_direct_connect_gateway @allowed_prefixes_to_direct_connect_gateway end |
#associated_gateway_id ⇒ String, ... (readonly)
26 27 28 |
# File 'directconnect/cfn_direct_connect_gateway_association_props.rb', line 26 def associated_gateway_id @associated_gateway_id end |
#direct_connect_gateway_id ⇒ String, AWSCDK::Interfaces::AWSDirectconnect::IDirectConnectGatewayRef (readonly)
29 30 31 |
# File 'directconnect/cfn_direct_connect_gateway_association_props.rb', line 29 def direct_connect_gateway_id @direct_connect_gateway_id end |
Class Method Details
.jsii_properties ⇒ Object
45 46 47 48 49 50 51 52 |
# File 'directconnect/cfn_direct_connect_gateway_association_props.rb', line 45 def self.jsii_properties { :associated_gateway_id => "associatedGatewayId", :direct_connect_gateway_id => "directConnectGatewayId", :accept_direct_connect_gateway_association_proposal_role_arn => "acceptDirectConnectGatewayAssociationProposalRoleArn", :allowed_prefixes_to_direct_connect_gateway => "allowedPrefixesToDirectConnectGateway", } end |
Instance Method Details
#to_jsii ⇒ Object
54 55 56 57 58 59 60 61 62 63 |
# File 'directconnect/cfn_direct_connect_gateway_association_props.rb', line 54 def to_jsii result = {} result.merge!({ "associatedGatewayId" => @associated_gateway_id, "directConnectGatewayId" => @direct_connect_gateway_id, "acceptDirectConnectGatewayAssociationProposalRoleArn" => @accept_direct_connect_gateway_association_proposal_role_arn, "allowedPrefixesToDirectConnectGateway" => @allowed_prefixes_to_direct_connect_gateway, }) result.compact end |