certificate_providers
Creates, updates, deletes or gets a certificate_provider
resource or lists certificate_providers
in a region
Overview
Name | certificate_providers |
Type | Resource |
Description | Use the AWS::IoT::CertificateProvider resource to declare an AWS IoT Certificate Provider. |
Id | aws.iot.certificate_providers |
Fields
Name | Datatype | Description |
---|---|---|
certificate_provider_name | string | |
lambda_function_arn | string | |
account_default_for_operations | array | |
tags | array | An array of key-value pairs to apply to this resource. |
arn | string | |
region | string | AWS region. |
Methods
Name | Accessible by | Required Params |
---|---|---|
create_resource | INSERT | LambdaFunctionArn, AccountDefaultForOperations, region |
delete_resource | DELETE | data__Identifier, region |
update_resource | UPDATE | data__Identifier, data__PatchDocument, region |
list_resources | SELECT | region |
get_resource | SELECT | data__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
.
- Required Properties
- All Properties
- Manifest
/*+ create */
INSERT INTO aws.iot.certificate_providers (
LambdaFunctionArn,
AccountDefaultForOperations,
region
)
SELECT
'{{ LambdaFunctionArn }}',
'{{ AccountDefaultForOperations }}',
'{{ region }}';
/*+ create */
INSERT INTO aws.iot.certificate_providers (
CertificateProviderName,
LambdaFunctionArn,
AccountDefaultForOperations,
Tags,
region
)
SELECT
'{{ CertificateProviderName }}',
'{{ LambdaFunctionArn }}',
'{{ AccountDefaultForOperations }}',
'{{ Tags }}',
'{{ region }}';
version: 1
name: stack name
description: stack description
providers:
- aws
globals:
- name: region
value: '{{ vars.AWS_REGION }}'
resources:
- name: certificate_provider
props:
- name: CertificateProviderName
value: '{{ CertificateProviderName }}'
- name: LambdaFunctionArn
value: '{{ LambdaFunctionArn }}'
- name: AccountDefaultForOperations
value:
- '{{ AccountDefaultForOperations[0] }}'
- name: Tags
value:
- Key: '{{ Key }}'
Value: '{{ Value }}'
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