@Stability(value=Experimental) public static final class BehaviorOptions.Builder extends Object implements software.amazon.jsii.Builder<BehaviorOptions>
BehaviorOptions| Constructor and Description |
|---|
Builder() |
@Stability(value=Experimental) public BehaviorOptions.Builder origin(IOrigin origin)
BehaviorOptions.getOrigin()origin - The origin that you want CloudFront to route requests to when they match this behavior. This parameter is required.this@Stability(value=Experimental) public BehaviorOptions.Builder allowedMethods(AllowedMethods allowedMethods)
AddBehaviorOptions.getAllowedMethods()allowedMethods - HTTP methods to allow for this behavior.this@Stability(value=Experimental) public BehaviorOptions.Builder cachedMethods(CachedMethods cachedMethods)
AddBehaviorOptions.getCachedMethods()cachedMethods - HTTP methods to cache for this behavior.this@Stability(value=Experimental) public BehaviorOptions.Builder cachePolicy(ICachePolicy cachePolicy)
AddBehaviorOptions.getCachePolicy()cachePolicy - The cache policy for this behavior.
The cache policy determines what values are included in the cache key,
and the time-to-live (TTL) values for the cache.this@Stability(value=Experimental) public BehaviorOptions.Builder compress(Boolean compress)
AddBehaviorOptions.getCompress()compress - Whether you want CloudFront to automatically compress certain files for this cache behavior.
See https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/ServingCompressedFiles.html#compressed-content-cloudfront-file-types
for file types CloudFront will compress.this@Stability(value=Experimental) public BehaviorOptions.Builder edgeLambdas(List<? extends EdgeLambda> edgeLambdas)
AddBehaviorOptions.getEdgeLambdas()edgeLambdas - The Lambda@Edge functions to invoke before serving the contents.this@Stability(value=Experimental) public BehaviorOptions.Builder functionAssociations(List<? extends FunctionAssociation> functionAssociations)
AddBehaviorOptions.getFunctionAssociations()functionAssociations - The CloudFront functions to invoke before serving the contents.this@Stability(value=Experimental) public BehaviorOptions.Builder originRequestPolicy(IOriginRequestPolicy originRequestPolicy)
AddBehaviorOptions.getOriginRequestPolicy()originRequestPolicy - The origin request policy for this behavior.
The origin request policy determines which values (e.g., headers, cookies)
are included in requests that CloudFront sends to the origin.this@Stability(value=Experimental) public BehaviorOptions.Builder smoothStreaming(Boolean smoothStreaming)
AddBehaviorOptions.getSmoothStreaming()smoothStreaming - Set this to true to indicate you want to distribute media files in the Microsoft Smooth Streaming format using this behavior.this@Stability(value=Experimental) public BehaviorOptions.Builder trustedKeyGroups(List<? extends IKeyGroup> trustedKeyGroups)
AddBehaviorOptions.getTrustedKeyGroups()trustedKeyGroups - A list of Key Groups that CloudFront can use to validate signed URLs or signed cookies.this@Stability(value=Experimental) public BehaviorOptions.Builder viewerProtocolPolicy(ViewerProtocolPolicy viewerProtocolPolicy)
AddBehaviorOptions.getViewerProtocolPolicy()viewerProtocolPolicy - The protocol that viewers can use to access the files controlled by this behavior.this@Stability(value=Experimental) public BehaviorOptions build()
build in interface software.amazon.jsii.Builder<BehaviorOptions>BehaviorOptionsNullPointerException - if any required attribute was not providedCopyright © 2021. All rights reserved.