@pulumi/aws
Version:
A Pulumi package for creating and managing Amazon Web Services (AWS) cloud resources.
95 lines (94 loc) • 2.97 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
/**
* Use this data source to retrieve information for an Amazon CloudFront origin access identity.
*
* ## Example Usage
*
* The following example below creates a CloudFront origin access identity.
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as aws from "@pulumi/aws";
*
* const example = aws.cloudfront.getOriginAccessIdentity({
* id: "E1ZAKK699EOLAL",
* });
* ```
*/
export declare function getOriginAccessIdentity(args: GetOriginAccessIdentityArgs, opts?: pulumi.InvokeOptions): Promise<GetOriginAccessIdentityResult>;
/**
* A collection of arguments for invoking getOriginAccessIdentity.
*/
export interface GetOriginAccessIdentityArgs {
/**
* The identifier for the origin access identity. For example: `E1ZAKK699EOLAL`.
*/
id: string;
}
/**
* A collection of values returned by getOriginAccessIdentity.
*/
export interface GetOriginAccessIdentityResult {
/**
* The origin access identity ARN.
*/
readonly arn: string;
/**
* Internal value used by CloudFront to allow future
* updates to the origin access identity.
*/
readonly callerReference: string;
/**
* A shortcut to the full path for the
* origin access identity to use in CloudFront, see below.
*/
readonly cloudfrontAccessIdentityPath: string;
/**
* An optional comment for the origin access identity.
*/
readonly comment: string;
/**
* Current version of the origin access identity's information.
* For example: `E2QWRUHAPOMQZL`.
*/
readonly etag: string;
/**
* Pre-generated ARN for use in S3 bucket policies (see below).
* Example: `arn:aws:iam::cloudfront:user/CloudFront Origin Access Identity
* E2QWRUHAPOMQZL`.
*/
readonly iamArn: string;
readonly id: 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.
*/
readonly s3CanonicalUserId: string;
}
/**
* Use this data source to retrieve information for an Amazon CloudFront origin access identity.
*
* ## Example Usage
*
* The following example below creates a CloudFront origin access identity.
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as aws from "@pulumi/aws";
*
* const example = aws.cloudfront.getOriginAccessIdentity({
* id: "E1ZAKK699EOLAL",
* });
* ```
*/
export declare function getOriginAccessIdentityOutput(args: GetOriginAccessIdentityOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetOriginAccessIdentityResult>;
/**
* A collection of arguments for invoking getOriginAccessIdentity.
*/
export interface GetOriginAccessIdentityOutputArgs {
/**
* The identifier for the origin access identity. For example: `E1ZAKK699EOLAL`.
*/
id: pulumi.Input<string>;
}