IAM.Client.
tag_server_certificate
(**kwargs)¶Adds one or more tags to an IAM server certificate. If a tag with the same key name already exists, then that tag is overwritten with the new value.
Note
For certificates in a Region supported by Certificate Manager (ACM), we recommend that you don't use IAM server certificates. Instead, use ACM to provision, manage, and deploy your server certificates. For more information about IAM server certificates, Working with server certificates in the IAM User Guide .
A tag consists of a key name and an associated value. By assigning tags to your resources, you can do the following:
Note
Value
as a single string. If you need to store an array, you can store comma-separated values in the string. However, you must interpret the value in your code.See also: AWS API Documentation
Request Syntax
response = client.tag_server_certificate(
ServerCertificateName='string',
Tags=[
{
'Key': 'string',
'Value': 'string'
},
]
)
[REQUIRED]
The name of the IAM server certificate to which you want to add tags.
This parameter allows (through its regex pattern ) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: _+=,.@-
[REQUIRED]
The list of tags that you want to attach to the IAM server certificate. Each tag consists of a key name and an associated value.
A structure that represents user-provided metadata that can be associated with an IAM resource. For more information about tagging, see Tagging IAM resources in the IAM User Guide .
The key name that can be used to look up or retrieve the associated value. For example, Department
or Cost Center
are common choices.
The value associated with this tag. For example, tags with a key name of Department
could have values such as Human Resources
, Accounting
, and Support
. Tags with a key name of Cost Center
might have values that consist of the number associated with the different cost centers in your company. Typically, many resources have tags with the same key name but with different values.
Note
Amazon Web Services always interprets the tag Value
as a single string. If you need to store an array, you can store comma-separated values in the string. However, you must interpret the value in your code.
None
Exceptions
IAM.Client.exceptions.NoSuchEntityException
IAM.Client.exceptions.InvalidInputException
IAM.Client.exceptions.LimitExceededException
IAM.Client.exceptions.ConcurrentModificationException
IAM.Client.exceptions.ServiceFailureException