Class: AWSCDK::NetworkManager::CfnSiteToSiteVpnAttachment::ProposedNetworkFunctionGroupChangeProperty

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

Overview

Describes proposed changes to a network function group.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(attachment_policy_rule_number: nil, network_function_group_name: nil, tags: nil) ⇒ ProposedNetworkFunctionGroupChangeProperty

Returns a new instance of ProposedNetworkFunctionGroupChangeProperty.

Parameters:

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

    The proposed new attachment policy rule number for the network function group.

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

    The proposed name change for the network function group name.

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

    The list of proposed changes to the key-value tags associated with the network function group.



684
685
686
687
688
689
690
691
# File 'network_manager/cfn_site_to_site_vpn_attachment.rb', line 684

def initialize(attachment_policy_rule_number: nil, network_function_group_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?
  @network_function_group_name = network_function_group_name
  Jsii::Type.check_type(@network_function_group_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "networkFunctionGroupName") unless @network_function_group_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 proposed new attachment policy rule number for the network function group.



697
698
699
# File 'network_manager/cfn_site_to_site_vpn_attachment.rb', line 697

def attachment_policy_rule_number
  @attachment_policy_rule_number
end

#network_function_group_nameString? (readonly)

The proposed name change for the network function group name.



702
703
704
# File 'network_manager/cfn_site_to_site_vpn_attachment.rb', line 702

def network_function_group_name
  @network_function_group_name
end

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

The list of proposed changes to the key-value tags associated with the network function group.



707
708
709
# File 'network_manager/cfn_site_to_site_vpn_attachment.rb', line 707

def tags
  @tags
end

Class Method Details

.jsii_propertiesObject



709
710
711
712
713
714
715
# File 'network_manager/cfn_site_to_site_vpn_attachment.rb', line 709

def self.jsii_properties
  {
    :attachment_policy_rule_number => "attachmentPolicyRuleNumber",
    :network_function_group_name => "networkFunctionGroupName",
    :tags => "tags",
  }
end

Instance Method Details

#to_jsiiObject



717
718
719
720
721
722
723
724
725
# File 'network_manager/cfn_site_to_site_vpn_attachment.rb', line 717

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