Show / Hide Table of Contents

Interface CfnCapacityReservationFleet.ITagSpecificationProperty

The tags to apply to a resource when the resource is being created.

Namespace: Amazon.CDK.AWS.EC2
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public interface CfnCapacityReservationFleet.ITagSpecificationProperty
Syntax (vb)
Public Interface CfnCapacityReservationFleet.ITagSpecificationProperty
Remarks

When you specify a tag, you must specify the resource type to tag, otherwise the request will fail.

The <code>Valid Values</code> 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.

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-capacityreservationfleet-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

Properties

ResourceType

The type of resource to tag on creation. Specify capacity-reservation-fleet .

Tags

The tags to apply to the resource.

Properties

ResourceType

The type of resource to tag on creation. Specify capacity-reservation-fleet .

string? ResourceType { get; }
Property Value

string

Remarks

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

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

Tags

The tags to apply to the resource.

ICfnTag[]? Tags { get; }
Property Value

ICfnTag[]

Remarks

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

Back to top Generated by DocFX