Class: AWSCDK::CodeDeploy::CfnDeploymentGroup::EC2TagSetProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
code_deploy/cfn_deployment_group.rb

Overview

The EC2TagSet property type specifies information about groups of tags applied to Amazon EC2 instances.

The deployment group includes only Amazon EC2 instances identified by all the tag groups. EC2TagSet cannot be used in the same template as EC2TagFilter .

For information about using tags and tag groups to help manage your Amazon EC2 instances and on-premises instances, see Tagging Instances for Deployment Groups in AWS CodeDeploy .

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(ec2_tag_set_list: nil) ⇒ EC2TagSetProperty

Returns a new instance of EC2TagSetProperty.

Parameters:



1272
1273
1274
1275
# File 'code_deploy/cfn_deployment_group.rb', line 1272

def initialize(ec2_tag_set_list: nil)
  @ec2_tag_set_list = ec2_tag_set_list
  Jsii::Type.check_type(@ec2_tag_set_list, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfY29kZWRlcGxveS5DZm5EZXBsb3ltZW50R3JvdXAuRUMyVGFnU2V0TGlzdE9iamVjdFByb3BlcnR5In1dfX0sImtpbmQiOiJhcnJheSJ9fV19fQ==")), "ec2TagSetList") unless @ec2_tag_set_list.nil?
end

Instance Attribute Details

#ec2_tag_set_listAWSCDK::IResolvable, ... (readonly)

The Amazon EC2 tags that are already applied to Amazon EC2 instances that you want to include in the deployment group.

CodeDeploy includes all Amazon EC2 instances identified by any of the tags you specify in this deployment group.

Duplicates are not allowed.



1285
1286
1287
# File 'code_deploy/cfn_deployment_group.rb', line 1285

def ec2_tag_set_list
  @ec2_tag_set_list
end

Class Method Details

.jsii_propertiesObject



1287
1288
1289
1290
1291
# File 'code_deploy/cfn_deployment_group.rb', line 1287

def self.jsii_properties
  {
    :ec2_tag_set_list => "ec2TagSetList",
  }
end

Instance Method Details

#to_jsiiObject



1293
1294
1295
1296
1297
1298
1299
# File 'code_deploy/cfn_deployment_group.rb', line 1293

def to_jsii
  result = {}
  result.merge!({
    "ec2TagSetList" => @ec2_tag_set_list,
  })
  result.compact
end