Skip to content

disable_workload_identity_provider_outbound_signer

disable_workload_identity_provider_outbound_signer(
    workload_identity_provider_arn: arnType,
    signer_type: workloadIdentityOutboundSignerTypeType,
    *,
    config_overrides: Optional[IAMClientConfig] = None,
) -> DisableWorkloadIdentityProviderOutboundSignerResponse

Immediately stops a workload identity provider from issuing X.509 credentials.

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

  • It stops every X.509 signer that is signing or waiting to sign – That includes both halves of a rotation in progress, across all slots. A signing entry gets an EndSigningTime of now, and an entry still in IN_TRANSITION stops before it ever signs.

  • It keeps trust material published for 12 hours – Every stopped entry gets a DiscoveryExpirationTime of now plus 12 hours, so credentials it already issued keep verifying. Stopped entries become VALIDATING, then INACTIVE after 12 hours.

  • It removes nothing – IAM keeps the certificate authority associations and the signer configuration, so EnableWorkloadIdentityProviderOutboundSigner can resume signing.

  • It is idempotent – Calling it again while a signer is still VALIDATING succeeds and changes nothing.

Parameters:

  • workload_identity_provider_arn (arnType) –

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

  • signer_type (workloadIdentityOutboundSignerTypeType) –

    The credential format to disable. The value must be X509. IAM rejects JWT, because IAM manages the outbound signers for JWT credentials, and you cannot disable, enable or delete them.

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 disable_workload_identity_provider_outbound_signer(
    self,
    workload_identity_provider_arn: "capo_iam.types.arn_type.arnType",
    signer_type: "capo_iam.types.workload_identity_outbound_signer_type_type.workloadIdentityOutboundSignerTypeType",
    *,
    config_overrides: Optional[IAMClientConfig] = None,
) -> "capo_iam.types.disable_workload_identity_provider_outbound_signer_response.DisableWorkloadIdentityProviderOutboundSignerResponse":
    """<p>Immediately stops a workload identity provider from issuing X.509 credentials.</p> <p>For an organization-scoped provider, only the organization's management account or a delegated administrator can call this operation.</p> <ul> <li> <p> <b>It stops every X.509 signer that is signing or waiting to sign</b> – That includes both halves of a rotation in progress, across all slots. A signing entry gets an <code>EndSigningTime</code> of now, and an entry still in <code>IN_TRANSITION</code> stops before it ever signs.</p> </li> <li> <p> <b>It keeps trust material published for 12 hours</b> – Every stopped entry gets a <code>DiscoveryExpirationTime</code> of now plus 12 hours, so credentials it already issued keep verifying. Stopped entries become <code>VALIDATING</code>, then <code>INACTIVE</code> after 12 hours.</p> </li> <li> <p> <b>It removes nothing</b> – IAM keeps the certificate authority associations and the signer configuration, so <a href="https://docs.aws.amazon.com/IAM/latest/APIReference/API_EnableWorkloadIdentityProviderOutboundSigner.html">EnableWorkloadIdentityProviderOutboundSigner</a> can resume signing.</p> </li> <li> <p> <b>It is idempotent</b> – Calling it again while a signer is still <code>VALIDATING</code> succeeds and changes nothing.</p> </li> </ul>

    Args:
        workload_identity_provider_arn: <p>The Amazon Resource Name (ARN) of the workload identity provider.</p>
        signer_type: <p>The credential format to disable. The value must be <code>X509</code>. IAM rejects <code>JWT</code>, because IAM manages the outbound signers for JWT credentials, and you cannot disable, enable or delete them.</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.disable_workload_identity_provider_outbound_signer_request.DisableWorkloadIdentityProviderOutboundSignerRequest]",
    ) -> OperationResponse[
        "capo_iam.types.disable_workload_identity_provider_outbound_signer_response.DisableWorkloadIdentityProviderOutboundSignerResponse"
    ]:
        import capo_iam._operations.aws_identity_management_v20100508.disable_workload_identity_provider_outbound_signer

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

    interceptors_, options_ = self.operation_options(
        config_overrides,
        OperationLogging("DisableWorkloadIdentityProviderOutboundSigner"),
    )
    input_: capo_iam.types.disable_workload_identity_provider_outbound_signer_request.DisableWorkloadIdentityProviderOutboundSignerRequest = {
        "workload_identity_provider_arn": workload_identity_provider_arn,
        "signer_type": signer_type,
    }

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