DeleteWorkloadIdentityProvider
Deletes a workload identity provider.
The provider must be empty first. A workload identity template that still references
it causes DeleteConflictException. Delete every X.509 outbound signer on
the provider before you delete the provider itself. A provider that does not exist
returns NoSuchEntityException rather than success, so a mis-addressed ARN
cannot read as a completed delete.
The response carries a DeletionTaskId, a unique token that expires 24
hours after the call. Pass it to GetWorkloadIdentityProviderDeletionStatus to read the status of the
deletion.
Request Parameters
For information about the parameters that are common to all actions, see Common Parameters.
- WorkloadIdentityProviderArn
-
The Amazon Resource Name (ARN) of the provider to delete.
Type: String
Length Constraints: Minimum length of 20. Maximum length of 2048.
Required: Yes
Response Elements
The following element is returned by the service.
- DeletionTaskId
-
The identifier of the deletion. Pass it to GetWorkloadIdentityProviderDeletionStatus to read the deletion's status.
Type: String
Length Constraints: Minimum length of 1. Maximum length of 1000.
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
- DeleteConflict
-
The request was rejected because it attempted to delete a resource that has attached subordinate entities. The error message describes these entities.
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 DeleteWorkloadIdentityProvider.
Sample Request
https://iam.amazonaws.com/?Action=DeleteWorkloadIdentityProvider
&WorkloadIdentityProviderArn=arn:aws:iam::111122223333:workload-identity-provider/PaymentsProd
&Version=2010-05-08
&AUTHPARAMS
Sample Response
<DeleteWorkloadIdentityProviderResponse xmlns="https://iam.amazonaws.com/doc/2010-05-08/">
<DeleteWorkloadIdentityProviderResult>
<DeletionTaskId>v1.AQICAHiEXAMPLEOpaqueTokenEXAMPLE</DeletionTaskId>
</DeleteWorkloadIdentityProviderResult>
<ResponseMetadata>
<RequestId>913e3f37-99ed-11e1-a4c3-270EXAMPLE04</RequestId>
</ResponseMetadata>
</DeleteWorkloadIdentityProviderResponse>
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following: