Skip to main content

resolver_configs

Creates, updates, deletes or gets a resolver_config resource or lists resolver_configs in a region

Overview

Nameresolver_configs
TypeResource
DescriptionResource schema for AWS::Route53Resolver::ResolverConfig.
Idaws.route53resolver.resolver_configs

Fields

NameDatatypeDescription
idstringId
owner_idstringAccountId
resource_idstringResourceId
autodefined_reversestringResolverAutodefinedReverseStatus, possible values are ENABLING, ENABLED, DISABLING AND DISABLED.
autodefined_reverse_flagstringRepresents the desired status of AutodefinedReverse. The only supported value on creation is DISABLE. Deletion of this resource will return AutodefinedReverse to its default value (ENABLED).
regionstringAWS region.

Methods

NameAccessible byRequired Params
create_resourceINSERTResourceId, AutodefinedReverseFlag, region
delete_resourceDELETEdata__Identifier, region
list_resourcesSELECTregion
get_resourceSELECTdata__Identifier, region

SELECT examples

Gets all resolver_configs in a region.

SELECT
region,
id,
owner_id,
resource_id,
autodefined_reverse,
autodefined_reverse_flag
FROM aws.route53resolver.resolver_configs
WHERE region = 'us-east-1';

Gets all properties from an individual resolver_config.

SELECT
region,
id,
owner_id,
resource_id,
autodefined_reverse,
autodefined_reverse_flag
FROM aws.route53resolver.resolver_configs
WHERE region = 'us-east-1' AND data__Identifier = '<ResourceId>';

INSERT example

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

/*+ create */
INSERT INTO aws.route53resolver.resolver_configs (
ResourceId,
AutodefinedReverseFlag,
region
)
SELECT
'{{ ResourceId }}',
'{{ AutodefinedReverseFlag }}',
'{{ region }}';

DELETE example

/*+ delete */
DELETE FROM aws.route53resolver.resolver_configs
WHERE data__Identifier = '<ResourceId>'
AND region = 'us-east-1';

Permissions

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

Create

route53resolver:UpdateResolverConfig,
route53resolver:GetResolverConfig,
ec2:DescribeVpcs

Read

route53resolver:GetResolverConfig,
ec2:DescribeVpcs

Delete

route53resolver:UpdateResolverConfig,
route53resolver:ListResolverConfigs,
ec2:DescribeVpcs

List

route53resolver:ListResolverConfigs,
ec2:DescribeVpcs