

# TagWorkloadIdentityProvider

Adds tags to the specified workload identity provider. A supplied key replaces the value of an existing tag with that key, and tags with other keys are unchanged. Tag keys are case sensitive. A request that would leave the provider with two tag keys that differ only in case is rejected with `InvalidInputException`, whether both keys are in the request or one is already attached. For more information about tagging, see [Tagging IAM resources](https://docs.aws.amazon.com/IAM/latest/UserGuide/id_tags.html) in the *IAM User Guide*.

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

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

 **Tags.member.N**   
The tags to add to the workload identity provider. Each tag consists of a key name and an associated value. No member can be null, and IAM rejects a tag key in the reserved `aws:` namespace.  
If any one of the tags is invalid or if you exceed the allowed maximum number of tags, then the entire request fails and the provider's tags are not changed.
Type: Array of [Tag](API_Tag.md) objects  
Array Members: Maximum number of 50 items.  
Required: Yes

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

## Errors
<a name="API_TagWorkloadIdentityProvider_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_TagWorkloadIdentityProvider_Examples"></a>

### Example
<a name="API_TagWorkloadIdentityProvider_Example_1"></a>

This example illustrates one usage of TagWorkloadIdentityProvider.

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

```
https://iam.amazonaws.com/?Action=TagWorkloadIdentityProvider
&WorkloadIdentityProviderArn=arn:aws:iam::111122223333:workload-identity-provider/PaymentsProd
&Tags.member.1.Key=Dept
&Tags.member.1.Value=Accounting
&Tags.member.2.Key=CostCenter
&Tags.member.2.Value=12345
&Version=2010-05-08
&AUTHPARAMS
```

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

```xml
<TagWorkloadIdentityProviderResponse xmlns="https://iam.amazonaws.com/doc/2010-05-08/">
  <ResponseMetadata>
    <RequestId>EXAMPLE8-90ab-cdef-fedc-ba987EXAMPLE</RequestId>
  </ResponseMetadata>
</TagWorkloadIdentityProviderResponse>
```

## See Also
<a name="API_TagWorkloadIdentityProvider_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/TagWorkloadIdentityProvider) 
+  [AWS SDK for .NET V4](https://docs.aws.amazon.com/goto/DotNetSDKV4/iam-2010-05-08/TagWorkloadIdentityProvider) 
+  [AWS SDK for C\+\+](https://docs.aws.amazon.com/goto/SdkForCpp/iam-2010-05-08/TagWorkloadIdentityProvider) 
+  [AWS SDK for Go v2](https://docs.aws.amazon.com/goto/SdkForGoV2/iam-2010-05-08/TagWorkloadIdentityProvider) 
+  [AWS SDK for Java V2](https://docs.aws.amazon.com/goto/SdkForJavaV2/iam-2010-05-08/TagWorkloadIdentityProvider) 
+  [AWS SDK for JavaScript V3](https://docs.aws.amazon.com/goto/SdkForJavaScriptV3/iam-2010-05-08/TagWorkloadIdentityProvider) 
+  [AWS SDK for Kotlin](https://docs.aws.amazon.com/goto/SdkForKotlin/iam-2010-05-08/TagWorkloadIdentityProvider) 
+  [AWS SDK for PHP V3](https://docs.aws.amazon.com/goto/SdkForPHPV3/iam-2010-05-08/TagWorkloadIdentityProvider) 
+  [AWS SDK for Python (Boto3)](https://docs.aws.amazon.com/goto/boto3/iam-2010-05-08/TagWorkloadIdentityProvider) 
+  [AWS SDK for Ruby V3](https://docs.aws.amazon.com/goto/SdkForRubyV3/iam-2010-05-08/TagWorkloadIdentityProvider) 