Rotates the X.509 outbound signer in a slot to a different Amazon Web Services Private CA certificate authority with the same key algorithm. You can also use it to cancel or re-time a rotation that is already in progress.
For an organization-scoped provider, only the organization's management account or a delegated administrator can call this operation.
The certificate authority you specify determines what happens:
-
A new authority – IAM adds a new entry that starts signing after SigningDelayInHours. The current signer keeps signing until that moment and then stops, so there is no gap and no overlap in signing. The current signer stays VALIDATING for 12 hours after it stops, then becomes INACTIVE.
-
The authority that is currently signing – If a rotation is pending, IAM cancels it and signing continues without interruption. If no rotation is pending, the request makes no change.
-
The authority that is being rotated in – This changes the rotation's timing. Its start time moves to now plus SigningDelayInHours, and the current signer stops at that same moment. IAM adds no entry. You can shorten the delay, and IAM does not check that the delay leaves verifiers enough time to obtain the new trust material.
-
An authority whose entry in the slot has stopped signing – An entry that is disabled, VALIDATING or INACTIVE attaches again as the incoming signer, following the rotation process above.
A slot holds at most five entries. When a rotation would exceed that, IAM first deletes the oldest INACTIVE entries in the slot, calling DeleteWorkloadIdentityProviderOutboundSigner on your behalf. Those deletions are permanent even if the rotation then fails. If there are not enough INACTIVE entries, the request fails with LimitExceededException.
This operation only rotates within a slot. The certificate authority must therefore use the same key algorithm as the slot's signer, and it must meet the certificate authority requirements listed under CreateWorkloadIdentityProviderOutboundSigner. To start using a different key algorithm, use CreateWorkloadIdentityProviderOutboundSigner to fill that slot.
Parameters:
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.
-
LimitExceededException
–
The request was rejected because it attempted to create resources beyond the current Amazon Web Services account limits. The error message describes the limit exceeded.
-
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/async_iam.py
| async def update_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[AsyncIAMClientConfig] = None,
signing_delay_in_hours: Optional[
"capo_iam.types.workload_identity_signing_delay_in_hours_type.workloadIdentitySigningDelayInHoursType"
] = None,
) -> "capo_iam.types.update_workload_identity_provider_outbound_signer_response.UpdateWorkloadIdentityProviderOutboundSignerResponse":
"""<p>Rotates the X.509 outbound signer in a slot to a different Amazon Web Services Private CA certificate authority with the same key algorithm. You can also use it to cancel or re-time a rotation that is already in progress.</p> <p>For an organization-scoped provider, only the organization's management account or a delegated administrator can call this operation.</p> <p>The certificate authority you specify determines what happens:</p> <ul> <li> <p> <b>A new authority</b> – IAM adds a new entry that starts signing after <code>SigningDelayInHours</code>. The current signer keeps signing until that moment and then stops, so there is no gap and no overlap in signing. The current signer stays <code>VALIDATING</code> for 12 hours after it stops, then becomes <code>INACTIVE</code>.</p> </li> <li> <p> <b>The authority that is currently signing</b> – If a rotation is pending, IAM cancels it and signing continues without interruption. If no rotation is pending, the request makes no change.</p> </li> <li> <p> <b>The authority that is being rotated in</b> – This changes the rotation's timing. Its start time moves to now plus <code>SigningDelayInHours</code>, and the current signer stops at that same moment. IAM adds no entry. You can shorten the delay, and IAM does not check that the delay leaves verifiers enough time to obtain the new trust material.</p> </li> <li> <p> <b>An authority whose entry in the slot has stopped signing</b> – An entry that is disabled, <code>VALIDATING</code> or <code>INACTIVE</code> attaches again as the incoming signer, following the rotation process above.</p> </li> </ul> <p>A slot holds at most five entries. When a rotation would exceed that, IAM first deletes the oldest <code>INACTIVE</code> entries in the slot, calling <a href="https://docs.aws.amazon.com/IAM/latest/APIReference/API_DeleteWorkloadIdentityProviderOutboundSigner.html">DeleteWorkloadIdentityProviderOutboundSigner</a> on your behalf. Those deletions are permanent even if the rotation then fails. If there are not enough <code>INACTIVE</code> entries, the request fails with <code>LimitExceededException</code>.</p> <p>This operation only rotates within a slot. The certificate authority must therefore use the same key algorithm as the slot's signer, and it must meet the certificate authority requirements listed under <a href="https://docs.aws.amazon.com/IAM/latest/APIReference/API_CreateWorkloadIdentityProviderOutboundSigner.html">CreateWorkloadIdentityProviderOutboundSigner</a>. To start using a different key algorithm, use <code>CreateWorkloadIdentityProviderOutboundSigner</code> to fill that slot.</p>
Args:
workload_identity_provider_arn: <p>The Amazon Resource Name (ARN) of the workload identity provider.</p>
outbound_signer: <p>The certificate authority to rotate to. Specify the <code>X509</code> member.</p>
signing_delay_in_hours: <p>The number of hours before the incoming authority starts signing.</p> <p>Default: 24.</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.limit_exceeded_exception.LimitExceededException: <p>The request was rejected because it attempted to create resources beyond the current Amazon Web Services account limits. The error message describes the limit exceeded.</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.
"""
async def _handler(
req: "AsyncOperationRequest[capo_iam.types.update_workload_identity_provider_outbound_signer_request.UpdateWorkloadIdentityProviderOutboundSignerRequest]",
) -> AsyncOperationResponse[
"capo_iam.types.update_workload_identity_provider_outbound_signer_response.UpdateWorkloadIdentityProviderOutboundSignerResponse"
]:
import capo_iam._operations.aws_identity_management_v20100508.update_workload_identity_provider_outbound_signer
(
output,
http_response,
) = await capo_iam._operations.aws_identity_management_v20100508.update_workload_identity_provider_outbound_signer.async_update_workload_identity_provider_outbound_signer(
req.options, req.input
)
return AsyncOperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides,
OperationLogging("UpdateWorkloadIdentityProviderOutboundSigner"),
)
input_: capo_iam.types.update_workload_identity_provider_outbound_signer_request.UpdateWorkloadIdentityProviderOutboundSignerRequest = {
"workload_identity_provider_arn": workload_identity_provider_arn,
"outbound_signer": outbound_signer,
}
if signing_delay_in_hours is not None:
input_["signing_delay_in_hours"] = signing_delay_in_hours
response = await aexecute_pipeline(
AsyncOperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
await response.response.aclose()
return response.output
|