Behavior.Builder, Behavior.Jsii$Proxy
Modifier | Constructor and Description |
---|---|
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(java.lang.Object o) |
CloudFrontAllowedMethods |
getAllowedMethods()
The method this CloudFront distribution responds do.
|
CloudFrontAllowedCachedMethods |
getCachedMethods()
Which methods are cached by CloudFront by default.
|
java.lang.Boolean |
getCompress()
If CloudFront should automatically compress some content types.
|
Duration |
getDefaultTtl()
The default amount of time CloudFront will cache an object.
|
CfnDistribution.ForwardedValuesProperty |
getForwardedValues()
The values CloudFront will forward to the origin when making a request.
|
java.util.List<FunctionAssociation> |
getFunctionAssociations()
The CloudFront functions to invoke before serving the contents.
|
java.lang.Boolean |
getIsDefaultBehavior()
If this behavior is the default behavior for the distribution.
|
java.util.List<LambdaFunctionAssociation> |
getLambdaFunctionAssociations()
Declares associated lambda@edge functions for this distribution behaviour.
|
Duration |
getMaxTtl()
The max amount of time you want objects to stay in the cache before CloudFront queries your origin.
|
Duration |
getMinTtl()
The minimum amount of time that you want objects to stay in the cache before CloudFront queries your origin.
|
java.lang.String |
getPathPattern()
The path this behavior responds to.
|
java.util.List<IKeyGroup> |
getTrustedKeyGroups()
A list of Key Groups that CloudFront can use to validate signed URLs or signed cookies.
|
java.util.List<java.lang.String> |
getTrustedSigners()
(deprecated) Trusted signers is how CloudFront allows you to serve private content.
|
ViewerProtocolPolicy |
getViewerProtocolPolicy()
The viewer policy for this behavior.
|
int |
hashCode() |
protected Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)
objRef
- Reference to the JSII managed object.public final CloudFrontAllowedMethods getAllowedMethods()
Behavior
Default: GET_HEAD
getAllowedMethods
in interface Behavior
public final CloudFrontAllowedCachedMethods getCachedMethods()
Behavior
Default: GET_HEAD
getCachedMethods
in interface Behavior
public final java.lang.Boolean getCompress()
Behavior
Default: true
getCompress
in interface Behavior
public final Duration getDefaultTtl()
Behavior
This 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 Behavior
public final CfnDistribution.ForwardedValuesProperty getForwardedValues()
Behavior
Default: none (no cookies - no headers)
getForwardedValues
in interface Behavior
public final java.util.List<FunctionAssociation> getFunctionAssociations()
Behavior
Default: - no functions will be invoked
getFunctionAssociations
in interface Behavior
public final java.lang.Boolean getIsDefaultBehavior()
Behavior
You must specify exactly one default distribution per CloudFront distribution. The default behavior is allowed to omit the "path" property.
getIsDefaultBehavior
in interface Behavior
public final java.util.List<LambdaFunctionAssociation> getLambdaFunctionAssociations()
Behavior
Default: No lambda function associated
getLambdaFunctionAssociations
in interface Behavior
public final Duration getMaxTtl()
Behavior
Default: Duration.seconds(31536000) (one year)
public final Duration getMinTtl()
Behavior
public final java.lang.String getPathPattern()
Behavior
Required for all non-default behaviors. (The default behavior implicitly has "*" as the path pattern. )
getPathPattern
in interface Behavior
public final java.util.List<IKeyGroup> getTrustedKeyGroups()
Behavior
Default: - no KeyGroups are associated with cache behavior
getTrustedKeyGroups
in interface Behavior
public final java.util.List<java.lang.String> getTrustedSigners()
Behavior
The signers are the account IDs that are allowed to sign cookies/presigned URLs for this distribution.
If you pass a non empty value, all requests for this behavior must be signed (no public access will be allowed)
getTrustedSigners
in interface Behavior
public final ViewerProtocolPolicy getViewerProtocolPolicy()
Behavior
Default: - the distribution wide viewer protocol policy will be used
getViewerProtocolPolicy
in interface Behavior
public com.fasterxml.jackson.databind.JsonNode $jsii$toJson()
public final boolean equals(java.lang.Object o)
public final int hashCode()