Class: AWSCDK::NetworkManager::CfnVPCAttachment::ProposedSegmentChangeProperty

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

Overview

Describes a proposed segment change.

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

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(attachment_policy_rule_number: nil, segment_name: nil, tags: nil) ⇒ ProposedSegmentChangeProperty

Returns a new instance of ProposedSegmentChangeProperty.

Parameters:

  • attachment_policy_rule_number (Numeric, nil) (defaults to: nil)

    The rule number in the policy document that applies to this change.

  • segment_name (String, nil) (defaults to: nil)

    The name of the segment to change.

  • tags (Array<AWSCDK::CfnTag>, nil) (defaults to: nil)

    The list of key-value tags that changed for the segment.



781
782
783
784
785
786
787
788
# File 'network_manager/cfn_vpc_attachment.rb', line 781

def initialize(attachment_policy_rule_number: nil, segment_name: nil, tags: nil)
  @attachment_policy_rule_number = 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 = 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

#attachment_policy_rule_numberNumeric? (readonly)

The rule number in the policy document that applies to this change.



794
795
796
# File 'network_manager/cfn_vpc_attachment.rb', line 794

def attachment_policy_rule_number
  @attachment_policy_rule_number
end

#segment_nameString? (readonly)

The name of the segment to change.



799
800
801
# File 'network_manager/cfn_vpc_attachment.rb', line 799

def segment_name
  @segment_name
end

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

The list of key-value tags that changed for the segment.



804
805
806
# File 'network_manager/cfn_vpc_attachment.rb', line 804

def tags
  @tags
end

Class Method Details

.jsii_propertiesObject



806
807
808
809
810
811
812
# File 'network_manager/cfn_vpc_attachment.rb', line 806

def self.jsii_properties
  {
    :attachment_policy_rule_number => "attachmentPolicyRuleNumber",
    :segment_name => "segmentName",
    :tags => "tags",
  }
end

Instance Method Details

#to_jsiiObject



814
815
816
817
818
819
820
821
822
# File 'network_manager/cfn_vpc_attachment.rb', line 814

def to_jsii
  result = {}
  result.merge!({
    "attachmentPolicyRuleNumber" => @attachment_policy_rule_number,
    "segmentName" => @segment_name,
    "tags" => @tags,
  })
  result.compact
end