Class: AWSCDK::EC2::CfnClientVpnEndpoint::TagSpecificationProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::EC2::CfnClientVpnEndpoint::TagSpecificationProperty
- Defined in:
- ec2/cfn_client_vpn_endpoint.rb
Overview
Specifies the tags to apply to the Client VPN endpoint.
Instance Attribute Summary collapse
-
#resource_type ⇒ String
readonly
The type of resource to tag.
-
#tags ⇒ Array<AWSCDK::CfnTag>
readonly
The tags to apply to the resource.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(resource_type:, tags:) ⇒ TagSpecificationProperty
constructor
A new instance of TagSpecificationProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(resource_type:, tags:) ⇒ TagSpecificationProperty
Returns a new instance of TagSpecificationProperty.
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 = .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") end |
Instance Attribute Details
#resource_type ⇒ String (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 |
#tags ⇒ Array<AWSCDK::CfnTag> (readonly)
The tags to apply to the resource.
1176 1177 1178 |
# File 'ec2/cfn_client_vpn_endpoint.rb', line 1176 def @tags end |
Class Method Details
.jsii_properties ⇒ Object
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_jsii ⇒ Object
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 |