

# UpdateWorkloadIdentityProviderOutboundSigner

Rotates the X.509 outbound signer in a slot to a different AWS 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](https://docs.aws.amazon.com/IAM/latest/APIReference/API_DeleteWorkloadIdentityProviderOutboundSigner.html) 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](https://docs.aws.amazon.com/IAM/latest/APIReference/API_CreateWorkloadIdentityProviderOutboundSigner.html). To start using a different key algorithm, use `CreateWorkloadIdentityProviderOutboundSigner` to fill that slot.

## Request Parameters
<a name="API_UpdateWorkloadIdentityProviderOutboundSigner_RequestParameters"></a>

 For information about the parameters that are common to all actions, see [Common Parameters](CommonParameters.md).

 ** OutboundSigner **   
The certificate authority to rotate to. Specify the `X509` member.  
Type: [WorkloadIdentityOutboundSignerConfiguration](API_WorkloadIdentityOutboundSignerConfiguration.md) object  
 **Note: **This object is a Union. Only one member of this object can be specified or returned.  
Required: Yes

 ** SigningDelayInHours **   
The number of hours before the incoming authority starts signing.  
Default: 24.  
Type: Integer  
Valid Range: Minimum value of 1. Maximum value of 48.  
Required: No

 ** WorkloadIdentityProviderArn **   
The Amazon Resource Name (ARN) of the workload identity provider.  
Type: String  
Length Constraints: Minimum length of 20. Maximum length of 2048.  
Required: Yes

## Errors
<a name="API_UpdateWorkloadIdentityProviderOutboundSigner_Errors"></a>

For information about the errors that are common to all actions, see [Common Error Types](CommonErrors.md).

 ** 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

 ** LimitExceeded **   
The request was rejected because it attempted to create resources beyond the current AWS account limits. The error message describes the limit exceeded.  
HTTP Status Code: 409

 ** 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
<a name="API_UpdateWorkloadIdentityProviderOutboundSigner_Examples"></a>

### Example – Rotate the X.509 signer to a new authority
<a name="API_UpdateWorkloadIdentityProviderOutboundSigner_Example_1"></a>

The new authority starts signing 24 hours after the call.

#### Sample Request
<a name="API_UpdateWorkloadIdentityProviderOutboundSigner_Example_1_Request"></a>

```
https://iam.amazonaws.com/?Action=UpdateWorkloadIdentityProviderOutboundSigner
&WorkloadIdentityProviderArn=arn%3Aaws%3Aiam%3A%3A111122223333%3Aworkload-identity-provider%2FPaymentsProd
&OutboundSigner.X509.CertificateAuthorityId=a1b2c3d4-5678-90ab-cdef-EXAMPLE22222
&OutboundSigner.X509.AccountId=111122223333
&SigningDelayInHours=24
&Version=2010-05-08
&AUTHPARAMS
```

#### Sample Response
<a name="API_UpdateWorkloadIdentityProviderOutboundSigner_Example_1_Response"></a>

```xml
<UpdateWorkloadIdentityProviderOutboundSignerResponse xmlns="https://iam.amazonaws.com/doc/2010-05-08/">
  <ResponseMetadata>
    <RequestId>7a62c49f-347e-4fc4-9331-6e8eEXAMPLE</RequestId>
  </ResponseMetadata>
</UpdateWorkloadIdentityProviderOutboundSignerResponse>
```

## See Also
<a name="API_UpdateWorkloadIdentityProviderOutboundSigner_SeeAlso"></a>

For more information about using this API in one of the language-specific AWS SDKs, see the following:
+  [AWS Command Line Interface V2](https://docs.aws.amazon.com/goto/cli2/iam-2010-05-08/UpdateWorkloadIdentityProviderOutboundSigner) 
+  [AWS SDK for .NET V4](https://docs.aws.amazon.com/goto/DotNetSDKV4/iam-2010-05-08/UpdateWorkloadIdentityProviderOutboundSigner) 
+  [AWS SDK for C\+\+](https://docs.aws.amazon.com/goto/SdkForCpp/iam-2010-05-08/UpdateWorkloadIdentityProviderOutboundSigner) 
+  [AWS SDK for Go v2](https://docs.aws.amazon.com/goto/SdkForGoV2/iam-2010-05-08/UpdateWorkloadIdentityProviderOutboundSigner) 
+  [AWS SDK for Java V2](https://docs.aws.amazon.com/goto/SdkForJavaV2/iam-2010-05-08/UpdateWorkloadIdentityProviderOutboundSigner) 
+  [AWS SDK for JavaScript V3](https://docs.aws.amazon.com/goto/SdkForJavaScriptV3/iam-2010-05-08/UpdateWorkloadIdentityProviderOutboundSigner) 
+  [AWS SDK for Kotlin](https://docs.aws.amazon.com/goto/SdkForKotlin/iam-2010-05-08/UpdateWorkloadIdentityProviderOutboundSigner) 
+  [AWS SDK for PHP V3](https://docs.aws.amazon.com/goto/SdkForPHPV3/iam-2010-05-08/UpdateWorkloadIdentityProviderOutboundSigner) 
+  [AWS SDK for Python (Boto3)](https://docs.aws.amazon.com/goto/boto3/iam-2010-05-08/UpdateWorkloadIdentityProviderOutboundSigner) 
+  [AWS SDK for Ruby V3](https://docs.aws.amazon.com/goto/SdkForRubyV3/iam-2010-05-08/UpdateWorkloadIdentityProviderOutboundSigner) 