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.

TrustedSigners

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

type TrustedSigners struct { Enabled *bool `type:"boolean" required:"true"` Items []*string `locationNameList:"AwsAccountNumber" type:"list"` Quantity *int64 `type:"integer" required:"true"` }

A complex type that specifies the AWS accounts, if any, that you want to allow to create signed URLs for private content.

If you want to require signed URLs in requests for objects in the target origin that match the PathPattern for this cache behavior, specify true for Enabled, and specify the applicable values for Quantity and Items. For more information, see Serving Private Content through CloudFront (https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/PrivateContent.html) in the Amazon Amazon CloudFront Developer Guide.

If you don't want to require signed URLs in requests for objects that match PathPattern, specify false for Enabled and 0 for Quantity. Omit Items.

To add, change, or remove one or more trusted signers, change Enabled to true (if it's currently false), change Quantity as applicable, and specify all of the trusted signers that you want to include in the updated distribution.

For more information about updating the distribution configuration, see DistributionConfig .

Enabled

Type: *bool

Specifies whether you want to require viewers to use signed URLs to access the files specified by PathPattern and TargetOriginId.

Enabled is a required field

Items

Type: []*string

Optional: A complex type that contains trusted signers for this cache behavior. If Quantity is 0, you can omit Items.

Quantity

Type: *int64

The number of trusted signers for this cache behavior.

Quantity is a required field

Method

GoString

func (s TrustedSigners) GoString() string

GoString returns the string representation

SetEnabled

func (s *TrustedSigners) SetEnabled(v bool) *TrustedSigners

SetEnabled sets the Enabled field's value.

SetItems

func (s *TrustedSigners) SetItems(v []*string) *TrustedSigners

SetItems sets the Items field's value.

SetQuantity

func (s *TrustedSigners) SetQuantity(v int64) *TrustedSigners

SetQuantity sets the Quantity field's value.

String

func (s TrustedSigners) String() string

String returns the string representation

Validate

func (s *TrustedSigners) Validate() error

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

On this page: