GetDistribution
Use this data source to retrieve information about a CloudFront distribution.
Example Usage
using Pulumi;
using Aws = Pulumi.Aws;
class MyStack : Stack
{
public MyStack()
{
var test = Output.Create(Aws.CloudFront.GetDistribution.InvokeAsync(new Aws.CloudFront.GetDistributionArgs
{
Id = "EDFDVBD632BHDS5",
}));
}
}
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v2/go/aws/cloudfront"
"github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := cloudfront.LookupDistribution(ctx, &cloudfront.LookupDistributionArgs{
Id: "EDFDVBD632BHDS5",
}, nil)
if err != nil {
return err
}
return nil
})
}import pulumi
import pulumi_aws as aws
test = aws.cloudfront.get_distribution(id="EDFDVBD632BHDS5")import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const test = pulumi.output(aws.cloudfront.getDistribution({
id: "EDFDVBD632BHDS5",
}, { async: true }));Using GetDistribution
function getDistribution(args: GetDistributionArgs, opts?: InvokeOptions): Promise<GetDistributionResult>function get_distribution(id=None, tags=None, opts=None)func LookupDistribution(ctx *Context, args *LookupDistributionArgs, opts ...InvokeOption) (*LookupDistributionResult, error)Note: This function is named
LookupDistributionin the Go SDK.
public static class GetDistribution {
public static Task<GetDistributionResult> InvokeAsync(GetDistributionArgs args, InvokeOptions? opts = null)
}The following arguments are supported:
GetDistribution Result
The following output properties are available:
- 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.
- Domain
Name string The domain name corresponding to the distribution. For example:
d604721fxaaqy9.cloudfront.net.- Enabled bool
- Etag string
The current version of the distribution’s information. For example:
E2QWRUHAPOMQZL.- Hosted
Zone stringId 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.- Id string
The identifier for the distribution. For example:
EDFDVBD632BHDS5.- In
Progress intValidation Batches The number of invalidation batches currently in progress.
- Last
Modified stringTime The date and time the distribution was last modified.
- Status string
The current status of the distribution.
Deployedif the distribution’s information is fully propagated throughout the Amazon CloudFront system.- Dictionary<string, string>
- 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.
- Domain
Name string The domain name corresponding to the distribution. For example:
d604721fxaaqy9.cloudfront.net.- Enabled bool
- Etag string
The current version of the distribution’s information. For example:
E2QWRUHAPOMQZL.- Hosted
Zone stringId 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.- Id string
The identifier for the distribution. For example:
EDFDVBD632BHDS5.- In
Progress intValidation Batches The number of invalidation batches currently in progress.
- Last
Modified stringTime The date and time the distribution was last modified.
- Status string
The current status of the distribution.
Deployedif the distribution’s information is fully propagated throughout the Amazon CloudFront system.- map[string]string
- 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.
- domain
Name string The domain name corresponding to the distribution. For example:
d604721fxaaqy9.cloudfront.net.- enabled boolean
- etag string
The current version of the distribution’s information. For example:
E2QWRUHAPOMQZL.- hosted
Zone stringId 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.- id string
The identifier for the distribution. For example:
EDFDVBD632BHDS5.- in
Progress numberValidation Batches The number of invalidation batches currently in progress.
- last
Modified stringTime The date and time the distribution was last modified.
- status string
The current status of the distribution.
Deployedif the distribution’s information is fully propagated throughout the Amazon CloudFront system.- {[key: string]: string}
- arn str
The ARN (Amazon Resource Name) for the distribution. For example: arn:aws:cloudfront::123456789012:distribution/EDFDVBD632BHDS5, where 123456789012 is your AWS account ID.
- domain_
name str The domain name corresponding to the distribution. For example:
d604721fxaaqy9.cloudfront.net.- enabled bool
- etag str
The current version of the distribution’s information. For example:
E2QWRUHAPOMQZL.- hosted_
zone_ strid 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.- id str
The identifier for the distribution. For example:
EDFDVBD632BHDS5.- in_
progress_ floatvalidation_ batches The number of invalidation batches currently in progress.
- last_
modified_ strtime The date and time the distribution was last modified.
- status str
The current status of the distribution.
Deployedif the distribution’s information is fully propagated throughout the Amazon CloudFront system.- Dict[str, str]
Package Details
- Repository
- https://github.com/pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
awsTerraform Provider.