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 in the
IAM User Guide.
Request Parameters
For information about the parameters that are common to all actions, see Common Parameters.
- 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.NoteIf 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 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
For information about the errors that are common to all actions, see Common Error Types.
- 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
Example
This example illustrates one usage of TagWorkloadIdentityProvider.
Sample Request
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
<TagWorkloadIdentityProviderResponse xmlns="https://iam.amazonaws.com/doc/2010-05-08/">
<ResponseMetadata>
<RequestId>EXAMPLE8-90ab-cdef-fedc-ba987EXAMPLE</RequestId>
</ResponseMetadata>
</TagWorkloadIdentityProviderResponse>
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following: