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.

Distribution

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

type Distribution struct { ARN *string `type:"string" required:"true"` ActiveTrustedSigners *ActiveTrustedSigners `type:"structure" required:"true"` DistributionConfig *DistributionConfig `type:"structure" required:"true"` DomainName *string `type:"string" required:"true"` Id *string `type:"string" required:"true"` InProgressInvalidationBatches *int64 `type:"integer" required:"true"` LastModifiedTime *time.Time `type:"timestamp" required:"true"` Status *string `type:"string" required:"true"` }

The distribution's information.

ARN

Type: *string

The ARN (Amazon Resource Name) for the distribution. For example: arn:aws:cloudfront::123456789012:distribution/EDFDVBD632BHDS5, where 123456789012 is your AWS account ID.

ARN is a required field

ActiveTrustedSigners

A complex type that lists the AWS accounts, if any, that you included in the TrustedSigners complex type for this distribution. These are the accounts that you want to allow to create signed URLs for private content.

The Signer complex type lists the AWS account number of the trusted signer or self if the signer is the AWS account that created the distribution. The Signer element also includes the IDs of any active CloudFront key pairs that are associated with the trusted signer's AWS account. If no KeyPairId element appears for a Signer, that signer can't create signed URLs.

For more information, see Serving Private Content through CloudFront (https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/PrivateContent.html) in the Amazon CloudFront Developer Guide.

DistributionConfig

A distribution configuration.

DomainName

Type: *string

The domain name corresponding to the distribution, for example, d111111abcdef8.cloudfront.net.

DomainName is a required field

Id

Type: *string

The identifier for the distribution. For example: EDFDVBD632BHDS5.

Id is a required field

InProgressInvalidationBatches

Type: *int64

The number of invalidation batches currently in progress.

InProgressInvalidationBatches is a required field

LastModifiedTime

Type: *time.Time

The date and time the distribution was last modified.

LastModifiedTime is a required field

Status

Type: *string

This response element indicates the current status of the distribution. When the status is Deployed, the distribution's information is fully propagated to all CloudFront edge locations.

Status is a required field

Method

GoString

func (s Distribution) GoString() string

GoString returns the string representation

SetARN

func (s *Distribution) SetARN(v string) *Distribution

SetARN sets the ARN field's value.

SetActiveTrustedSigners

func (s *Distribution) SetActiveTrustedSigners(v *ActiveTrustedSigners) *Distribution

SetActiveTrustedSigners sets the ActiveTrustedSigners field's value.

SetDistributionConfig

func (s *Distribution) SetDistributionConfig(v *DistributionConfig) *Distribution

SetDistributionConfig sets the DistributionConfig field's value.

SetDomainName

func (s *Distribution) SetDomainName(v string) *Distribution

SetDomainName sets the DomainName field's value.

SetId

func (s *Distribution) SetId(v string) *Distribution

SetId sets the Id field's value.

SetInProgressInvalidationBatches

func (s *Distribution) SetInProgressInvalidationBatches(v int64) *Distribution

SetInProgressInvalidationBatches sets the InProgressInvalidationBatches field's value.

SetLastModifiedTime

func (s *Distribution) SetLastModifiedTime(v time.Time) *Distribution

SetLastModifiedTime sets the LastModifiedTime field's value.

SetStatus

func (s *Distribution) SetStatus(v string) *Distribution

SetStatus sets the Status field's value.

String

func (s Distribution) String() string

String returns the string representation

On this page: