AWS::Route53Resolver::ResolverQueryLoggingConfigAssociation
The AWS::Route53Resolver::ResolverQueryLoggingConfigAssociation resource is a configuration for DNS query logging. After you create a query logging configuration, Amazon Route 53 begins to publish log data to an Amazon CloudWatch Logs log group.
Syntax
To declare this entity in your AWS CloudFormation template, use the following syntax:
JSON
{ "Type" : "AWS::Route53Resolver::ResolverQueryLoggingConfigAssociation", "Properties" : { "ResolverQueryLogConfigId" :
String
, "ResourceId" :String
} }
YAML
Type: AWS::Route53Resolver::ResolverQueryLoggingConfigAssociation Properties: ResolverQueryLogConfigId:
String
ResourceId:String
Properties
ResolverQueryLogConfigId
-
The ID of the query logging configuration that a VPC is associated with.
Required: No
Type: String
Minimum:
1
Maximum:
64
Update requires: Replacement
ResourceId
-
The ID of the Amazon VPC that is associated with the query logging configuration.
Required: No
Type: String
Minimum:
1
Maximum:
64
Update requires: Replacement
Return values
Ref
When you pass the logical ID of this resource to the intrinsic Ref
function, Ref
returns the ID of the configuration for DNS query logging.
For example: { "Ref": "rqlca-1111222233334444" }
For more information about using the Ref
function, see Ref
.
Fn::GetAtt
The Fn::GetAtt
intrinsic function returns a value for a specified attribute of this type. The following are the available attributes and sample return values.
For more information about using the Fn::GetAtt
intrinsic function, see Fn::GetAtt
.
CreationTime
-
The date and time that the VPC was associated with the query logging configuration, in Unix time format and Coordinated Universal Time (UTC).
Error
-
If the value of
Status
isFAILED
, the value ofError
indicates the cause:-
DESTINATION_NOT_FOUND
: The specified destination (for example, an Amazon S3 bucket) was deleted. -
ACCESS_DENIED
: Permissions don't allow sending logs to the destination.
If the value of
Status
is a value other thanFAILED
,Error
is null. -
ErrorMessage
-
Contains additional information about the error. If the value or
Error
is null, the value ofErrorMessage
is also null. Id
-
The ID of the query logging association.
Status
-
The status of the specified query logging association. Valid values include the following:
-
CREATING
: Resolver is creating an association between an Amazon Virtual Private Cloud (Amazon VPC) and a query logging configuration. -
CREATED
: The association between an Amazon VPC and a query logging configuration was successfully created. Resolver is logging queries that originate in the specified VPC. -
DELETING
: Resolver is deleting this query logging association. -
FAILED
: Resolver either couldn't create or couldn't delete the query logging association.
-