Class: AWSCDK::NetworkManager::CfnTransitGatewayRouteTableAttachment::ProposedSegmentChangeProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::NetworkManager::CfnTransitGatewayRouteTableAttachment::ProposedSegmentChangeProperty
- Defined in:
- network_manager/cfn_transit_gateway_route_table_attachment.rb
Overview
Describes a proposed segment change.
In some cases, the segment change must first be evaluated and accepted.
Instance Attribute Summary collapse
-
#attachment_policy_rule_number ⇒ Numeric?
readonly
The rule number in the policy document that applies to this change.
-
#segment_name ⇒ String?
readonly
The name of the segment to change.
-
#tags ⇒ Array<AWSCDK::CfnTag>?
readonly
The list of key-value tags that changed for the segment.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(attachment_policy_rule_number: nil, segment_name: nil, tags: nil) ⇒ ProposedSegmentChangeProperty
constructor
A new instance of ProposedSegmentChangeProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(attachment_policy_rule_number: nil, segment_name: nil, tags: nil) ⇒ ProposedSegmentChangeProperty
Returns a new instance of ProposedSegmentChangeProperty.
747 748 749 750 751 752 753 754 |
# File 'network_manager/cfn_transit_gateway_route_table_attachment.rb', line 747 def initialize(attachment_policy_rule_number: nil, segment_name: nil, tags: nil) @attachment_policy_rule_number = Jsii::Type.check_type(@attachment_policy_rule_number, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "attachmentPolicyRuleNumber") unless @attachment_policy_rule_number.nil? @segment_name = segment_name Jsii::Type.check_type(@segment_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "segmentName") unless @segment_name.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
#attachment_policy_rule_number ⇒ Numeric? (readonly)
The rule number in the policy document that applies to this change.
760 761 762 |
# File 'network_manager/cfn_transit_gateway_route_table_attachment.rb', line 760 def @attachment_policy_rule_number end |
#segment_name ⇒ String? (readonly)
The name of the segment to change.
765 766 767 |
# File 'network_manager/cfn_transit_gateway_route_table_attachment.rb', line 765 def segment_name @segment_name end |
#tags ⇒ Array<AWSCDK::CfnTag>? (readonly)
The list of key-value tags that changed for the segment.
770 771 772 |
# File 'network_manager/cfn_transit_gateway_route_table_attachment.rb', line 770 def @tags end |
Class Method Details
.jsii_properties ⇒ Object
772 773 774 775 776 777 778 |
# File 'network_manager/cfn_transit_gateway_route_table_attachment.rb', line 772 def self.jsii_properties { :attachment_policy_rule_number => "attachmentPolicyRuleNumber", :segment_name => "segmentName", :tags => "tags", } end |
Instance Method Details
#to_jsii ⇒ Object
780 781 782 783 784 785 786 787 788 |
# File 'network_manager/cfn_transit_gateway_route_table_attachment.rb', line 780 def to_jsii result = {} result.merge!({ "attachmentPolicyRuleNumber" => @attachment_policy_rule_number, "segmentName" => @segment_name, "tags" => @tags, }) result.compact end |