View a markdown version of this page

DeleteWorkloadIdentityTemplate - AWS Identity and Access Management

DeleteWorkloadIdentityTemplate

Deletes a workload identity template, addressed by its own ARN. A template that does not exist returns NoSuchEntityException rather than success, so a mis-addressed ARN cannot read as a completed delete.

Request Parameters

For information about the parameters that are common to all actions, see Common Parameters.

WorkloadIdentityTemplateArn

The Amazon Resource Name (ARN) of the template to delete.

Type: String

Length Constraints: Minimum length of 20. Maximum length of 2048.

Required: Yes

Response Elements

The following elements are returned by the service.

Status

The status of the deletion.

Type: String

Valid Values: SUCCEEDED

WorkloadIdentityTemplateArn

The Amazon Resource Name (ARN) of the deleted template.

Type: String

Length Constraints: Minimum length of 20. Maximum length of 2048.

Errors

For information about the errors that are common to all actions, see Common Error Types.

ConcurrentModification

The request was rejected because multiple requests to change this object were submitted simultaneously. Wait a few minutes and submit your request again.

HTTP Status Code: 409

InvalidInput

The request was rejected because an invalid or out-of-range value was supplied for an input parameter.

HTTP Status Code: 400

NoSuchEntity

The request was rejected because it referenced a resource entity that does not exist. The error message describes the resource.

HTTP Status Code: 404

ServiceFailure

The request processing has failed because of an unknown error, exception or failure.

HTTP Status Code: 500

Examples

Example

This example illustrates one usage of DeleteWorkloadIdentityTemplate.

Sample Request

https://iam.amazonaws.com/?Action=DeleteWorkloadIdentityTemplate &WorkloadIdentityTemplateArn=arn:aws:iam::111122223333:workload-identity-template/PaymentsFleet &Version=2010-05-08 &AUTHPARAMS

Sample Response

<DeleteWorkloadIdentityTemplateResponse xmlns="https://iam.amazonaws.com/doc/2010-05-08/"> <DeleteWorkloadIdentityTemplateResult> <WorkloadIdentityTemplateArn>arn:aws:iam::111122223333:workload-identity-template/PaymentsFleet</WorkloadIdentityTemplateArn> <Status>SUCCEEDED</Status> </DeleteWorkloadIdentityTemplateResult> <ResponseMetadata> <RequestId>913e3f37-99ed-11e1-a4c3-270EXAMPLE04</RequestId> </ResponseMetadata> </DeleteWorkloadIdentityTemplateResponse>

See Also

For more information about using this API in one of the language-specific AWS SDKs, see the following: