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.
Idawscc.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.

For more information, see AWS::IoT::CertificateProvider.

Methods

NameResourceAccessible byRequired Params
create_resourcecertificate_providersINSERTLambdaFunctionArn, AccountDefaultForOperations, region
delete_resourcecertificate_providersDELETEIdentifier, region
update_resourcecertificate_providersUPDATEIdentifier, PatchDocument, region
list_resourcescertificate_providers_list_onlySELECTregion
get_resourcecertificate_providersSELECTIdentifier, region

SELECT examples

Gets all properties from an individual certificate_provider.

SELECT
region,
certificate_provider_name,
lambda_function_arn,
account_default_for_operations,
tags,
arn
FROM awscc.iot.certificate_providers
WHERE
region = 'us-east-1' AND
Identifier = '{{ certificate_provider_name }}';

INSERT example

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

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

UPDATE example

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

/*+ update */
UPDATE awscc.iot.certificate_providers
SET PatchDocument = string('{{ {
"LambdaFunctionArn": lambda_function_arn,
"AccountDefaultForOperations": account_default_for_operations,
"Tags": tags
} | generate_patch_document }}')
WHERE
region = '{{ region }}' AND
Identifier = '{{ certificate_provider_name }}';

DELETE example

/*+ delete */
DELETE FROM awscc.iot.certificate_providers
WHERE
Identifier = '{{ certificate_provider_name }}' AND
region = 'us-east-1';

Permissions

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

iot:CreateCertificateProvider,
iot:DescribeCertificateProvider,
iot:TagResource,
iot:ListTagsForResource,
kms:Decrypt