View a markdown version of this page

DeleteWorkloadIdentityProviderResourcePolicy - AWS Identity and Access Management

DeleteWorkloadIdentityProviderResourcePolicy

Removes the resource policy from a workload identity provider and leaves the provider in place.

Important

Removing the policy while member accounts hold records bound to this provider leaves those members unable to delete their own records, because DeleteWorkloadIdentityTemplate requires iam:DisassociateWorkloadIdentityTemplate permission on the provider.

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 whose resource policy you want to remove.

Type: String

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

Required: Yes

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 DeleteWorkloadIdentityProviderResourcePolicy.

Sample Request

https://iam.amazonaws.com/?Action=DeleteWorkloadIdentityProviderResourcePolicy &WorkloadIdentityProviderArn=arn:aws:iam::111122223333:workload-identity-provider/PaymentsProd &Version=2010-05-08 &AUTHPARAMS

Sample Response

<DeleteWorkloadIdentityProviderResourcePolicyResponse xmlns="https://iam.amazonaws.com/doc/2010-05-08/"> <ResponseMetadata> <RequestId>913e3f37-99ed-11e1-a4c3-270EXAMPLE04</RequestId> </ResponseMetadata> </DeleteWorkloadIdentityProviderResourcePolicyResponse>

See Also

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