Class CfnResolverQueryLoggingConfigAssociation

java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
All Implemented Interfaces:
IConstruct, IDependable, IInspectable, software.amazon.jsii.JsiiSerializable, software.constructs.IConstruct

@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)", date="2023-06-19T16:30:40.393Z") @Stability(Stable) public class CfnResolverQueryLoggingConfigAssociation extends CfnResource implements IInspectable
A CloudFormation 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.

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();
 
  • 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 Construct scope, @NotNull String id, @Nullable CfnResolverQueryLoggingConfigAssociationProps props)
      Create a new AWS::Route53Resolver::ResolverQueryLoggingConfigAssociation.

      Parameters:
      scope -
      • scope in which this resource is defined.
      This parameter is required.
      id -
      • scoped id of the resource.
      This parameter is required.
      props -
      • resource properties.
    • CfnResolverQueryLoggingConfigAssociation

      @Stability(Stable) public CfnResolverQueryLoggingConfigAssociation(@NotNull Construct scope, @NotNull String id)
      Create a new AWS::Route53Resolver::ResolverQueryLoggingConfigAssociation.

      Parameters:
      scope -
      • scope in which this resource is defined.
      This parameter is required.
      id -
      • scoped id of the resource.
      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.