resolver_query_logging_configs
Creates, updates, deletes or gets a resolver_query_logging_config
resource or lists resolver_query_logging_configs
in a region
Overview
Name | resolver_query_logging_configs |
Type | Resource |
Description | Resource schema for AWS::Route53Resolver::ResolverQueryLoggingConfig. |
Id | aws.route53resolver.resolver_query_logging_configs |
Fields
Name | Datatype | Description |
---|---|---|
id | string | ResourceId |
owner_id | string | AccountId |
status | string | ResolverQueryLogConfigStatus, possible values are CREATING, CREATED, DELETED AND FAILED. |
share_status | string | ShareStatus, possible values are NOT_SHARED, SHARED_WITH_ME, SHARED_BY_ME. |
association_count | integer | Count |
arn | string | Arn |
name | string | ResolverQueryLogConfigName |
creator_request_id | string | The id of the creator request. |
destination_arn | string | destination arn |
creation_time | string | Rfc3339TimeString |
region | string | AWS region. |
Methods
Name | Accessible by | Required Params |
---|---|---|
create_resource | INSERT | region |
delete_resource | DELETE | data__Identifier, region |
list_resources | SELECT | region |
get_resource | SELECT | data__Identifier, region |
SELECT
examples
Gets all resolver_query_logging_configs
in a region.
SELECT
region,
id,
owner_id,
status,
share_status,
association_count,
arn,
name,
creator_request_id,
destination_arn,
creation_time
FROM aws.route53resolver.resolver_query_logging_configs
WHERE region = 'us-east-1';
Gets all properties from an individual resolver_query_logging_config
.
SELECT
region,
id,
owner_id,
status,
share_status,
association_count,
arn,
name,
creator_request_id,
destination_arn,
creation_time
FROM aws.route53resolver.resolver_query_logging_configs
WHERE region = 'us-east-1' AND data__Identifier = '<Id>';
INSERT
example
Use the following StackQL query and manifest file to create a new resolver_query_logging_config
resource, using stack-deploy
.
- Required Properties
- All Properties
- Manifest
/*+ create */
INSERT INTO aws.route53resolver.resolver_query_logging_configs (
Name,
DestinationArn,
region
)
SELECT
'{{ Name }}',
'{{ DestinationArn }}',
'{{ region }}';
/*+ create */
INSERT INTO aws.route53resolver.resolver_query_logging_configs (
Name,
DestinationArn,
region
)
SELECT
'{{ Name }}',
'{{ DestinationArn }}',
'{{ region }}';
version: 1
name: stack name
description: stack description
providers:
- aws
globals:
- name: region
value: '{{ vars.AWS_REGION }}'
resources:
- name: resolver_query_logging_config
props:
- name: Name
value: '{{ Name }}'
- name: DestinationArn
value: '{{ DestinationArn }}'
DELETE
example
/*+ delete */
DELETE FROM aws.route53resolver.resolver_query_logging_configs
WHERE data__Identifier = '<Id>'
AND region = 'us-east-1';
Permissions
To operate on the resolver_query_logging_configs
resource, the following permissions are required:
Create
resolverquerylogging:CreateConfig,
resolverquerylogging:GetConfig,
route53resolver:CreateResolverQueryLogConfig,
route53resolver:GetResolverQueryLogConfig,
logs:CreateLogDelivery,
logs:GetLogDelivery,
logs:UpdateLogDelivery,
logs:DeleteLogDelivery,
logs:ListLogDeliveries,
logs:PutResourcePolicy,
logs:DescribeResourcePolicies,
logs:DescribeLogGroups,
iam:CreateServiceLinkedRole
Read
resolverquerylogging:GetConfig,
route53resolver:GetResolverQueryLogConfig
Delete
resolverquerylogging:DeleteConfig,
resolverquerylogging:ListConfig,
route53resolver:DeleteResolverQueryLogConfig,
route53resolver:ListResolverQueryLogConfigs
List
resolverquerylogging:ListConfig,
route53resolver:ListResolverQueryLogConfigs