Skip to main content

certificate_providers

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

Overview

Namecertificate_providers
TypeResource
Idaws.iot.certificate_providers

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
account_default_for_operationsarrayA list of the operations that the certificate provider will use to generate certificates. Valid value: CreateCertificateFromCsr.
certificate_provider_arnstringThe ARN of the certificate provider.
certificate_provider_namestringThe name of the certificate provider. (pattern: <code>[\w=,@-]+</code>)
creation_datestring (date-time)The date-time string that indicates when the certificate provider was created.
lambda_function_arnstringThe Lambda function ARN that's associated with the certificate provider. (pattern: <code>[\s\S]*</code>)
last_modified_datestring (date-time)The date-time string that indicates when the certificate provider was last updated.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
describe_certificate_providerselectcertificate_provider_name, regionDescribes a certificate provider. Requires permission to access the DescribeCertificateProvider action.
list_certificate_providersselectregionnextToken, isAscendingOrderLists all your certificate providers in your Amazon Web Services account. Requires permission to access the ListCertificateProviders action.
create_certificate_providerinsertcertificate_provider_name, region, lambdaFunctionArn, accountDefaultForOperationsCreates an Amazon Web Services IoT Core certificate provider. You can use Amazon Web Services IoT Core certificate provider to customize how to sign a certificate signing request (CSR) in IoT fleet provisioning. For more information, see Customizing certificate signing using Amazon Web Services IoT Core certificate provider from Amazon Web Services IoT Core Developer Guide. Requires permission to access the CreateCertificateProvider action. After you create a certificate provider, the behavior of CreateCertificateFromCsr API for fleet provisioning will change and all API calls to CreateCertificateFromCsr will invoke the certificate provider to create the certificates. It can take up to a few minutes for this behavior to change after a certificate provider is created.
update_certificate_providerupdatecertificate_provider_name, regionUpdates a certificate provider. Requires permission to access the UpdateCertificateProvider action.
delete_certificate_providerdeletecertificate_provider_name, regionDeletes a certificate provider. Requires permission to access the DeleteCertificateProvider action. If you delete the certificate provider resource, the behavior of CreateCertificateFromCsr will resume, and IoT will create certificates signed by IoT from a certificate signing request (CSR).

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
certificate_provider_namestringThe name of the certificate provider.
regionstringAWS region (default: us-east-1)
isAscendingOrderbooleanReturns the list of certificate providers in ascending alphabetical order.
nextTokenstringThe token for the next set of results, or null if there are no more results.

SELECT examples

Describes a certificate provider. Requires permission to access the DescribeCertificateProvider action.

SELECT
account_default_for_operations,
certificate_provider_arn,
certificate_provider_name,
creation_date,
lambda_function_arn,
last_modified_date
FROM aws.iot.certificate_providers
WHERE certificate_provider_name = '{{ certificate_provider_name }}' -- required
AND region = '{{ region }}' -- required
;

INSERT examples

Creates an Amazon Web Services IoT Core certificate provider. You can use Amazon Web Services IoT Core certificate provider to customize how to sign a certificate signing request (CSR) in IoT fleet provisioning. For more information, see Customizing certificate signing using Amazon Web Services IoT Core certificate provider from Amazon Web Services IoT Core Developer Guide. Requires permission to access the CreateCertificateProvider action. After you create a certificate provider, the behavior of CreateCertificateFromCsr API for fleet provisioning will change and all API calls to CreateCertificateFromCsr will invoke the certificate provider to create the certificates. It can take up to a few minutes for this behavior to change after a certificate provider is created.

INSERT INTO aws.iot.certificate_providers (
lambdaFunctionArn,
accountDefaultForOperations,
clientToken,
tags,
certificate_provider_name,
region
)
SELECT
'{{ lambdaFunctionArn }}' /* required */,
'{{ accountDefaultForOperations }}' /* required */,
'{{ clientToken }}',
'{{ tags }}',
'{{ certificate_provider_name }}',
'{{ region }}'
RETURNING
certificate_provider_arn,
certificate_provider_name
;

UPDATE examples

Updates a certificate provider. Requires permission to access the UpdateCertificateProvider action.

UPDATE aws.iot.certificate_providers
SET
lambdaFunctionArn = '{{ lambdaFunctionArn }}',
accountDefaultForOperations = '{{ accountDefaultForOperations }}'
WHERE
certificate_provider_name = '{{ certificate_provider_name }}' --required
AND region = '{{ region }}' --required
RETURNING
certificate_provider_arn,
certificate_provider_name;

DELETE examples

Deletes a certificate provider. Requires permission to access the DeleteCertificateProvider action. If you delete the certificate provider resource, the behavior of CreateCertificateFromCsr will resume, and IoT will create certificates signed by IoT from a certificate signing request (CSR).

DELETE FROM aws.iot.certificate_providers
WHERE certificate_provider_name = '{{ certificate_provider_name }}' --required
AND region = '{{ region }}' --required
;