CmdID

CmdID / aws / aws cloudcontrol

aws cloudcontrol create-resource

Creates the specified resource. AWS CLI reference

1 example 5 options Its page in the AWS CLI reference

Opens CmdID with your command. It is read in your browser and sent nowhere.

Examples

from aws-cli, each command read by CmdID

To create a resource

The following create-resource example creates an AWS::Kinesis::Stream resource, named ResourceExample, with a retention period of 168 hours and a shard count of three.

aws cloudcontrol create-resource --type-name AWS::Kinesis::Stream --desired-state "{\"Name\": \"ResourceExample\",\"RetentionPeriodHours\":168, \"ShardCount\":3}"Identify
--type-nameThe name of the resource type.
--desired-stateStructured data format representing the desired state of the resource, consisting of that resource's properties and their desired values.
Its output
{
    "ProgressEvent": {
        "EventTime": 1632506656.706,
        "TypeName": "AWS::Kinesis::Stream",
        "OperationStatus": "IN_PROGRESS",
        "Operation": "CREATE",
        "Identifier": "ResourceExample",
        "RequestToken": "a1b2c3d4-5678-90ab-cdef-EXAMPLE11111"
    }
}

For more information, see Creating a resource in the Cloud Control API User Guide.

Options

5 in the AWS CLI reference
--client-tokenA unique identifier to ensure the idempotency of the resource request.
--desired-stateStructured data format representing the desired state of the resource, consisting of that resource's properties and their desired values.
--role-arnThe Amazon Resource Name (ARN) of the Identity and Access Management (IAM) role for Cloud Control API to use when performing this resource operation.
--type-nameThe name of the resource type.
--type-version-idFor private resource types, the type version to use in this resource operation.