Skip to main content

certificates

Creates, updates, deletes or gets a certificate resource or lists certificates in a region

Overview

Namecertificates
TypeResource
DescriptionResource Type definition for AWS::Transfer::Certificate
Idaws.transfer.certificates

Fields

NameDatatypeDescription
usagestringSpecifies the usage type for the certificate.
certificatestringSpecifies the certificate body to be imported.
certificate_chainstringSpecifies the certificate chain to be imported.
private_keystringSpecifies the private key for the certificate.
active_datestringSpecifies the active date for the certificate.
inactive_datestringSpecifies the inactive date for the certificate.
descriptionstringA textual description for the certificate.
tagsarrayKey-value pairs that can be used to group and search for certificates. Tags are metadata attached to certificates for any purpose.
arnstringSpecifies the unique Amazon Resource Name (ARN) for the agreement.
certificate_idstringA unique identifier for the certificate.
statusstringA status description for the certificate.
typestringDescribing the type of certificate. With or without a private key.
serialstringSpecifies Certificate's serial.
not_before_datestringSpecifies the not before date for the certificate.
not_after_datestringSpecifies the not after date for the certificate.
regionstringAWS region.

Methods

NameAccessible byRequired Params
create_resourceINSERTCertificate, Usage, region
delete_resourceDELETEdata__Identifier, region
update_resourceUPDATEdata__Identifier, data__PatchDocument, region
list_resourcesSELECTregion
get_resourceSELECTdata__Identifier, region

SELECT examples

Gets all certificates in a region.

SELECT
region,
usage,
certificate,
certificate_chain,
private_key,
active_date,
inactive_date,
description,
tags,
arn,
certificate_id,
status,
type,
serial,
not_before_date,
not_after_date
FROM aws.transfer.certificates
WHERE region = 'us-east-1';

Gets all properties from an individual certificate.

SELECT
region,
usage,
certificate,
certificate_chain,
private_key,
active_date,
inactive_date,
description,
tags,
arn,
certificate_id,
status,
type,
serial,
not_before_date,
not_after_date
FROM aws.transfer.certificates
WHERE region = 'us-east-1' AND data__Identifier = '<CertificateId>';

INSERT example

Use the following StackQL query and manifest file to create a new certificate resource, using stack-deploy.

/*+ create */
INSERT INTO aws.transfer.certificates (
Usage,
Certificate,
region
)
SELECT
'{{ Usage }}',
'{{ Certificate }}',
'{{ region }}';

DELETE example

/*+ delete */
DELETE FROM aws.transfer.certificates
WHERE data__Identifier = '<CertificateId>'
AND region = 'us-east-1';

Permissions

To operate on the certificates resource, the following permissions are required:

Create

transfer:ImportCertificate,
transfer:TagResource

Read

transfer:DescribeCertificate

Update

transfer:UpdateCertificate,
transfer:UnTagResource,
transfer:TagResource

Delete

transfer:DeleteCertificate

List

transfer:ListCertificates