aws-native logo
AWS Native v0.54.0, Mar 21 23

aws-native.cloudfront.getDistribution

Resource Type definition for AWS::CloudFront::Distribution

Using getDistribution

Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

function getDistribution(args: GetDistributionArgs, opts?: InvokeOptions): Promise<GetDistributionResult>
function getDistributionOutput(args: GetDistributionOutputArgs, opts?: InvokeOptions): Output<GetDistributionResult>
def get_distribution(id: Optional[str] = None,
                     opts: Optional[InvokeOptions] = None) -> GetDistributionResult
def get_distribution_output(id: Optional[pulumi.Input[str]] = None,
                     opts: Optional[InvokeOptions] = None) -> Output[GetDistributionResult]
func LookupDistribution(ctx *Context, args *LookupDistributionArgs, opts ...InvokeOption) (*LookupDistributionResult, error)
func LookupDistributionOutput(ctx *Context, args *LookupDistributionOutputArgs, opts ...InvokeOption) LookupDistributionResultOutput

> Note: This function is named LookupDistribution in the Go SDK.

public static class GetDistribution 
{
    public static Task<GetDistributionResult> InvokeAsync(GetDistributionArgs args, InvokeOptions? opts = null)
    public static Output<GetDistributionResult> Invoke(GetDistributionInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetDistributionResult> getDistribution(GetDistributionArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
  function: aws-native:cloudfront:getDistribution
  arguments:
    # arguments dictionary

The following arguments are supported:

Id string
Id string
id String
id string
id str
id String

getDistribution Result

The following output properties are available:

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