Skip to content

delete_workload_identity_provider_outbound_signer

delete_workload_identity_provider_outbound_signer(
    workload_identity_provider_arn: arnType,
    outbound_signer: WorkloadIdentityOutboundSignerConfiguration,
    *,
    config_overrides: Optional[IAMClientConfig] = None,
) -> DeleteWorkloadIdentityProviderOutboundSignerResponse

Permanently removes one X.509 outbound signer entry from a workload identity provider. The provider stops signing with that entry's certificate authority, and IAM stops publishing the entry's trust material. The certificate authority itself is not deleted.

For an organization-scoped provider, only the organization's management account or a delegated administrator can call this operation.

Credentials issued by a deleted signer can no longer be verified. To stop signing while keeping existing credentials verifiable, use DisableWorkloadIdentityProviderOutboundSigner and wait until the signer is INACTIVE before you delete it.

You can delete a VALIDATING or an INACTIVE entry. IAM rejects an ACTIVE or an IN_TRANSITION entry with InvalidInputException, so disable the signer first.

You identify the entry by its certificate authority, through the identifier and the account. IAM removes only that entry, even if the slot holds others. After you delete the last entry in a slot, CreateWorkloadIdentityProviderOutboundSigner can fill the slot again.

IAM releases the association in Amazon Web Services Private CA using your credentials. If Amazon Web Services Private CA refuses to release the association, IAM removes nothing. If Amazon Web Services Private CA reports that the association is already gone, the deletion goes ahead. In neither case is the certificate authority or its certificate deleted. The certificate authority remains in Amazon Web Services Private CA in your account, and deleting it there is a separate action that you take yourself.

Delete every X.509 outbound signer on a provider before you delete the provider itself.

Parameters:

  • workload_identity_provider_arn (arnType) –

    The Amazon Resource Name (ARN) of the workload identity provider.

  • outbound_signer (WorkloadIdentityOutboundSignerConfiguration) –

    The certificate authority of the signer to delete. Specify the X509 member. AccountId must match the account recorded for the signer.

Raises:

  • ConcurrentModificationException –

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

  • InvalidInputException –

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

  • NoSuchEntityException –

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

  • ServiceFailureException –

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

  • UnknownServiceError –

    The service returned an error code this client does not model.

Source code in docs_src/capo_iam/_services/iam.py
def delete_workload_identity_provider_outbound_signer(
    self,
    workload_identity_provider_arn: "capo_iam.types.arn_type.arnType",
    outbound_signer: "capo_iam.types.workload_identity_outbound_signer_configuration.WorkloadIdentityOutboundSignerConfiguration",
    *,
    config_overrides: Optional[IAMClientConfig] = None,
) -> "capo_iam.types.delete_workload_identity_provider_outbound_signer_response.DeleteWorkloadIdentityProviderOutboundSignerResponse":
    """<p>Permanently removes one X.509 outbound signer entry from a workload identity provider. The provider stops signing with that entry's certificate authority, and IAM stops publishing the entry's trust material. The certificate authority itself is not deleted.</p> <p>For an organization-scoped provider, only the organization's management account or a delegated administrator can call this operation.</p> <important> <p>Credentials issued by a deleted signer can no longer be verified. To stop signing while keeping existing credentials verifiable, use <a href="https://docs.aws.amazon.com/IAM/latest/APIReference/API_DisableWorkloadIdentityProviderOutboundSigner.html">DisableWorkloadIdentityProviderOutboundSigner</a> and wait until the signer is <code>INACTIVE</code> before you delete it.</p> </important> <p>You can delete a <code>VALIDATING</code> or an <code>INACTIVE</code> entry. IAM rejects an <code>ACTIVE</code> or an <code>IN_TRANSITION</code> entry with <code>InvalidInputException</code>, so disable the signer first.</p> <p>You identify the entry by its certificate authority, through the identifier and the account. IAM removes only that entry, even if the slot holds others. After you delete the last entry in a slot, <a href="https://docs.aws.amazon.com/IAM/latest/APIReference/API_CreateWorkloadIdentityProviderOutboundSigner.html">CreateWorkloadIdentityProviderOutboundSigner</a> can fill the slot again.</p> <p>IAM releases the association in Amazon Web Services Private CA using your credentials. If Amazon Web Services Private CA refuses to release the association, IAM removes nothing. If Amazon Web Services Private CA reports that the association is already gone, the deletion goes ahead. In neither case is the certificate authority or its certificate deleted. The certificate authority remains in Amazon Web Services Private CA in your account, and deleting it there is a separate action that you take yourself.</p> <p>Delete every X.509 outbound signer on a provider before you delete the provider itself.</p>

    Args:
        workload_identity_provider_arn: <p>The Amazon Resource Name (ARN) of the workload identity provider.</p>
        outbound_signer: <p>The certificate authority of the signer to delete. Specify the <code>X509</code> member. <code>AccountId</code> must match the account recorded for the signer.</p>

    Raises:
        capo_iam.errors.concurrent_modification_exception.ConcurrentModificationException: <p>The request was rejected because multiple requests to change this object were submitted simultaneously. Wait a few minutes and submit your request again.</p>
        capo_iam.errors.invalid_input_exception.InvalidInputException: <p>The request was rejected because an invalid or out-of-range value was supplied for an input parameter.</p>
        capo_iam.errors.no_such_entity_exception.NoSuchEntityException: <p>The request was rejected because it referenced a resource entity that does not exist. The error message describes the resource.</p>
        capo_iam.errors.service_failure_exception.ServiceFailureException: <p>The request processing has failed because of an unknown error, exception or failure.</p>
        capo_iam.errors.UnknownServiceError: The service returned an error code this client does not model.
    """

    def _handler(
        req: "OperationRequest[capo_iam.types.delete_workload_identity_provider_outbound_signer_request.DeleteWorkloadIdentityProviderOutboundSignerRequest]",
    ) -> OperationResponse[
        "capo_iam.types.delete_workload_identity_provider_outbound_signer_response.DeleteWorkloadIdentityProviderOutboundSignerResponse"
    ]:
        import capo_iam._operations.aws_identity_management_v20100508.delete_workload_identity_provider_outbound_signer

        output, http_response = (
            capo_iam._operations.aws_identity_management_v20100508.delete_workload_identity_provider_outbound_signer.delete_workload_identity_provider_outbound_signer(
                req.options, req.input
            )
        )
        return OperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides,
        OperationLogging("DeleteWorkloadIdentityProviderOutboundSigner"),
    )
    input_: capo_iam.types.delete_workload_identity_provider_outbound_signer_request.DeleteWorkloadIdentityProviderOutboundSignerRequest = {
        "workload_identity_provider_arn": workload_identity_provider_arn,
        "outbound_signer": outbound_signer,
    }

    response = execute_pipeline(
        OperationRequest(input=input_, options=options_),
        handler=_handler,
        interceptors=list(interceptors_),
    )
    response.response.close()
    return response.output