Class: AWSCDK::NetworkManager::CfnVPCAttachmentProps

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
network_manager/cfn_vpc_attachment_props.rb

Overview

Properties for defining a CfnVpcAttachment.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(core_network_id:, subnet_arns:, vpc_arn:, options: nil, proposed_network_function_group_change: nil, proposed_segment_change: nil, routing_policy_label: nil, tags: nil) ⇒ CfnVPCAttachmentProps

Returns a new instance of CfnVPCAttachmentProps.

Parameters:



17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# File 'network_manager/cfn_vpc_attachment_props.rb', line 17

def initialize(core_network_id:, subnet_arns:, vpc_arn:, options: nil, proposed_network_function_group_change: nil, proposed_segment_change: nil, routing_policy_label: nil, tags: nil)
  @core_network_id = core_network_id
  Jsii::Type.check_type(@core_network_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "coreNetworkId")
  @subnet_arns = subnet_arns
  Jsii::Type.check_type(@subnet_arns, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "subnetArns")
  @vpc_arn = vpc_arn
  Jsii::Type.check_type(@vpc_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "vpcArn")
  @options = options.is_a?(Hash) ? ::AWSCDK::NetworkManager::CfnVPCAttachment::VPCOptionsProperty.new(**options.transform_keys(&:to_sym)) : options
  Jsii::Type.check_type(@options, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19uZXR3b3JrbWFuYWdlci5DZm5WcGNBdHRhY2htZW50LlZwY09wdGlvbnNQcm9wZXJ0eSJ9XX19")), "options") unless @options.nil?
  @proposed_network_function_group_change = proposed_network_function_group_change.is_a?(Hash) ? ::AWSCDK::NetworkManager::CfnVPCAttachment::ProposedNetworkFunctionGroupChangeProperty.new(**proposed_network_function_group_change.transform_keys(&:to_sym)) : proposed_network_function_group_change
  Jsii::Type.check_type(@proposed_network_function_group_change, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19uZXR3b3JrbWFuYWdlci5DZm5WcGNBdHRhY2htZW50LlByb3Bvc2VkTmV0d29ya0Z1bmN0aW9uR3JvdXBDaGFuZ2VQcm9wZXJ0eSJ9XX19")), "proposedNetworkFunctionGroupChange") unless @proposed_network_function_group_change.nil?
  @proposed_segment_change = proposed_segment_change.is_a?(Hash) ? ::AWSCDK::NetworkManager::CfnVPCAttachment::ProposedSegmentChangeProperty.new(**proposed_segment_change.transform_keys(&:to_sym)) : proposed_segment_change
  Jsii::Type.check_type(@proposed_segment_change, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19uZXR3b3JrbWFuYWdlci5DZm5WcGNBdHRhY2htZW50LlByb3Bvc2VkU2VnbWVudENoYW5nZVByb3BlcnR5In1dfX0=")), "proposedSegmentChange") unless @proposed_segment_change.nil?
  @routing_policy_label = routing_policy_label
  Jsii::Type.check_type(@routing_policy_label, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "routingPolicyLabel") unless @routing_policy_label.nil?
  @tags = tags.is_a?(Array) ? tags.map { |jsii_v0| jsii_v0.is_a?(Hash) ? ::AWSCDK::CfnTag.new(**jsii_v0.transform_keys(&:to_sym)) : jsii_v0 } : tags
  Jsii::Type.check_type(@tags, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7ImZxbiI6ImF3cy1jZGstbGliLkNmblRhZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "tags") unless @tags.nil?
end

Instance Attribute Details

#core_network_idString (readonly)

The core network ID.



40
41
42
# File 'network_manager/cfn_vpc_attachment_props.rb', line 40

def core_network_id
  @core_network_id
end

#optionsAWSCDK::IResolvable, ... (readonly)

Options for creating the VPC attachment.



55
56
57
# File 'network_manager/cfn_vpc_attachment_props.rb', line 55

def options
  @options
end

#proposed_network_function_group_changeAWSCDK::IResolvable, ... (readonly)

Describes proposed changes to a network function group.



60
61
62
# File 'network_manager/cfn_vpc_attachment_props.rb', line 60

def proposed_network_function_group_change
  @proposed_network_function_group_change
end

#proposed_segment_changeAWSCDK::IResolvable, ... (readonly)

Describes a proposed segment change.

In some cases, the segment change must first be evaluated and accepted.



67
68
69
# File 'network_manager/cfn_vpc_attachment_props.rb', line 67

def proposed_segment_change
  @proposed_segment_change
end

#routing_policy_labelString? (readonly)

Routing policy label.



72
73
74
# File 'network_manager/cfn_vpc_attachment_props.rb', line 72

def routing_policy_label
  @routing_policy_label
end

#subnet_arnsArray<String> (readonly)

The subnet ARNs.



45
46
47
# File 'network_manager/cfn_vpc_attachment_props.rb', line 45

def subnet_arns
  @subnet_arns
end

#tagsArray<AWSCDK::CfnTag>? (readonly)

The tags associated with the VPC attachment.



77
78
79
# File 'network_manager/cfn_vpc_attachment_props.rb', line 77

def tags
  @tags
end

#vpc_arnString (readonly)

The ARN of the VPC attachment.



50
51
52
# File 'network_manager/cfn_vpc_attachment_props.rb', line 50

def vpc_arn
  @vpc_arn
end

Class Method Details

.jsii_propertiesObject



79
80
81
82
83
84
85
86
87
88
89
90
# File 'network_manager/cfn_vpc_attachment_props.rb', line 79

def self.jsii_properties
  {
    :core_network_id => "coreNetworkId",
    :subnet_arns => "subnetArns",
    :vpc_arn => "vpcArn",
    :options => "options",
    :proposed_network_function_group_change => "proposedNetworkFunctionGroupChange",
    :proposed_segment_change => "proposedSegmentChange",
    :routing_policy_label => "routingPolicyLabel",
    :tags => "tags",
  }
end

Instance Method Details

#to_jsiiObject



92
93
94
95
96
97
98
99
100
101
102
103
104
105
# File 'network_manager/cfn_vpc_attachment_props.rb', line 92

def to_jsii
  result = {}
  result.merge!({
    "coreNetworkId" => @core_network_id,
    "subnetArns" => @subnet_arns,
    "vpcArn" => @vpc_arn,
    "options" => @options,
    "proposedNetworkFunctionGroupChange" => @proposed_network_function_group_change,
    "proposedSegmentChange" => @proposed_segment_change,
    "routingPolicyLabel" => @routing_policy_label,
    "tags" => @tags,
  })
  result.compact
end