Class: AWSCDK::EC2::CfnClientVpnEndpoint::TagSpecificationProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
ec2/cfn_client_vpn_endpoint.rb

Overview

Specifies the tags to apply to the Client VPN endpoint.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(resource_type:, tags:) ⇒ TagSpecificationProperty

Returns a new instance of TagSpecificationProperty.

Parameters:

  • resource_type (String)

    The type of resource to tag.

  • tags (Array<AWSCDK::CfnTag>)

    The tags to apply to the resource.



1158
1159
1160
1161
1162
1163
# File 'ec2/cfn_client_vpn_endpoint.rb', line 1158

def initialize(resource_type:, tags:)
  @resource_type = resource_type
  Jsii::Type.check_type(@resource_type, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "resourceType")
  @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")
end

Instance Attribute Details

#resource_typeString (readonly)

The type of resource to tag.

To tag a Client VPN endpoint, ResourceType must be client-vpn-endpoint .



1171
1172
1173
# File 'ec2/cfn_client_vpn_endpoint.rb', line 1171

def resource_type
  @resource_type
end

#tagsArray<AWSCDK::CfnTag> (readonly)

The tags to apply to the resource.



1176
1177
1178
# File 'ec2/cfn_client_vpn_endpoint.rb', line 1176

def tags
  @tags
end

Class Method Details

.jsii_propertiesObject



1178
1179
1180
1181
1182
1183
# File 'ec2/cfn_client_vpn_endpoint.rb', line 1178

def self.jsii_properties
  {
    :resource_type => "resourceType",
    :tags => "tags",
  }
end

Instance Method Details

#to_jsiiObject



1185
1186
1187
1188
1189
1190
1191
1192
# File 'ec2/cfn_client_vpn_endpoint.rb', line 1185

def to_jsii
  result = {}
  result.merge!({
    "resourceType" => @resource_type,
    "tags" => @tags,
  })
  result.compact
end