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.

AccessLogSettings

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

type AccessLogSettings struct { DestinationArn *string `locationName:"destinationArn" type:"string"` Format *string `locationName:"format" type:"string"` }

Access log settings, including the access log format and access log destination ARN.

DestinationArn

Type: *string

The ARN of the CloudWatch Logs log group to receive access logs.

Format

Type: *string

A single line format of the access logs of data, as specified by selected $context variables (https://docs.aws.amazon.com/apigateway/latest/developerguide/api-gateway-mapping-template-reference.html#context-variable-reference). The format must include at least $context.requestId.

Method

GoString

func (s AccessLogSettings) GoString() string

GoString returns the string representation

SetDestinationArn

func (s *AccessLogSettings) SetDestinationArn(v string) *AccessLogSettings

SetDestinationArn sets the DestinationArn field's value.

SetFormat

func (s *AccessLogSettings) SetFormat(v string) *AccessLogSettings

SetFormat sets the Format field's value.

String

func (s AccessLogSettings) String() string

String returns the string representation

On this page: