Skip to main content

domain_configurations

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

Overview

Namedomain_configurations
TypeResource
Idaws.iot.domain_configurations

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
application_protocolstringAn enumerated string that specifies the application-layer protocol. SECURE_MQTT - MQTT over TLS. MQTT_WSS - MQTT over WebSocket. HTTPS - HTTP over TLS. DEFAULT - Use a combination of port and Application Layer Protocol Negotiation (ALPN) to specify application_layer protocol. For more information, see Device communication protocols. (SECURE_MQTT, MQTT_WSS, HTTPS, DEFAULT)
authentication_typestringAn enumerated string that specifies the authentication type. CUSTOM_AUTH_X509 - Use custom authentication and authorization with additional details from the X.509 client certificate. CUSTOM_AUTH - Use custom authentication and authorization. For more information, see Custom authentication and authorization. AWS_X509 - Use X.509 client certificates without custom authentication and authorization. For more information, see X.509 client certificates. AWS_SIGV4 - Use Amazon Web Services Signature Version 4. For more information, see IAM users, groups, and roles. DEFAULT - Use a combination of port and Application Layer Protocol Negotiation (ALPN) to specify authentication type. For more information, see Device communication protocols. (CUSTOM_AUTH_X509, CUSTOM_AUTH, AWS_X509, AWS_SIGV4, DEFAULT)
authorizer_configobjectAn object that specifies the authorization service for a domain.
client_certificate_configobjectAn object that specifies the client certificate configuration for a domain.
domain_configuration_arnstringThe ARN of the domain configuration.
domain_configuration_namestringThe name of the domain configuration. (pattern: <code>[\w.:-]+</code>)
domain_configuration_statusstringA Boolean value that specifies the current state of the domain configuration. (ENABLED, DISABLED)
domain_namestringThe name of the domain. (pattern: <code>[\s\S]*</code>)
domain_typestringThe type of the domain. (ENDPOINT, AWS_MANAGED, CUSTOMER_MANAGED)
last_status_change_datestring (date-time)The date and time the domain configuration's status was last changed.
server_certificate_configobjectThe server certificate configuration.
server_certificatesarrayA list containing summary information about the server certificate included in the domain configuration.
service_typestringThe type of service delivered by the endpoint. (DATA, CREDENTIAL_PROVIDER, JOBS)
tls_configobjectAn object that specifies the TLS configuration for a domain.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
describe_domain_configurationselectdomain_configuration_name, regionGets summary information about a domain configuration. Requires permission to access the DescribeDomainConfiguration action.
list_domain_configurationsselectregionmarker, pageSize, serviceTypeGets a list of domain configurations for the user. This list is sorted alphabetically by domain configuration name. Requires permission to access the ListDomainConfigurations action.
create_domain_configurationinsertdomain_configuration_name, regionCreates a domain configuration. Requires permission to access the CreateDomainConfiguration action.
update_domain_configurationupdatedomain_configuration_name, regionUpdates values stored in the domain configuration. Domain configurations for default endpoints can't be updated. Requires permission to access the UpdateDomainConfiguration action.
delete_domain_configurationdeletedomain_configuration_name, regionDeletes the specified domain configuration. Requires permission to access the DeleteDomainConfiguration action.

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
domain_configuration_namestringThe name of the domain configuration to be deleted.
regionstringAWS region (default: us-east-1)
markerstringThe marker for the next set of results.
pageSizeintegerThe result page size.
serviceTypestringThe type of service delivered by the endpoint.

SELECT examples

Gets summary information about a domain configuration. Requires permission to access the DescribeDomainConfiguration action.

SELECT
application_protocol,
authentication_type,
authorizer_config,
client_certificate_config,
domain_configuration_arn,
domain_configuration_name,
domain_configuration_status,
domain_name,
domain_type,
last_status_change_date,
server_certificate_config,
server_certificates,
service_type,
tls_config
FROM aws.iot.domain_configurations
WHERE domain_configuration_name = '{{ domain_configuration_name }}' -- required
AND region = '{{ region }}' -- required
;

INSERT examples

Creates a domain configuration. Requires permission to access the CreateDomainConfiguration action.

INSERT INTO aws.iot.domain_configurations (
domainName,
serverCertificateArns,
validationCertificateArn,
authorizerConfig,
serviceType,
tags,
tlsConfig,
serverCertificateConfig,
authenticationType,
applicationProtocol,
clientCertificateConfig,
domain_configuration_name,
region
)
SELECT
'{{ domainName }}',
'{{ serverCertificateArns }}',
'{{ validationCertificateArn }}',
'{{ authorizerConfig }}',
'{{ serviceType }}',
'{{ tags }}',
'{{ tlsConfig }}',
'{{ serverCertificateConfig }}',
'{{ authenticationType }}',
'{{ applicationProtocol }}',
'{{ clientCertificateConfig }}',
'{{ domain_configuration_name }}',
'{{ region }}'
RETURNING
domain_configuration_arn,
domain_configuration_name
;

UPDATE examples

Updates values stored in the domain configuration. Domain configurations for default endpoints can't be updated. Requires permission to access the UpdateDomainConfiguration action.

UPDATE aws.iot.domain_configurations
SET
authorizerConfig = '{{ authorizerConfig }}',
domainConfigurationStatus = '{{ domainConfigurationStatus }}',
removeAuthorizerConfig = {{ removeAuthorizerConfig }},
tlsConfig = '{{ tlsConfig }}',
serverCertificateConfig = '{{ serverCertificateConfig }}',
authenticationType = '{{ authenticationType }}',
applicationProtocol = '{{ applicationProtocol }}',
clientCertificateConfig = '{{ clientCertificateConfig }}'
WHERE
domain_configuration_name = '{{ domain_configuration_name }}' --required
AND region = '{{ region }}' --required
RETURNING
domain_configuration_arn,
domain_configuration_name;

DELETE examples

Deletes the specified domain configuration. Requires permission to access the DeleteDomainConfiguration action.

DELETE FROM aws.iot.domain_configurations
WHERE domain_configuration_name = '{{ domain_configuration_name }}' --required
AND region = '{{ region }}' --required
;