/
CfnCapacityReservationFleet_TagSpecificationProperty.go
42 lines (39 loc) · 1.93 KB
/
CfnCapacityReservationFleet_TagSpecificationProperty.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
package awsec2
import (
"github.com/aws/aws-cdk-go/awscdk/v2"
)
// The tags to apply to a resource when the resource is being created.
//
// 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.
//
// Example:
// // The code below shows an example of how to instantiate this type.
// // The values are placeholders you should change.
// import "github.com/aws/aws-cdk-go/awscdk"
//
// tagSpecificationProperty := &TagSpecificationProperty{
// ResourceType: jsii.String("resourceType"),
// Tags: []cfnTag{
// &cfnTag{
// Key: jsii.String("key"),
// Value: jsii.String("value"),
// },
// },
// }
//
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-capacityreservationfleet-tagspecification.html
//
type CfnCapacityReservationFleet_TagSpecificationProperty struct {
// The type of resource to tag on creation. Specify `capacity-reservation-fleet` .
//
// To tag a resource after it has been created, see [CreateTags](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_CreateTags.html) .
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-capacityreservationfleet-tagspecification.html#cfn-ec2-capacityreservationfleet-tagspecification-resourcetype
//
ResourceType *string `field:"optional" json:"resourceType" yaml:"resourceType"`
// The tags to apply to the resource.
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-capacityreservationfleet-tagspecification.html#cfn-ec2-capacityreservationfleet-tagspecification-tags
//
Tags *[]*awscdk.CfnTag `field:"optional" json:"tags" yaml:"tags"`
}