Class CfnCapacityReservationFleet.TagSpecificationProperty
The tags to apply to a resource when the resource is being created.
Inheritance
Namespace: Amazon.CDK.AWS.EC2
Assembly: Amazon.CDK.AWS.EC2.dll
Syntax (csharp)
public class TagSpecificationProperty : Object, CfnCapacityReservationFleet.ITagSpecificationProperty
Syntax (vb)
Public Class TagSpecificationProperty
Inherits Object
Implements CfnCapacityReservationFleet.ITagSpecificationProperty
Remarks
When you specify a tag, you must specify the resource type to tag, otherwise the request will fail.
The Valid Values
lists all the resource types that can be tagged. However, the action you're using might not support tagging all of these resource types. If you try to tag a resource type that is unsupported for the action you're using, you'll get an error.
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() |
Properties
ResourceType | The type of resource to tag on creation. Specify |
Tags | The tags to apply to the resource. |
Constructors
TagSpecificationProperty()
public TagSpecificationProperty()
Properties
ResourceType
The type of resource to tag on creation. Specify capacity-reservation-fleet
.
public string ResourceType { get; set; }
Property Value
System.String
Remarks
To tag a resource after it has been created, see CreateTags .
Tags
The tags to apply to the resource.
public ICfnTag[] Tags { get; set; }
Property Value
ICfnTag[]