Skip to main content

certificates_by_cas

Creates, updates, deletes, gets or lists a certificates_by_cas resource.

Overview

Namecertificates_by_cas
TypeResource
Idaws.iot.certificates_by_cas

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
certificate_arnstringThe ARN of the certificate.
certificate_idstringThe ID of the certificate. (The last part of the certificate ARN contains the certificate ID.) (pattern: <code>(0x)?[a-fA-F0-9]+</code>)
certificate_modestringThe mode of the certificate. DEFAULT: A certificate in DEFAULT mode is either generated by Amazon Web Services IoT Core or registered with an issuer certificate authority (CA) in DEFAULT mode. Devices with certificates in DEFAULT mode aren't required to send the Server Name Indication (SNI) extension when connecting to Amazon Web Services IoT Core. However, to use features such as custom domains and VPC endpoints, we recommend that you use the SNI extension when connecting to Amazon Web Services IoT Core. SNI_ONLY: A certificate in SNI_ONLY mode is registered without an issuer CA. Devices with certificates in SNI_ONLY mode must send the SNI extension when connecting to Amazon Web Services IoT Core. (DEFAULT, SNI_ONLY)
creation_datestring (date-time)The date and time the certificate was created.
statusstringThe status of the certificate. The status value REGISTER_INACTIVE is deprecated and should not be used. (ACTIVE, INACTIVE, REVOKED, PENDING_TRANSFER, REGISTER_INACTIVE, PENDING_ACTIVATION)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_certificates_by_caselectca_certificate_id, regionpageSize, marker, isAscendingOrderList the device certificates signed by the specified CA certificate. Requires permission to access the ListCertificatesByCA action.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
ca_certificate_idstringThe ID of the CA certificate. This operation will list all registered device certificate that were signed by this CA certificate.
regionstringAWS region (default: us-east-1)
isAscendingOrderbooleanSpecifies the order for results. If True, the results are returned in ascending order, based on the creation date.
markerstringThe marker for the next set of results.
pageSizeintegerThe result page size.

SELECT examples

List the device certificates signed by the specified CA certificate. Requires permission to access the ListCertificatesByCA action.

SELECT
certificate_arn,
certificate_id,
certificate_mode,
creation_date,
status
FROM aws.iot.certificates_by_cas
WHERE ca_certificate_id = '{{ ca_certificate_id }}' -- required
AND region = '{{ region }}' -- required
AND pageSize = '{{ pageSize }}'
AND marker = '{{ marker }}'
AND isAscendingOrder = '{{ isAscendingOrder }}'
;