Class DistributionDefaultCacheBehavior
Inheritance
Inherited Members
Namespace: Pulumi.Aws.CloudFront.Outputs
Assembly: Pulumi.Aws.dll
Syntax
public sealed class DistributionDefaultCacheBehavior
Fields
View SourceAllowedMethods
Controls which HTTP methods CloudFront processes and forwards to your Amazon S3 bucket or your custom origin.
Declaration
public readonly ImmutableArray<string> AllowedMethods
Field Value
| Type | Description |
|---|---|
| System.Collections.Immutable.ImmutableArray<System.String> |
CachedMethods
Controls whether CloudFront caches the response to requests using the specified HTTP methods.
Declaration
public readonly ImmutableArray<string> CachedMethods
Field Value
| Type | Description |
|---|---|
| System.Collections.Immutable.ImmutableArray<System.String> |
Compress
Whether you want CloudFront to automatically
compress content for web requests that include Accept-Encoding: gzip in
the request header (default: false).
Declaration
public readonly bool? Compress
Field Value
| Type | Description |
|---|---|
| System.Nullable<System.Boolean> |
DefaultTtl
The default amount of time (in seconds) that an
object is in a CloudFront cache before CloudFront forwards another request
in the absence of an Cache-Control max-age or Expires header. Defaults to
1 day.
Declaration
public readonly int? DefaultTtl
Field Value
| Type | Description |
|---|---|
| System.Nullable<System.Int32> |
FieldLevelEncryptionId
Field level encryption configuration ID
Declaration
public readonly string FieldLevelEncryptionId
Field Value
| Type | Description |
|---|---|
| System.String |
ForwardedValues
The forwarded values configuration that specifies how CloudFront handles query strings, cookies and headers (maximum one).
Declaration
public readonly DistributionDefaultCacheBehaviorForwardedValues ForwardedValues
Field Value
| Type | Description |
|---|---|
| DistributionDefaultCacheBehaviorForwardedValues |
LambdaFunctionAssociations
A config block that triggers a lambda function with specific actions. Defined below, maximum 4.
Declaration
public readonly ImmutableArray<DistributionDefaultCacheBehaviorLambdaFunctionAssociation> LambdaFunctionAssociations
Field Value
| Type | Description |
|---|---|
| System.Collections.Immutable.ImmutableArray<DistributionDefaultCacheBehaviorLambdaFunctionAssociation> |
MaxTtl
The maximum amount of time (in seconds) that an
object is in a CloudFront cache before CloudFront forwards another request
to your origin to determine whether the object has been updated. Only
effective in the presence of Cache-Control max-age, Cache-Control s-maxage, and Expires headers. Defaults to 365 days.
Declaration
public readonly int? MaxTtl
Field Value
| Type | Description |
|---|---|
| System.Nullable<System.Int32> |
MinTtl
The minimum amount of time that you want objects to stay in CloudFront caches before CloudFront queries your origin to see whether the object has been updated. Defaults to 0 seconds.
Declaration
public readonly int? MinTtl
Field Value
| Type | Description |
|---|---|
| System.Nullable<System.Int32> |
SmoothStreaming
Indicates whether you want to distribute media files in Microsoft Smooth Streaming format using the origin that is associated with this cache behavior.
Declaration
public readonly bool? SmoothStreaming
Field Value
| Type | Description |
|---|---|
| System.Nullable<System.Boolean> |
TargetOriginId
The value of ID for the origin that you want CloudFront to route requests to when a request matches the path pattern either for a cache behavior or for the default cache behavior.
Declaration
public readonly string TargetOriginId
Field Value
| Type | Description |
|---|---|
| System.String |
TrustedSigners
The AWS accounts, if any, that you want to allow to create signed URLs for private content.
Declaration
public readonly ImmutableArray<string> TrustedSigners
Field Value
| Type | Description |
|---|---|
| System.Collections.Immutable.ImmutableArray<System.String> |
ViewerProtocolPolicy
Use this element to specify the
protocol that users can use to access the files in the origin specified by
TargetOriginId when a request matches the path pattern in PathPattern. One
of allow-all, https-only, or redirect-to-https.
Declaration
public readonly string ViewerProtocolPolicy
Field Value
| Type | Description |
|---|---|
| System.String |