resolver_configs
Creates, updates, deletes or gets a resolver_config
resource or lists resolver_configs
in a region
Overview
Name | resolver_configs |
Type | Resource |
Description | Resource schema for AWS::Route53Resolver::ResolverConfig. |
Id | aws.route53resolver.resolver_configs |
Fields
Name | Datatype | Description |
---|---|---|
id | string | Id |
owner_id | string | AccountId |
resource_id | string | ResourceId |
autodefined_reverse | string | ResolverAutodefinedReverseStatus, possible values are ENABLING, ENABLED, DISABLING AND DISABLED. |
autodefined_reverse_flag | string | Represents 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). |
region | string | AWS region. |
Methods
Name | Accessible by | Required Params |
---|---|---|
create_resource | INSERT | ResourceId, AutodefinedReverseFlag, region |
delete_resource | DELETE | data__Identifier, region |
list_resources | SELECT | region |
get_resource | SELECT | data__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
.
- Required Properties
- All Properties
- Manifest
/*+ create */
INSERT INTO aws.route53resolver.resolver_configs (
ResourceId,
AutodefinedReverseFlag,
region
)
SELECT
'{{ ResourceId }}',
'{{ AutodefinedReverseFlag }}',
'{{ region }}';
/*+ create */
INSERT INTO aws.route53resolver.resolver_configs (
ResourceId,
AutodefinedReverseFlag,
region
)
SELECT
'{{ ResourceId }}',
'{{ AutodefinedReverseFlag }}',
'{{ region }}';
version: 1
name: stack name
description: stack description
providers:
- aws
globals:
- name: region
value: '{{ vars.AWS_REGION }}'
resources:
- name: resolver_config
props:
- name: ResourceId
value: '{{ ResourceId }}'
- name: AutodefinedReverseFlag
value: '{{ AutodefinedReverseFlag }}'
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