Module cloudfront
This page documents the language specification for the aws package. If you're looking for help working with the inputs, outputs, or functions of aws resources in a Pulumi program, please see the resource documentation for examples and API reference.
This provider is a derived work of the Terraform Provider distributed under MPL 2.0. If you encounter a bug or missing feature, first check the
pulumi/pulumi-awsrepo; however, if that doesn’t turn up anything, please consult the sourceterraform-providers/terraform-provider-awsrepo.
Resources
Functions
Others
- DistributionArgs
- DistributionState
- GetDistributionArgs
- GetDistributionResult
- OriginAccessIdentityArgs
- OriginAccessIdentityState
- PublicKeyArgs
- PublicKeyState
Resources
Resource Distribution
class Distribution extends CustomResourceCreates an Amazon CloudFront web distribution.
For information about CloudFront distributions, see the Amazon CloudFront Developer Guide. For specific information about creating CloudFront web distributions, see the POST Distribution page in the Amazon CloudFront API Reference.
NOTE: CloudFront distributions take about 15 minutes to a deployed state after creation or modification. During this time, deletes to resources will be blocked. If you need to delete a distribution that is enabled and you do not want to wait, you need to use the
retainOnDeleteflag.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const bucket = new aws.s3.Bucket("b", {
acl: "private",
tags: {
Name: "My bucket",
},
});
const s3OriginId = "myS3Origin";
const s3Distribution = new aws.cloudfront.Distribution("s3_distribution", {
aliases: [
"mysite.example.com",
"yoursite.example.com",
],
comment: "Some comment",
defaultCacheBehavior: {
allowedMethods: [
"DELETE",
"GET",
"HEAD",
"OPTIONS",
"PATCH",
"POST",
"PUT",
],
cachedMethods: [
"GET",
"HEAD",
],
defaultTtl: 3600,
forwardedValues: {
cookies: {
forward: "none",
},
queryString: false,
},
maxTtl: 86400,
minTtl: 0,
targetOriginId: s3OriginId,
viewerProtocolPolicy: "allow-all",
},
defaultRootObject: "index.html",
enabled: true,
isIpv6Enabled: true,
loggingConfig: {
bucket: "mylogs.s3.amazonaws.com",
includeCookies: false,
prefix: "myprefix",
},
orderedCacheBehaviors: [
// Cache behavior with precedence 0
{
allowedMethods: [
"GET",
"HEAD",
"OPTIONS",
],
cachedMethods: [
"GET",
"HEAD",
"OPTIONS",
],
compress: true,
defaultTtl: 86400,
forwardedValues: {
cookies: {
forward: "none",
},
headers: ["Origin"],
queryString: false,
},
maxTtl: 31536000,
minTtl: 0,
pathPattern: "/content/immutable/*",
targetOriginId: s3OriginId,
viewerProtocolPolicy: "redirect-to-https",
},
// Cache behavior with precedence 1
{
allowedMethods: [
"GET",
"HEAD",
"OPTIONS",
],
cachedMethods: [
"GET",
"HEAD",
],
compress: true,
defaultTtl: 3600,
forwardedValues: {
cookies: {
forward: "none",
},
queryString: false,
},
maxTtl: 86400,
minTtl: 0,
pathPattern: "/content/*",
targetOriginId: s3OriginId,
viewerProtocolPolicy: "redirect-to-https",
},
],
origins: [{
domainName: bucket.bucketRegionalDomainName,
originId: s3OriginId,
s3OriginConfig: {
originAccessIdentity: "origin-access-identity/cloudfront/ABCDEFG1234567",
},
}],
priceClass: "PriceClass_200",
restrictions: {
geoRestriction: {
locations: [
"US",
"CA",
"GB",
"DE",
],
restrictionType: "whitelist",
},
},
tags: {
Environment: "production",
},
viewerCertificate: {
cloudfrontDefaultCertificate: true,
},
});constructor
new Distribution(name: string, args: DistributionArgs, opts?: pulumi.CustomResourceOptions)Create a Distribution resource with the given unique name, arguments, and options.
nameThe unique name of the resource.argsThe arguments to use to populate this resource's properties.optsA bag of options that control this resource's behavior.
method get
public static get(name: string, id: pulumi.Input<pulumi.ID>, state?: DistributionState, opts?: pulumi.CustomResourceOptions): DistributionGet an existing Distribution resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
method getProvider
getProvider(moduleMember: string): ProviderResource | undefinedmethod isInstance
public static isInstance(obj: any): obj is DistributionReturns true if the given object is an instance of Distribution. This is designed to work even when multiple copies of the Pulumi SDK have been loaded into the same process.
property activeTrustedSigners
public activeTrustedSigners: pulumi.Output<{[key: string]: any}>;The key pair IDs that CloudFront is aware of for each trusted signer, if the distribution is set up to serve private content with signed URLs.
property aliases
public aliases: pulumi.Output<string[] | undefined>;Extra CNAMEs (alternate domain names), if any, for this distribution.
property arn
public arn: pulumi.Output<string>;The ARN (Amazon Resource Name) for the distribution. For example: arn:aws:cloudfront::123456789012:distribution/EDFDVBD632BHDS5, where 123456789012 is your AWS account ID.
property callerReference
public callerReference: pulumi.Output<string>;Internal value used by CloudFront to allow future updates to the distribution configuration.
property comment
public comment: pulumi.Output<string | undefined>;Any comments you want to include about the distribution.
property customErrorResponses
public customErrorResponses: pulumi.Output<DistributionCustomErrorResponse[] | undefined>;One or more custom error response elements (multiples allowed).
property defaultCacheBehavior
public defaultCacheBehavior: pulumi.Output<DistributionDefaultCacheBehavior>;The default cache behavior for this distribution (maximum one).
property defaultRootObject
public defaultRootObject: pulumi.Output<string | undefined>;The object that you want CloudFront to return (for example, index.html) when an end user requests the root URL.
property domainName
public domainName: pulumi.Output<string>;The DNS domain name of either the S3 bucket, or web site of your custom origin.
property enabled
public enabled: pulumi.Output<boolean>;Whether the distribution is enabled to accept end user requests for content.
property etag
public etag: pulumi.Output<string>;The current version of the distribution’s information. For example:
E2QWRUHAPOMQZL.
property hostedZoneId
public hostedZoneId: pulumi.Output<string>;The CloudFront Route 53 zone ID that can be used to
route an Alias Resource Record Set to. This attribute is simply an
alias for the zone ID Z2FDTNDATAQYW2.
property httpVersion
public httpVersion: pulumi.Output<string | undefined>;The maximum HTTP version to support on the
distribution. Allowed values are http1.1 and http2. The default is
http2.
property id
id: Output<ID>;id is the provider-assigned unique ID for this managed resource. It is set during deployments and may be missing (undefined) during planning phases.
property inProgressValidationBatches
public inProgressValidationBatches: pulumi.Output<number>;The number of invalidation batches currently in progress.
property isIpv6Enabled
public isIpv6Enabled: pulumi.Output<boolean | undefined>;Whether the IPv6 is enabled for the distribution.
property lastModifiedTime
public lastModifiedTime: pulumi.Output<string>;The date and time the distribution was last modified.
property loggingConfig
public loggingConfig: pulumi.Output<DistributionLoggingConfig | undefined>;The logging configuration that controls how logs are written to your distribution (maximum one).
property orderedCacheBehaviors
public orderedCacheBehaviors: pulumi.Output<DistributionOrderedCacheBehavior[] | undefined>;An ordered list of cache behaviors resource for this distribution. List from top to bottom in order of precedence. The topmost cache behavior will have precedence 0.
property originGroups
public originGroups: pulumi.Output<DistributionOriginGroup[] | undefined>;One or more originGroup for this distribution (multiples allowed).
property origins
public origins: pulumi.Output<DistributionOrigin[]>;One or more origins for this distribution (multiples allowed).
property priceClass
public priceClass: pulumi.Output<string | undefined>;The price class for this distribution. One of
PriceClass_All, PriceClass_200, PriceClass_100
property restrictions
public restrictions: pulumi.Output<DistributionRestrictions>;The restriction configuration for this distribution (maximum one).
property retainOnDelete
public retainOnDelete: pulumi.Output<boolean | undefined>;Disables the distribution instead of
deleting it when destroying the resource. If this is set,
the distribution needs to be deleted manually afterwards. Default: false.
property status
public status: pulumi.Output<string>;The current status of the distribution. Deployed if the
distribution’s information is fully propagated throughout the Amazon
CloudFront system.
property tags
public tags: pulumi.Output<{[key: string]: any} | undefined>;A map of tags to assign to the resource.
property urn
urn: Output<URN>;urn is the stable logical URN used to distinctly address a resource, both before and after deployments.
property viewerCertificate
public viewerCertificate: pulumi.Output<DistributionViewerCertificate>;The SSL configuration for this distribution (maximum one).
property waitForDeployment
public waitForDeployment: pulumi.Output<boolean | undefined>;If enabled, the resource will wait for
the distribution status to change from InProgress to Deployed. Setting
this tofalse will skip the process. Default: true.
property webAclId
public webAclId: pulumi.Output<string | undefined>;If you’re using AWS WAF to filter CloudFront
requests, the Id of the AWS WAF web ACL that is associated with the
distribution. The WAF Web ACL must exist in the WAF Global (CloudFront)
region and the credentials configuring this argument must have
waf:GetWebACL permissions assigned.
Resource OriginAccessIdentity
class OriginAccessIdentity extends CustomResourceCreates an Amazon CloudFront origin access identity.
For information about CloudFront distributions, see the Amazon CloudFront Developer Guide. For more information on generating origin access identities, see Using an Origin Access Identity to Restrict Access to Your Amazon S3 Content.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const originAccessIdentity = new aws.cloudfront.OriginAccessIdentity("origin_access_identity", {
comment: "Some comment",
});Using With CloudFront
Normally, when referencing an origin access identity in CloudFront, you need to
prefix the ID with the origin-access-identity/cloudfront/ special path.
The cloudfrontAccessIdentityPath allows this to be circumvented.
The below snippet demonstrates use with the s3OriginConfig structure for the
aws.cloudfront.Distribution resource:
import * as pulumi from "@pulumi/pulumi";Updating your bucket policy
Note that the AWS API may translate the s3CanonicalUserId CanonicalUser
principal into an AWS IAM ARN principal when supplied in an
aws.s3.Bucket bucket policy, causing spurious diffs. If
you see this behaviour, use the iamArn instead:
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const s3Policy = pulumi.all([aws_cloudfront_origin_access_identity_origin_access_identity.iamArn, aws_s3_bucket_example.arn, aws_cloudfront_origin_access_identity_origin_access_identity.iamArn, aws_s3_bucket_example.arn]).apply(([aws_cloudfront_origin_access_identity_origin_access_identityIamArn, aws_s3_bucket_exampleArn, aws_cloudfront_origin_access_identity_origin_access_identityIamArn1, aws_s3_bucket_exampleArn1]) => aws.iam.getPolicyDocument({
statements: [
{
actions: ["s3:GetObject"],
principals: [{
identifiers: [aws_cloudfront_origin_access_identity_origin_access_identityIamArn],
type: "AWS",
}],
resources: [`${aws_s3_bucket_exampleArn}/*`],
},
{
actions: ["s3:ListBucket"],
principals: [{
identifiers: [aws_cloudfront_origin_access_identity_origin_access_identityIamArn1],
type: "AWS",
}],
resources: [aws_s3_bucket_exampleArn1],
},
],
}, { async: true }));
const example = new aws.s3.BucketPolicy("example", {
bucket: aws_s3_bucket_example.id,
policy: s3Policy.json,
});constructor
new OriginAccessIdentity(name: string, args?: OriginAccessIdentityArgs, opts?: pulumi.CustomResourceOptions)Create a OriginAccessIdentity resource with the given unique name, arguments, and options.
nameThe unique name of the resource.argsThe arguments to use to populate this resource's properties.optsA bag of options that control this resource's behavior.
method get
public static get(name: string, id: pulumi.Input<pulumi.ID>, state?: OriginAccessIdentityState, opts?: pulumi.CustomResourceOptions): OriginAccessIdentityGet an existing OriginAccessIdentity resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
method getProvider
getProvider(moduleMember: string): ProviderResource | undefinedmethod isInstance
public static isInstance(obj: any): obj is OriginAccessIdentityReturns true if the given object is an instance of OriginAccessIdentity. This is designed to work even when multiple copies of the Pulumi SDK have been loaded into the same process.
property callerReference
public callerReference: pulumi.Output<string>;Internal value used by CloudFront to allow future updates to the origin access identity.
property cloudfrontAccessIdentityPath
public cloudfrontAccessIdentityPath: pulumi.Output<string>;A shortcut to the full path for the origin access identity to use in CloudFront, see below.
property comment
public comment: pulumi.Output<string | undefined>;An optional comment for the origin access identity.
property etag
public etag: pulumi.Output<string>;The current version of the origin access identity’s information.
For example: E2QWRUHAPOMQZL.
property iamArn
public iamArn: pulumi.Output<string>;A pre-generated ARN for use in S3 bucket policies (see below).
Example: arn:aws:iam::cloudfront:user/CloudFront Origin Access Identity
E2QWRUHAPOMQZL.
property id
id: Output<ID>;id is the provider-assigned unique ID for this managed resource. It is set during deployments and may be missing (undefined) during planning phases.
property s3CanonicalUserId
public s3CanonicalUserId: pulumi.Output<string>;The Amazon S3 canonical user ID for the origin access identity, which you use when giving the origin access identity read permission to an object in Amazon S3.
property urn
urn: Output<URN>;urn is the stable logical URN used to distinctly address a resource, both before and after deployments.
Resource PublicKey
class PublicKey extends CustomResourceExample Usage
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
import * as fs from "fs";
const example = new aws.cloudfront.PublicKey("example", {
comment: "test public key",
encodedKey: fs.readFileSync("public_key.pem", "utf-8"),
});constructor
new PublicKey(name: string, args: PublicKeyArgs, opts?: pulumi.CustomResourceOptions)Create a PublicKey resource with the given unique name, arguments, and options.
nameThe unique name of the resource.argsThe arguments to use to populate this resource's properties.optsA bag of options that control this resource's behavior.
method get
public static get(name: string, id: pulumi.Input<pulumi.ID>, state?: PublicKeyState, opts?: pulumi.CustomResourceOptions): PublicKeyGet an existing PublicKey resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
method getProvider
getProvider(moduleMember: string): ProviderResource | undefinedmethod isInstance
public static isInstance(obj: any): obj is PublicKeyReturns true if the given object is an instance of PublicKey. This is designed to work even when multiple copies of the Pulumi SDK have been loaded into the same process.
property callerReference
public callerReference: pulumi.Output<string>;Internal value used by CloudFront to allow future updates to the public key configuration.
property comment
public comment: pulumi.Output<string | undefined>;An optional comment about the public key.
property encodedKey
public encodedKey: pulumi.Output<string>;The encoded public key that you want to add to CloudFront to use with features like field-level encryption.
property etag
public etag: pulumi.Output<string>;The current version of the public key. For example: E2QWRUHAPOMQZL.
property id
id: Output<ID>;id is the provider-assigned unique ID for this managed resource. It is set during deployments and may be missing (undefined) during planning phases.
property name
public name: pulumi.Output<string>;The name for the public key. By default generated by this provider.
property namePrefix
public namePrefix: pulumi.Output<string>;The name for the public key. Conflicts with name.
property urn
urn: Output<URN>;urn is the stable logical URN used to distinctly address a resource, both before and after deployments.
Functions
Function getDistribution
getDistribution(args: GetDistributionArgs, opts?: pulumi.InvokeOptions): Promise<GetDistributionResult>Use this data source to retrieve information about a CloudFront distribution.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const test = pulumi.output(aws.cloudfront.getDistribution({
id: "EDFDVBD632BHDS5",
}, { async: true }));Others
interface DistributionArgs
interface DistributionArgsThe set of arguments for constructing a Distribution resource.
property aliases
aliases?: pulumi.Input<pulumi.Input<string>[]>;Extra CNAMEs (alternate domain names), if any, for this distribution.
property comment
comment?: pulumi.Input<string>;Any comments you want to include about the distribution.
property customErrorResponses
customErrorResponses?: pulumi.Input<pulumi.Input<DistributionCustomErrorResponse>[]>;One or more custom error response elements (multiples allowed).
property defaultCacheBehavior
defaultCacheBehavior: pulumi.Input<DistributionDefaultCacheBehavior>;The default cache behavior for this distribution (maximum one).
property defaultRootObject
defaultRootObject?: pulumi.Input<string>;The object that you want CloudFront to return (for example, index.html) when an end user requests the root URL.
property enabled
enabled: pulumi.Input<boolean>;Whether the distribution is enabled to accept end user requests for content.
property httpVersion
httpVersion?: pulumi.Input<string>;The maximum HTTP version to support on the
distribution. Allowed values are http1.1 and http2. The default is
http2.
property isIpv6Enabled
isIpv6Enabled?: pulumi.Input<boolean>;Whether the IPv6 is enabled for the distribution.
property loggingConfig
loggingConfig?: pulumi.Input<DistributionLoggingConfig>;The logging configuration that controls how logs are written to your distribution (maximum one).
property orderedCacheBehaviors
orderedCacheBehaviors?: pulumi.Input<pulumi.Input<DistributionOrderedCacheBehavior>[]>;An ordered list of cache behaviors resource for this distribution. List from top to bottom in order of precedence. The topmost cache behavior will have precedence 0.
property originGroups
originGroups?: pulumi.Input<pulumi.Input<DistributionOriginGroup>[]>;One or more originGroup for this distribution (multiples allowed).
property origins
origins: pulumi.Input<pulumi.Input<DistributionOrigin>[]>;One or more origins for this distribution (multiples allowed).
property priceClass
priceClass?: pulumi.Input<string>;The price class for this distribution. One of
PriceClass_All, PriceClass_200, PriceClass_100
property restrictions
restrictions: pulumi.Input<DistributionRestrictions>;The restriction configuration for this distribution (maximum one).
property retainOnDelete
retainOnDelete?: pulumi.Input<boolean>;Disables the distribution instead of
deleting it when destroying the resource. If this is set,
the distribution needs to be deleted manually afterwards. Default: false.
property tags
tags?: pulumi.Input<{[key: string]: any}>;A map of tags to assign to the resource.
property viewerCertificate
viewerCertificate: pulumi.Input<DistributionViewerCertificate>;The SSL configuration for this distribution (maximum one).
property waitForDeployment
waitForDeployment?: pulumi.Input<boolean>;If enabled, the resource will wait for
the distribution status to change from InProgress to Deployed. Setting
this tofalse will skip the process. Default: true.
property webAclId
webAclId?: pulumi.Input<string>;If you’re using AWS WAF to filter CloudFront
requests, the Id of the AWS WAF web ACL that is associated with the
distribution. The WAF Web ACL must exist in the WAF Global (CloudFront)
region and the credentials configuring this argument must have
waf:GetWebACL permissions assigned.
interface DistributionState
interface DistributionStateInput properties used for looking up and filtering Distribution resources.
property activeTrustedSigners
activeTrustedSigners?: pulumi.Input<{[key: string]: any}>;The key pair IDs that CloudFront is aware of for each trusted signer, if the distribution is set up to serve private content with signed URLs.
property aliases
aliases?: pulumi.Input<pulumi.Input<string>[]>;Extra CNAMEs (alternate domain names), if any, for this distribution.
property arn
arn?: pulumi.Input<string>;The ARN (Amazon Resource Name) for the distribution. For example: arn:aws:cloudfront::123456789012:distribution/EDFDVBD632BHDS5, where 123456789012 is your AWS account ID.
property callerReference
callerReference?: pulumi.Input<string>;Internal value used by CloudFront to allow future updates to the distribution configuration.
property comment
comment?: pulumi.Input<string>;Any comments you want to include about the distribution.
property customErrorResponses
customErrorResponses?: pulumi.Input<pulumi.Input<DistributionCustomErrorResponse>[]>;One or more custom error response elements (multiples allowed).
property defaultCacheBehavior
defaultCacheBehavior?: pulumi.Input<DistributionDefaultCacheBehavior>;The default cache behavior for this distribution (maximum one).
property defaultRootObject
defaultRootObject?: pulumi.Input<string>;The object that you want CloudFront to return (for example, index.html) when an end user requests the root URL.
property domainName
domainName?: pulumi.Input<string>;The DNS domain name of either the S3 bucket, or web site of your custom origin.
property enabled
enabled?: pulumi.Input<boolean>;Whether the distribution is enabled to accept end user requests for content.
property etag
etag?: pulumi.Input<string>;The current version of the distribution’s information. For example:
E2QWRUHAPOMQZL.
property hostedZoneId
hostedZoneId?: pulumi.Input<string>;The CloudFront Route 53 zone ID that can be used to
route an Alias Resource Record Set to. This attribute is simply an
alias for the zone ID Z2FDTNDATAQYW2.
property httpVersion
httpVersion?: pulumi.Input<string>;The maximum HTTP version to support on the
distribution. Allowed values are http1.1 and http2. The default is
http2.
property inProgressValidationBatches
inProgressValidationBatches?: pulumi.Input<number>;The number of invalidation batches currently in progress.
property isIpv6Enabled
isIpv6Enabled?: pulumi.Input<boolean>;Whether the IPv6 is enabled for the distribution.
property lastModifiedTime
lastModifiedTime?: pulumi.Input<string>;The date and time the distribution was last modified.
property loggingConfig
loggingConfig?: pulumi.Input<DistributionLoggingConfig>;The logging configuration that controls how logs are written to your distribution (maximum one).
property orderedCacheBehaviors
orderedCacheBehaviors?: pulumi.Input<pulumi.Input<DistributionOrderedCacheBehavior>[]>;An ordered list of cache behaviors resource for this distribution. List from top to bottom in order of precedence. The topmost cache behavior will have precedence 0.
property originGroups
originGroups?: pulumi.Input<pulumi.Input<DistributionOriginGroup>[]>;One or more originGroup for this distribution (multiples allowed).
property origins
origins?: pulumi.Input<pulumi.Input<DistributionOrigin>[]>;One or more origins for this distribution (multiples allowed).
property priceClass
priceClass?: pulumi.Input<string>;The price class for this distribution. One of
PriceClass_All, PriceClass_200, PriceClass_100
property restrictions
restrictions?: pulumi.Input<DistributionRestrictions>;The restriction configuration for this distribution (maximum one).
property retainOnDelete
retainOnDelete?: pulumi.Input<boolean>;Disables the distribution instead of
deleting it when destroying the resource. If this is set,
the distribution needs to be deleted manually afterwards. Default: false.
property status
status?: pulumi.Input<string>;The current status of the distribution. Deployed if the
distribution’s information is fully propagated throughout the Amazon
CloudFront system.
property tags
tags?: pulumi.Input<{[key: string]: any}>;A map of tags to assign to the resource.
property viewerCertificate
viewerCertificate?: pulumi.Input<DistributionViewerCertificate>;The SSL configuration for this distribution (maximum one).
property waitForDeployment
waitForDeployment?: pulumi.Input<boolean>;If enabled, the resource will wait for
the distribution status to change from InProgress to Deployed. Setting
this tofalse will skip the process. Default: true.
property webAclId
webAclId?: pulumi.Input<string>;If you’re using AWS WAF to filter CloudFront
requests, the Id of the AWS WAF web ACL that is associated with the
distribution. The WAF Web ACL must exist in the WAF Global (CloudFront)
region and the credentials configuring this argument must have
waf:GetWebACL permissions assigned.
interface GetDistributionArgs
interface GetDistributionArgsA collection of arguments for invoking getDistribution.
property id
id: string;The identifier for the distribution. For example: EDFDVBD632BHDS5.
property tags
tags?: undefined | {[key: string]: any};interface GetDistributionResult
interface GetDistributionResultA collection of values returned by getDistribution.
property arn
arn: string;The ARN (Amazon Resource Name) for the distribution. For example: arn:aws:cloudfront::123456789012:distribution/EDFDVBD632BHDS5, where 123456789012 is your AWS account ID.
property domainName
domainName: string;The domain name corresponding to the distribution. For
example: d604721fxaaqy9.cloudfront.net.
property enabled
enabled: boolean;property etag
etag: string;The current version of the distribution’s information. For example:
E2QWRUHAPOMQZL.
property hostedZoneId
hostedZoneId: string;The CloudFront Route 53 zone ID that can be used to
route an [Alias Resource Record Set][7] to. This attribute is simply an
alias for the zone ID Z2FDTNDATAQYW2.
property id
id: string;The identifier for the distribution. For example: EDFDVBD632BHDS5.
property inProgressValidationBatches
inProgressValidationBatches: number;The number of invalidation batches currently in progress.
property lastModifiedTime
lastModifiedTime: string;The date and time the distribution was last modified.
property status
status: string;The current status of the distribution. Deployed if the
distribution’s information is fully propagated throughout the Amazon
CloudFront system.
property tags
tags?: undefined | {[key: string]: any};interface OriginAccessIdentityArgs
interface OriginAccessIdentityArgsThe set of arguments for constructing a OriginAccessIdentity resource.
property comment
comment?: pulumi.Input<string>;An optional comment for the origin access identity.
interface OriginAccessIdentityState
interface OriginAccessIdentityStateInput properties used for looking up and filtering OriginAccessIdentity resources.
property callerReference
callerReference?: pulumi.Input<string>;Internal value used by CloudFront to allow future updates to the origin access identity.
property cloudfrontAccessIdentityPath
cloudfrontAccessIdentityPath?: pulumi.Input<string>;A shortcut to the full path for the origin access identity to use in CloudFront, see below.
property comment
comment?: pulumi.Input<string>;An optional comment for the origin access identity.
property etag
etag?: pulumi.Input<string>;The current version of the origin access identity’s information.
For example: E2QWRUHAPOMQZL.
property iamArn
iamArn?: pulumi.Input<string>;A pre-generated ARN for use in S3 bucket policies (see below).
Example: arn:aws:iam::cloudfront:user/CloudFront Origin Access Identity
E2QWRUHAPOMQZL.
property s3CanonicalUserId
s3CanonicalUserId?: pulumi.Input<string>;The Amazon S3 canonical user ID for the origin access identity, which you use when giving the origin access identity read permission to an object in Amazon S3.
interface PublicKeyArgs
interface PublicKeyArgsThe set of arguments for constructing a PublicKey resource.
property comment
comment?: pulumi.Input<string>;An optional comment about the public key.
property encodedKey
encodedKey: pulumi.Input<string>;The encoded public key that you want to add to CloudFront to use with features like field-level encryption.
property name
name?: pulumi.Input<string>;The name for the public key. By default generated by this provider.
property namePrefix
namePrefix?: pulumi.Input<string>;The name for the public key. Conflicts with name.
interface PublicKeyState
interface PublicKeyStateInput properties used for looking up and filtering PublicKey resources.
property callerReference
callerReference?: pulumi.Input<string>;Internal value used by CloudFront to allow future updates to the public key configuration.
property comment
comment?: pulumi.Input<string>;An optional comment about the public key.
property encodedKey
encodedKey?: pulumi.Input<string>;The encoded public key that you want to add to CloudFront to use with features like field-level encryption.
property etag
etag?: pulumi.Input<string>;The current version of the public key. For example: E2QWRUHAPOMQZL.
property name
name?: pulumi.Input<string>;The name for the public key. By default generated by this provider.
property namePrefix
namePrefix?: pulumi.Input<string>;The name for the public key. Conflicts with name.