Amazon CloudFront
Developer Guide (API Version 2016-09-29)

Required Fields for Create Distribution and Update Distribution

When you update a distribution by using the UpdateDistribution CloudFront API action, there are more required fields than when you create a distribution by using CreateDistribution. Review the following tables for a summary of the fields that are required for creating and for updating a distribution.

DistributionConfig

Members Required in Create API Call Required in Update API Call

CallerReference

Y

Y

Aliases

-

Y

DefaultRootObject

-

Y

Origins

Y

Y

DefaultCacheBehavior

Y

Y

CacheBehaviors

-

Y

CustomErrorResponses

-

Y

Comment

Y

Y

Logging

-

Y

PriceClass

-

Y

Enabled

Y

Y

ViewerCertificate

-

Y

Restrictions

-

Y

WebACLId

-

Y

HttpVersion

-

Y

IsIPV6Enabled

-

-

CacheBehavior

Members Required in Create API Call Required in Update API Call

PathPattern

Y

Y

TargetOriginId

Y

Y

ForwardedValues

Y

Y

TrustedSigners

Y

Y

ViewerProtocolPolicy

Y

Y

MinTTL

Y

Y

AllowedMethods

-

Y

SmoothStreaming

-

Y

DefaultTTL

-

Y

MaxTTL

Y

Y

Compress

-

Y

LambdaFunctionAssociations

-

Y

FieldLevelEncryptionId

-

Y