1. Packages
  2. AWS Native
  3. API Docs
  4. cloudfront
  5. Distribution

AWS Native is in preview. AWS Classic is fully supported.

AWS Native v0.77.0 published on Wednesday, Sep 20, 2023 by Pulumi

aws-native.cloudfront.Distribution

Explore with Pulumi AI

aws-native logo

AWS Native is in preview. AWS Classic is fully supported.

AWS Native v0.77.0 published on Wednesday, Sep 20, 2023 by Pulumi

    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, DistributionCacheBehaviorArgs

    DistributionConfig, DistributionConfigArgs

    DefaultCacheBehavior Pulumi.AwsNative.CloudFront.Inputs.DistributionDefaultCacheBehavior
    Enabled bool
    Aliases List<string>
    CacheBehaviors List<Pulumi.AwsNative.CloudFront.Inputs.DistributionCacheBehavior>
    Cnames List<string>
    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, DistributionCookiesArgs

    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, DistributionCustomErrorResponseArgs

    DistributionCustomOriginConfig, DistributionCustomOriginConfigArgs

    DistributionDefaultCacheBehavior, DistributionDefaultCacheBehaviorArgs

    DistributionForwardedValues, DistributionForwardedValuesArgs

    DistributionFunctionAssociation, DistributionFunctionAssociationArgs

    EventType string
    FunctionArn string
    EventType string
    FunctionArn string
    eventType String
    functionArn String
    eventType string
    functionArn string
    eventType String
    functionArn String

    DistributionGeoRestriction, DistributionGeoRestrictionArgs

    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, DistributionLambdaFunctionAssociationArgs

    DistributionLegacyCustomOrigin, DistributionLegacyCustomOriginArgs

    dnsName String
    originProtocolPolicy String
    originSslProtocols List<String>
    httpPort Integer
    httpsPort Integer

    DistributionLegacyS3Origin, DistributionLegacyS3OriginArgs

    DistributionLogging, DistributionLoggingArgs

    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, DistributionOriginArgs

    DistributionOriginCustomHeader, DistributionOriginCustomHeaderArgs

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

    DistributionOriginGroup, DistributionOriginGroupArgs

    DistributionOriginGroupFailoverCriteria, DistributionOriginGroupFailoverCriteriaArgs

    DistributionOriginGroupMember, DistributionOriginGroupMemberArgs

    OriginId string
    OriginId string
    originId String
    originId string
    originId String

    DistributionOriginGroupMembers, DistributionOriginGroupMembersArgs

    DistributionOriginGroups, DistributionOriginGroupsArgs

    DistributionOriginShield, DistributionOriginShieldArgs

    DistributionRestrictions, DistributionRestrictionsArgs

    DistributionS3OriginConfig, DistributionS3OriginConfigArgs

    DistributionStatusCodes, DistributionStatusCodesArgs

    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, DistributionTagArgs

    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, DistributionViewerCertificateArgs

    Package Details

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

    AWS Native is in preview. AWS Classic is fully supported.

    AWS Native v0.77.0 published on Wednesday, Sep 20, 2023 by Pulumi