Skip to main content

certificate_providers

Creates, updates, deletes or gets a certificate_provider resource or lists certificate_providers in a region

Overview

Namecertificate_providers
TypeResource
DescriptionUse the AWS::IoT::CertificateProvider resource to declare an AWS IoT Certificate Provider.
Idaws.iot.certificate_providers

Fields

NameDatatypeDescription
certificate_provider_namestring
lambda_function_arnstring
account_default_for_operationsarray
tagsarrayAn array of key-value pairs to apply to this resource.
arnstring
regionstringAWS region.

Methods

NameAccessible byRequired Params
create_resourceINSERTLambdaFunctionArn, AccountDefaultForOperations, region
delete_resourceDELETEdata__Identifier, region
update_resourceUPDATEdata__Identifier, data__PatchDocument, region
list_resourcesSELECTregion
get_resourceSELECTdata__Identifier, region

SELECT examples

Gets all certificate_providers in a region.

SELECT
region,
certificate_provider_name,
lambda_function_arn,
account_default_for_operations,
tags,
arn
FROM aws.iot.certificate_providers
WHERE region = 'us-east-1';

Gets all properties from an individual certificate_provider.

SELECT
region,
certificate_provider_name,
lambda_function_arn,
account_default_for_operations,
tags,
arn
FROM aws.iot.certificate_providers
WHERE region = 'us-east-1' AND data__Identifier = '<CertificateProviderName>';

INSERT example

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

/*+ create */
INSERT INTO aws.iot.certificate_providers (
LambdaFunctionArn,
AccountDefaultForOperations,
region
)
SELECT
'{{ LambdaFunctionArn }}',
'{{ AccountDefaultForOperations }}',
'{{ region }}';

DELETE example

/*+ delete */
DELETE FROM aws.iot.certificate_providers
WHERE data__Identifier = '<CertificateProviderName>'
AND region = 'us-east-1';

Permissions

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

Create

iot:CreateCertificateProvider,
iot:DescribeCertificateProvider,
iot:TagResource,
iot:ListTagsForResource

Read

iot:DescribeCertificateProvider,
iot:ListTagsForResource

Update

iot:UpdateCertificateProvider,
iot:DescribeCertificateProvider,
iot:TagResource,
iot:UntagResource,
iot:ListTagsForResource

Delete

iot:DeleteCertificateProvider,
iot:DescribeCertificateProvider

List

iot:ListCertificateProviders