describe_certificate
(**kwargs)¶Describes the certificate that's identified by the CertificateId
.
See also: AWS API Documentation
Request Syntax
response = client.describe_certificate(
CertificateId='string'
)
[REQUIRED]
An array of identifiers for the imported certificates. You use this identifier for working with profiles and partner profiles.
{
'Certificate': {
'Arn': 'string',
'CertificateId': 'string',
'Usage': 'SIGNING'|'ENCRYPTION',
'Status': 'ACTIVE'|'PENDING_ROTATION'|'INACTIVE',
'Certificate': 'string',
'CertificateChain': 'string',
'ActiveDate': datetime(2015, 1, 1),
'InactiveDate': datetime(2015, 1, 1),
'Serial': 'string',
'NotBeforeDate': datetime(2015, 1, 1),
'NotAfterDate': datetime(2015, 1, 1),
'Type': 'CERTIFICATE'|'CERTIFICATE_WITH_PRIVATE_KEY',
'Description': 'string',
'Tags': [
{
'Key': 'string',
'Value': 'string'
},
]
}
}
Response Structure
The details for the specified certificate, returned as an object.
The unique Amazon Resource Name (ARN) for the certificate.
An array of identifiers for the imported certificates. You use this identifier for working with profiles and partner profiles.
Specifies whether this certificate is used for signing or encryption.
The certificate can be either ACTIVE
, PENDING_ROTATION
, or INACTIVE
. PENDING_ROTATION
means that this certificate will replace the current certificate when it expires.
The file name for the certificate.
The list of certificates that make up the chain for the certificate.
An optional date that specifies when the certificate becomes active.
An optional date that specifies when the certificate becomes inactive.
The serial number for the certificate.
The earliest date that the certificate is valid.
The final date that the certificate is valid.
If a private key has been specified for the certificate, its type is CERTIFICATE_WITH_PRIVATE_KEY
. If there is no private key, the type is CERTIFICATE
.
The name or description that's used to identity the certificate.
Key-value pairs that can be used to group and search for certificates.
Creates a key-value pair for a specific resource. Tags are metadata that you can use to search for and group a resource for various purposes. You can apply tags to servers, users, and roles. A tag key can take more than one value. For example, to group servers for accounting purposes, you might create a tag called Group
and assign the values Research
and Accounting
to that group.
The name assigned to the tag that you create.
Contains one or more values that you assigned to the key name you create.
Exceptions
Transfer.Client.exceptions.ServiceUnavailableException
Transfer.Client.exceptions.InternalServiceError
Transfer.Client.exceptions.InvalidRequestException
Transfer.Client.exceptions.ResourceNotFoundException