aws-native logo
AWS Native v0.55.0, Mar 28 23

aws-native.cloudfront.Distribution

Resource Type definition for AWS::CloudFront::Distribution

Create Distribution Resource

new Distribution(name: string, args: DistributionArgs, opts?: CustomResourceOptions);
@overload
def Distribution(resource_name: str,
                 opts: Optional[ResourceOptions] = None,
                 distribution_config: Optional[DistributionConfigArgs] = None,
                 tags: Optional[Sequence[DistributionTagArgs]] = None)
@overload
def Distribution(resource_name: str,
                 args: DistributionArgs,
                 opts: Optional[ResourceOptions] = None)
func NewDistribution(ctx *Context, name string, args DistributionArgs, opts ...ResourceOption) (*Distribution, error)
public Distribution(string name, DistributionArgs args, CustomResourceOptions? opts = null)
public Distribution(String name, DistributionArgs args)
public Distribution(String name, DistributionArgs args, CustomResourceOptions options)
type: aws-native:cloudfront:Distribution
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

name string
The unique name of the resource.
args DistributionArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name str
The unique name of the resource.
args DistributionArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name string
The unique name of the resource.
args DistributionArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args DistributionArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name String
The unique name of the resource.
args DistributionArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

Distribution Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

Inputs

The Distribution resource accepts the following input properties:

Outputs

All input properties are implicitly available as output properties. Additionally, the Distribution resource produces the following output properties:

DomainName string
Id string

The provider-assigned unique ID for this managed resource.

DomainName string
Id string

The provider-assigned unique ID for this managed resource.

domainName String
id String

The provider-assigned unique ID for this managed resource.

domainName string
id string

The provider-assigned unique ID for this managed resource.

domain_name str
id str

The provider-assigned unique ID for this managed resource.

domainName String
id String

The provider-assigned unique ID for this managed resource.

Supporting Types

DistributionCacheBehavior

DistributionConfig

DefaultCacheBehavior Pulumi.AwsNative.CloudFront.Inputs.DistributionDefaultCacheBehavior
Enabled bool
Aliases List<string>
CNAMEs List<string>
CacheBehaviors List<Pulumi.AwsNative.CloudFront.Inputs.DistributionCacheBehavior>
Comment string
ContinuousDeploymentPolicyId string
CustomErrorResponses List<Pulumi.AwsNative.CloudFront.Inputs.DistributionCustomErrorResponse>
CustomOrigin Pulumi.AwsNative.CloudFront.Inputs.DistributionLegacyCustomOrigin
DefaultRootObject string
HttpVersion string
IPV6Enabled bool
Logging Pulumi.AwsNative.CloudFront.Inputs.DistributionLogging
OriginGroups Pulumi.AwsNative.CloudFront.Inputs.DistributionOriginGroups
Origins List<Pulumi.AwsNative.CloudFront.Inputs.DistributionOrigin>
PriceClass string
Restrictions Pulumi.AwsNative.CloudFront.Inputs.DistributionRestrictions
S3Origin Pulumi.AwsNative.CloudFront.Inputs.DistributionLegacyS3Origin
Staging bool
ViewerCertificate Pulumi.AwsNative.CloudFront.Inputs.DistributionViewerCertificate
WebACLId string

DistributionCookies

Forward string
WhitelistedNames List<string>
Forward string
WhitelistedNames []string
forward String
whitelistedNames List<String>
forward string
whitelistedNames string[]
forward str
whitelisted_names Sequence[str]
forward String
whitelistedNames List<String>

DistributionCustomErrorResponse

DistributionCustomOriginConfig

DistributionDefaultCacheBehavior

DistributionForwardedValues

DistributionFunctionAssociation

EventType string
FunctionARN string
EventType string
FunctionARN string
eventType String
functionARN String
eventType string
functionARN string
eventType String
functionARN String

DistributionGeoRestriction

RestrictionType string
Locations List<string>
RestrictionType string
Locations []string
restrictionType String
locations List<String>
restrictionType string
locations string[]
restriction_type str
locations Sequence[str]
restrictionType String
locations List<String>

DistributionLambdaFunctionAssociation

DistributionLegacyCustomOrigin

dNSName String
originProtocolPolicy String
originSSLProtocols List<String>
hTTPPort Integer
hTTPSPort Integer

DistributionLegacyS3Origin

DistributionLogging

Bucket string
IncludeCookies bool
Prefix string
Bucket string
IncludeCookies bool
Prefix string
bucket String
includeCookies Boolean
prefix String
bucket string
includeCookies boolean
prefix string
bucket String
includeCookies Boolean
prefix String

DistributionOrigin

DistributionOriginCustomHeader

HeaderName string
HeaderValue string
HeaderName string
HeaderValue string
headerName String
headerValue String
headerName string
headerValue string
headerName String
headerValue String

DistributionOriginGroup

DistributionOriginGroupFailoverCriteria

DistributionOriginGroupMember

OriginId string
OriginId string
originId String
originId string
originId String

DistributionOriginGroupMembers

DistributionOriginGroups

DistributionOriginShield

DistributionRestrictions

DistributionS3OriginConfig

DistributionStatusCodes

Items List<int>
Quantity int
Items []int
Quantity int
items List<Integer>
quantity Integer
items number[]
quantity number
items Sequence[int]
quantity int
items List<Number>
quantity Number

DistributionTag

Key string
Value string
Key string
Value string
key String
value String
key string
value string
key str
value str
key String
value String

DistributionViewerCertificate

Package Details

Repository
AWS Native pulumi/pulumi-aws-native
License
Apache-2.0