software.amazon.jsii.JsiiObject.InitializationModeBehavior.Builder, Behavior.Jsii$Proxy| Modifier | Constructor and Description |
|---|---|
protected |
Jsii$Proxy(CloudFrontAllowedMethods allowedMethods,
CloudFrontAllowedCachedMethods cachedMethods,
Boolean compress,
Duration defaultTtl,
CfnDistribution.ForwardedValuesProperty forwardedValues,
List<? extends FunctionAssociation> functionAssociations,
Boolean isDefaultBehavior,
List<? extends LambdaFunctionAssociation> lambdaFunctionAssociations,
Duration maxTtl,
Duration minTtl,
String pathPattern,
List<? extends IKeyGroup> trustedKeyGroups)
Constructor that initializes the object based on literal property values passed by the
Behavior.Builder. |
protected |
Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)
Constructor that initializes the object based on values retrieved from the JsiiObject.
|
| Modifier and Type | Method and Description |
|---|---|
com.fasterxml.jackson.databind.JsonNode |
$jsii$toJson() |
boolean |
equals(Object o) |
CloudFrontAllowedMethods |
getAllowedMethods()
(experimental) The method this CloudFront distribution responds do.
|
CloudFrontAllowedCachedMethods |
getCachedMethods()
(experimental) Which methods are cached by CloudFront by default.
|
Boolean |
getCompress()
(experimental) If CloudFront should automatically compress some content types.
|
Duration |
getDefaultTtl()
(experimental) The default amount of time CloudFront will cache an object.
|
CfnDistribution.ForwardedValuesProperty |
getForwardedValues()
(experimental) The values CloudFront will forward to the origin when making a request.
|
List<FunctionAssociation> |
getFunctionAssociations()
(experimental) The CloudFront functions to invoke before serving the contents.
|
Boolean |
getIsDefaultBehavior()
(experimental) If this behavior is the default behavior for the distribution.
|
List<LambdaFunctionAssociation> |
getLambdaFunctionAssociations()
(experimental) Declares associated lambda@edge functions for this distribution behaviour.
|
Duration |
getMaxTtl()
(experimental) The max amount of time you want objects to stay in the cache before CloudFront queries your origin.
|
Duration |
getMinTtl()
(experimental) The minimum amount of time that you want objects to stay in the cache before CloudFront queries your origin.
|
String |
getPathPattern()
(experimental) The path this behavior responds to.
|
List<IKeyGroup> |
getTrustedKeyGroups()
(experimental) A list of Key Groups that CloudFront can use to validate signed URLs or signed cookies.
|
int |
hashCode() |
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetprotected Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)
objRef - Reference to the JSII managed object.protected Jsii$Proxy(CloudFrontAllowedMethods allowedMethods, CloudFrontAllowedCachedMethods cachedMethods, Boolean compress, Duration defaultTtl, CfnDistribution.ForwardedValuesProperty forwardedValues, List<? extends FunctionAssociation> functionAssociations, Boolean isDefaultBehavior, List<? extends LambdaFunctionAssociation> lambdaFunctionAssociations, Duration maxTtl, Duration minTtl, String pathPattern, List<? extends IKeyGroup> trustedKeyGroups)
Behavior.Builder.public final CloudFrontAllowedMethods getAllowedMethods()
BehaviorDefault: GET_HEAD
getAllowedMethods in interface Behaviorpublic final CloudFrontAllowedCachedMethods getCachedMethods()
BehaviorDefault: GET_HEAD
getCachedMethods in interface Behaviorpublic final Boolean getCompress()
BehaviorDefault: true
getCompress in interface Behaviorpublic final Duration getDefaultTtl()
BehaviorThis value applies only when your custom origin does not add HTTP headers, such as Cache-Control max-age, Cache-Control s-maxage, and Expires to objects.
Default: 86400 (1 day)
getDefaultTtl in interface Behaviorpublic final CfnDistribution.ForwardedValuesProperty getForwardedValues()
BehaviorDefault: none (no cookies - no headers)
getForwardedValues in interface Behaviorpublic final List<FunctionAssociation> getFunctionAssociations()
BehaviorDefault: - no functions will be invoked
getFunctionAssociations in interface Behaviorpublic final Boolean getIsDefaultBehavior()
BehaviorYou must specify exactly one default distribution per CloudFront distribution. The default behavior is allowed to omit the "path" property.
getIsDefaultBehavior in interface Behaviorpublic final List<LambdaFunctionAssociation> getLambdaFunctionAssociations()
BehaviorDefault: No lambda function associated
getLambdaFunctionAssociations in interface Behaviorpublic final Duration getMaxTtl()
BehaviorDefault: Duration.seconds(31536000) (one year)
public final Duration getMinTtl()
Behaviorpublic final String getPathPattern()
BehaviorRequired for all non-default behaviors. (The default behavior implicitly has "*" as the path pattern. )
getPathPattern in interface Behaviorpublic final List<IKeyGroup> getTrustedKeyGroups()
BehaviorDefault: - no KeyGroups are associated with cache behavior
getTrustedKeyGroups in interface Behaviorhttps://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/PrivateContent.html@Internal public com.fasterxml.jackson.databind.JsonNode $jsii$toJson()
$jsii$toJson in interface software.amazon.jsii.JsiiSerializableCopyright © 2021. All rights reserved.