Show / Hide Table of Contents

Class CfnLaunchTemplate.TagSpecificationProperty

Specifies the tags to apply to resources that are created during instance launch.

Inheritance
object
CfnLaunchTemplate.TagSpecificationProperty
Implements
CfnLaunchTemplate.ITagSpecificationProperty
Inherited Members
object.GetType()
object.MemberwiseClone()
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
Namespace: Amazon.CDK.AWS.EC2
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class CfnLaunchTemplate.TagSpecificationProperty : CfnLaunchTemplate.ITagSpecificationProperty
Syntax (vb)
Public Class CfnLaunchTemplate.TagSpecificationProperty Implements CfnLaunchTemplate.ITagSpecificationProperty
Remarks

TagSpecification is a property type of TagSpecifications . TagSpecifications is a property of AWS::EC2::LaunchTemplate LaunchTemplateData .

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-tagspecification.html

ExampleMetadata: fixture=_generated

Examples
// The code below shows an example of how to instantiate this type.
             // The values are placeholders you should change.
             using Amazon.CDK.AWS.EC2;

             var tagSpecificationProperty = new TagSpecificationProperty {
                 ResourceType = "resourceType",
                 Tags = new [] { new CfnTag {
                     Key = "key",
                     Value = "value"
                 } }
             };

Synopsis

Constructors

TagSpecificationProperty()

Specifies the tags to apply to resources that are created during instance launch.

Properties

ResourceType

The type of resource to tag.

Tags

The tags to apply to the resource.

Constructors

TagSpecificationProperty()

Specifies the tags to apply to resources that are created during instance launch.

public TagSpecificationProperty()
Remarks

TagSpecification is a property type of TagSpecifications . TagSpecifications is a property of AWS::EC2::LaunchTemplate LaunchTemplateData .

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-tagspecification.html

ExampleMetadata: fixture=_generated

Examples
// The code below shows an example of how to instantiate this type.
             // The values are placeholders you should change.
             using Amazon.CDK.AWS.EC2;

             var tagSpecificationProperty = new TagSpecificationProperty {
                 ResourceType = "resourceType",
                 Tags = new [] { new CfnTag {
                     Key = "key",
                     Value = "value"
                 } }
             };

Properties

ResourceType

The type of resource to tag.

public string? ResourceType { get; set; }
Property Value

string

Remarks

You can specify tags for the following resource types only: instance | volume | network-interface | spot-instances-request . If the instance does not include the resource type that you specify, the instance launch fails. For example, not all instance types include a volume.

To tag a resource after it has been created, see CreateTags .

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-tagspecification.html#cfn-ec2-launchtemplate-tagspecification-resourcetype

Tags

The tags to apply to the resource.

public ICfnTag[]? Tags { get; set; }
Property Value

ICfnTag[]

Remarks

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-tagspecification.html#cfn-ec2-launchtemplate-tagspecification-tags

Implements

CfnLaunchTemplate.ITagSpecificationProperty
Back to top Generated by DocFX