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.

CustomOriginConfig

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

type CustomOriginConfig struct { HTTPPort *int64 `type:"integer" required:"true"` HTTPSPort *int64 `type:"integer" required:"true"` OriginKeepaliveTimeout *int64 `type:"integer"` OriginProtocolPolicy *string `type:"string" required:"true" enum:"OriginProtocolPolicy"` OriginReadTimeout *int64 `type:"integer"` OriginSslProtocols *OriginSslProtocols `type:"structure"` }

A customer origin or an Amazon S3 bucket configured as a website endpoint.

HTTPPort

Type: *int64

The HTTP port the custom origin listens on.

HTTPPort is a required field

HTTPSPort

Type: *int64

The HTTPS port the custom origin listens on.

HTTPSPort is a required field

OriginKeepaliveTimeout

Type: *int64

You can create a custom keep-alive timeout. All timeout units are in seconds. The default keep-alive timeout is 5 seconds, but you can configure custom timeout lengths using the CloudFront API. The minimum timeout length is 1 second; the maximum is 60 seconds.

If you need to increase the maximum time limit, contact the AWS Support Center (https://console.aws.amazon.com/support/home#/).

OriginProtocolPolicy

Type: *string

The origin protocol policy to apply to your origin.

OriginProtocolPolicy is a required field

OriginReadTimeout

Type: *int64

You can create a custom origin read timeout. All timeout units are in seconds. The default origin read timeout is 30 seconds, but you can configure custom timeout lengths using the CloudFront API. The minimum timeout length is 4 seconds; the maximum is 60 seconds.

If you need to increase the maximum time limit, contact the AWS Support Center (https://console.aws.amazon.com/support/home#/).

OriginSslProtocols

A complex type that contains information about the SSL/TLS protocols that CloudFront can use when establishing an HTTPS connection with your origin.

Method

GoString

func (s CustomOriginConfig) GoString() string

GoString returns the string representation

SetHTTPPort

func (s *CustomOriginConfig) SetHTTPPort(v int64) *CustomOriginConfig

SetHTTPPort sets the HTTPPort field's value.

SetHTTPSPort

func (s *CustomOriginConfig) SetHTTPSPort(v int64) *CustomOriginConfig

SetHTTPSPort sets the HTTPSPort field's value.

SetOriginKeepaliveTimeout

func (s *CustomOriginConfig) SetOriginKeepaliveTimeout(v int64) *CustomOriginConfig

SetOriginKeepaliveTimeout sets the OriginKeepaliveTimeout field's value.

SetOriginProtocolPolicy

func (s *CustomOriginConfig) SetOriginProtocolPolicy(v string) *CustomOriginConfig

SetOriginProtocolPolicy sets the OriginProtocolPolicy field's value.

SetOriginReadTimeout

func (s *CustomOriginConfig) SetOriginReadTimeout(v int64) *CustomOriginConfig

SetOriginReadTimeout sets the OriginReadTimeout field's value.

SetOriginSslProtocols

func (s *CustomOriginConfig) SetOriginSslProtocols(v *OriginSslProtocols) *CustomOriginConfig

SetOriginSslProtocols sets the OriginSslProtocols field's value.

String

func (s CustomOriginConfig) String() string

String returns the string representation

Validate

func (s *CustomOriginConfig) Validate() error

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

On this page: