AWS SDK for Go (PILOT)
API Reference

PREVIEW DOCUMENTATION - This is a preview of a new format for the AWS SDK for Go API Reference documentation. For the current AWS SDK for Go API Reference, see https://docs.aws.amazon.com/sdk-for-go/api/.

We welcome your feedback on this new version of the documentation. Send your comments to aws-sdkdocs-feedback@amazon.com.

CreateQueryLoggingConfigInput

import "github.com/aws/aws-sdk-go/service/route53"

type CreateQueryLoggingConfigInput struct { CloudWatchLogsLogGroupArn *string `type:"string" required:"true"` HostedZoneId *string `type:"string" required:"true"` }

CloudWatchLogsLogGroupArn

Type: *string

The Amazon Resource Name (ARN) for the log group that you want to Amazon Route 53 to send query logs to. This is the format of the ARN:

arn:aws:logs:region:account-id:log-group:log_group_name

To get the ARN for a log group, you can use the CloudWatch console, the DescribeLogGroups (https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_DescribeLogGroups.html) API action, the describe-log-groups (https://docs.aws.amazon.com/cli/latest/reference/logs/describe-log-groups.html) command, or the applicable command in one of the AWS SDKs.

CloudWatchLogsLogGroupArn is a required field

HostedZoneId

Type: *string

The ID of the hosted zone that you want to log queries for. You can log queries only for public hosted zones.

HostedZoneId is a required field

Method

GoString

func (s CreateQueryLoggingConfigInput) GoString() string

GoString returns the string representation

SetCloudWatchLogsLogGroupArn

func (s *CreateQueryLoggingConfigInput) SetCloudWatchLogsLogGroupArn(v string) *CreateQueryLoggingConfigInput

SetCloudWatchLogsLogGroupArn sets the CloudWatchLogsLogGroupArn field's value.

SetHostedZoneId

func (s *CreateQueryLoggingConfigInput) SetHostedZoneId(v string) *CreateQueryLoggingConfigInput

SetHostedZoneId sets the HostedZoneId field's value.

String

func (s CreateQueryLoggingConfigInput) String() string

String returns the string representation

Validate

func (s *CreateQueryLoggingConfigInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

On this page: