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 | awscc.route53resolver.resolver_query_logging_configs |
Fields
- get (all properties)
- list (identifiers only)
| 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 |
tags | array | An array of key-value pairs to apply to this resource. |
region | string | AWS region. |
| Name | Datatype | Description |
|---|---|---|
id | string | ResourceId |
region | string | AWS region. |
For more information, see AWS::Route53Resolver::ResolverQueryLoggingConfig.
Methods
| Name | Resource | Accessible by | Required Params |
|---|---|---|---|
create_resource | resolver_query_logging_configs | INSERT | region |
delete_resource | resolver_query_logging_configs | DELETE | Identifier, region |
list_resources | resolver_query_logging_configs_list_only | SELECT | region |
get_resource | resolver_query_logging_configs | SELECT | Identifier, region |
SELECT examples
- get (all properties)
- list (identifiers only)
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,
tags
FROM awscc.route53resolver.resolver_query_logging_configs
WHERE
region = '{{ region }}' AND
Identifier = '{{ id }}';
Lists all resolver_query_logging_configs in a region.
SELECT
region,
id
FROM awscc.route53resolver.resolver_query_logging_configs_list_only
WHERE
region = '{{ region }}';
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 awscc.route53resolver.resolver_query_logging_configs (
Name,
DestinationArn,
Tags,
region
)
SELECT
'{{ name }}',
'{{ destination_arn }}',
'{{ tags }}',
'{{ region }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;
/*+ create */
INSERT INTO awscc.route53resolver.resolver_query_logging_configs (
Name,
DestinationArn,
Tags,
region
)
SELECT
'{{ name }}',
'{{ destination_arn }}',
'{{ tags }}',
'{{ region }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;
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: destination_arn
value: '{{ destination_arn }}'
- name: tags
value:
- key: '{{ key }}'
value: '{{ value }}'
DELETE example
/*+ delete */
DELETE FROM awscc.route53resolver.resolver_query_logging_configs
WHERE
Identifier = '{{ id }}' 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:
| Parameter | Description |
|---|---|
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 resolver_query_logging_configs resource, the following permissions are required:
- Create
- Read
- Delete
- List
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,
route53resolver:ListTagsForResource,
route53resolver:TagResource,
route53resolver:ListResolverQueryLogConfigs
resolverquerylogging:GetConfig,
route53resolver:GetResolverQueryLogConfig,
route53resolver:ListTagsForResource,
route53resolver:ListResolverQueryLogConfigs
resolverquerylogging:DeleteConfig,
resolverquerylogging:ListConfig,
route53resolver:DeleteResolverQueryLogConfig,
route53resolver:ListResolverQueryLogConfigs,
route53resolver:UntagResource,
route53resolver:ListTagsForResource
resolverquerylogging:ListConfig,
route53resolver:ListResolverQueryLogConfigs,
route53resolver:ListTagsForResource