CmdID / aws / aws cloudcontrol
aws cloudcontrol delete-resource
Deletes the specified resource. AWS CLI reference
1 example 5 options Its page in the AWS CLI reference
Examples
To delete a resource
The following delete-resource example deletes a AWS::Kinesis::Stream resource with the identifier ResourceExample from your AWS account.
aws cloudcontrol delete-resource --type-name AWS::Kinesis::Stream --identifier ResourceExampleIdentify--type-nameThe name of the resource type.--identifierThe identifier for the resource.Its output
{
"ProgressEvent": {
"TypeName": "AWS::Kinesis::Stream",
"Identifier": "ResourceExample",
"RequestToken": "a1b2c3d4-5678-90ab-cdef-EXAMPLE11111",
"Operation": "DELETE",
"OperationStatus": "IN_PROGRESS",
"EventTime": 1632950300.14
}
}For more information, see Deleting a resource in the Cloud Control API User Guide.
Options
--client-tokenA unique identifier to ensure the idempotency of the resource request.--identifierThe identifier for the resource.--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.