Skip to main content

domain_configurations

Creates, updates, deletes or gets a domain_configuration resource or lists domain_configurations in a region

Overview​

Namedomain_configurations
TypeResource
DescriptionCreate and manage a Domain Configuration
Idawscc.iot.domain_configurations

Fields​

NameDatatypeDescription
domain_configuration_namestring
â–¶authorizer_configobject
domain_namestring
server_certificate_arnsarray
service_typestring
validation_certificate_arnstring
arnstring
domain_configuration_statusstring
domain_typestring
â–¶server_certificate_configobject
â–¶server_certificatesarray
â–¶tls_configobject
authentication_typestring
application_protocolstring
â–¶client_certificate_configobject
â–¶tagsarray
regionstringAWS region.

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

Methods​

NameResourceAccessible byRequired Params
create_resourcedomain_configurationsINSERT, region
delete_resourcedomain_configurationsDELETEIdentifier, region
update_resourcedomain_configurationsUPDATEIdentifier, PatchDocument, region
list_resourcesdomain_configurations_list_onlySELECTregion
get_resourcedomain_configurationsSELECTIdentifier, region

SELECT examples​

Gets all properties from an individual domain_configuration.

SELECT
region,
domain_configuration_name,
authorizer_config,
domain_name,
server_certificate_arns,
service_type,
validation_certificate_arn,
arn,
domain_configuration_status,
domain_type,
server_certificate_config,
server_certificates,
tls_config,
authentication_type,
application_protocol,
client_certificate_config,
tags
FROM awscc.iot.domain_configurations
WHERE
region = '{{ region }}' AND
Identifier = '{{ domain_configuration_name }}';

INSERT example​

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

/*+ create */
INSERT INTO awscc.iot.domain_configurations (
,
region
)
SELECT
'{{ }}',
'{{ region }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;

UPDATE example​

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

/*+ update */
UPDATE awscc.iot.domain_configurations
SET PatchDocument = string('{{ {
"AuthorizerConfig": authorizer_config,
"DomainConfigurationStatus": domain_configuration_status,
"ServerCertificateConfig": server_certificate_config,
"TlsConfig": tls_config,
"AuthenticationType": authentication_type,
"ApplicationProtocol": application_protocol,
"ClientCertificateConfig": client_certificate_config,
"Tags": tags
} | generate_patch_document }}')
WHERE
region = '{{ region }}' AND
Identifier = '{{ domain_configuration_name }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;

DELETE example​

/*+ delete */
DELETE FROM awscc.iot.domain_configurations
WHERE
Identifier = '{{ domain_configuration_name }}' AND
region = '{{ region }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;

Additional Parameters​

Mutable resources in the Cloud Control provider support additional optional parameters which can be supplied with INSERT, UPDATE, or DELETE operations. These include:

ParameterDescription
ClientToken
A unique identifier to ensure the idempotency of the resource request.This allows the provider to accurately distinguish between retries and new requests.
A client token is valid for 36 hours once used.
After that, a resource request with the same client token is treated as a new request.
If you do not specify a client token, one is generated for inclusion in the request.
RoleArn
The ARN of the IAM role used to perform this resource operation.The role specified must have the permissions required for this operation.
If you do not specify a role, a temporary session is created using your AWS user credentials.
TypeVersionId
For private resource types, the type version to use in this resource operation.If you do not specify a resource version, the default version is used.

Permissions​

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

iot:CreateDomainConfiguration,
iot:UpdateDomainConfiguration,
iot:DescribeDomainConfiguration,
iot:TagResource,
iot:ListTagsForResource,
acm:GetCertificate,
kms:Decrypt