Class DistributionDefaultCacheBehaviorArgs
Inherited Members
Namespace: Pulumi.Aws.CloudFront.Inputs
Assembly: Pulumi.Aws.dll
Syntax
public sealed class DistributionDefaultCacheBehaviorArgs : ResourceArgs
Constructors
View SourceDistributionDefaultCacheBehaviorArgs()
Declaration
public DistributionDefaultCacheBehaviorArgs()
Properties
View SourceAllowedMethods
Controls which HTTP methods CloudFront processes and forwards to your Amazon S3 bucket or your custom origin.
Declaration
public InputList<string> AllowedMethods { get; set; }
Property Value
| Type | Description |
|---|---|
| InputList<System.String> |
CachedMethods
Controls whether CloudFront caches the response to requests using the specified HTTP methods.
Declaration
public InputList<string> CachedMethods { get; set; }
Property Value
| Type | Description |
|---|---|
| InputList<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 Input<bool> Compress { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<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 Input<int> DefaultTtl { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.Int32> |
FieldLevelEncryptionId
Field level encryption configuration ID
Declaration
public Input<string> FieldLevelEncryptionId { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.String> |
ForwardedValues
The forwarded values configuration that specifies how CloudFront handles query strings, cookies and headers (maximum one).
Declaration
public Input<DistributionDefaultCacheBehaviorForwardedValuesArgs> ForwardedValues { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<DistributionDefaultCacheBehaviorForwardedValuesArgs> |
LambdaFunctionAssociations
A config block that triggers a lambda function with specific actions. Defined below, maximum 4.
Declaration
public InputList<DistributionDefaultCacheBehaviorLambdaFunctionAssociationArgs> LambdaFunctionAssociations { get; set; }
Property Value
| Type | Description |
|---|---|
| InputList<DistributionDefaultCacheBehaviorLambdaFunctionAssociationArgs> |
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 Input<int> MaxTtl { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<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 Input<int> MinTtl { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<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 Input<bool> SmoothStreaming { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<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 Input<string> TargetOriginId { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.String> |
TrustedSigners
The AWS accounts, if any, that you want to allow to create signed URLs for private content.
Declaration
public InputList<string> TrustedSigners { get; set; }
Property Value
| Type | Description |
|---|---|
| InputList<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 Input<string> ViewerProtocolPolicy { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.String> |