Class CfnResolverQueryLoggingConfigAssociation

java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.CfnElement
software.amazon.awscdk.CfnRefElement
software.amazon.awscdk.CfnResource
software.amazon.awscdk.services.route53resolver.CfnResolverQueryLoggingConfigAssociation
All Implemented Interfaces:
IInspectable, software.amazon.jsii.JsiiSerializable, software.constructs.IConstruct, software.constructs.IDependable

@Generated(value="jsii-pacmak/1.104.0 (build e79254c)", date="2024-12-17T21:37:38.489Z") @Stability(Stable) public class CfnResolverQueryLoggingConfigAssociation extends CfnResource implements IInspectable
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.

Example:

 // The code below shows an example of how to instantiate this type.
 // The values are placeholders you should change.
 import software.amazon.awscdk.services.route53resolver.*;
 CfnResolverQueryLoggingConfigAssociation cfnResolverQueryLoggingConfigAssociation = CfnResolverQueryLoggingConfigAssociation.Builder.create(this, "MyCfnResolverQueryLoggingConfigAssociation")
         .resolverQueryLogConfigId("resolverQueryLogConfigId")
         .resourceId("resourceId")
         .build();
 

See Also:
  • Field Details

    • CFN_RESOURCE_TYPE_NAME

      @Stability(Stable) public static final String CFN_RESOURCE_TYPE_NAME
      The CloudFormation resource type name for this resource class.
  • Constructor Details

    • CfnResolverQueryLoggingConfigAssociation

      protected CfnResolverQueryLoggingConfigAssociation(software.amazon.jsii.JsiiObjectRef objRef)
    • CfnResolverQueryLoggingConfigAssociation

      protected CfnResolverQueryLoggingConfigAssociation(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
    • CfnResolverQueryLoggingConfigAssociation

      @Stability(Stable) public CfnResolverQueryLoggingConfigAssociation(@NotNull software.constructs.Construct scope, @NotNull String id, @Nullable CfnResolverQueryLoggingConfigAssociationProps props)
      Parameters:
      scope - Scope in which this resource is defined. This parameter is required.
      id - Construct identifier for this resource (unique in its scope). This parameter is required.
      props - Resource properties.
    • CfnResolverQueryLoggingConfigAssociation

      @Stability(Stable) public CfnResolverQueryLoggingConfigAssociation(@NotNull software.constructs.Construct scope, @NotNull String id)
      Parameters:
      scope - Scope in which this resource is defined. This parameter is required.
      id - Construct identifier for this resource (unique in its scope). This parameter is required.
  • Method Details

    • inspect

      @Stability(Stable) public void inspect(@NotNull TreeInspector inspector)
      Examines the CloudFormation resource and discloses attributes.

      Specified by:
      inspect in interface IInspectable
      Parameters:
      inspector - tree inspector to collect and process attributes. This parameter is required.
    • renderProperties

      @Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String,Object> props)
      Overrides:
      renderProperties in class CfnResource
      Parameters:
      props - This parameter is required.
    • getAttrCreationTime

      @Stability(Stable) @NotNull public String getAttrCreationTime()
      The date and time that the VPC was associated with the query logging configuration, in Unix time format and Coordinated Universal Time (UTC).
    • getAttrError

      @Stability(Stable) @NotNull public String getAttrError()
      If the value of Status is FAILED , the value of Error 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 than FAILED , Error is null.

    • getAttrErrorMessage

      @Stability(Stable) @NotNull public String getAttrErrorMessage()
      Contains additional information about the error.

      If the value or Error is null, the value of ErrorMessage is also null.

    • getAttrId

      @Stability(Stable) @NotNull public String getAttrId()
      The ID of the query logging association.
    • getAttrStatus

      @Stability(Stable) @NotNull public String getAttrStatus()
      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.
    • getCfnProperties

      @Stability(Stable) @NotNull protected Map<String,Object> getCfnProperties()
      Overrides:
      getCfnProperties in class CfnResource
    • getResolverQueryLogConfigId

      @Stability(Stable) @Nullable public String getResolverQueryLogConfigId()
      The ID of the query logging configuration that a VPC is associated with.
    • setResolverQueryLogConfigId

      @Stability(Stable) public void setResolverQueryLogConfigId(@Nullable String value)
      The ID of the query logging configuration that a VPC is associated with.
    • getResourceId

      @Stability(Stable) @Nullable public String getResourceId()
      The ID of the Amazon VPC that is associated with the query logging configuration.
    • setResourceId

      @Stability(Stable) public void setResourceId(@Nullable String value)
      The ID of the Amazon VPC that is associated with the query logging configuration.