UNPKG

@pulumi/aws-native

Version:

The Pulumi AWS Cloud Control Provider enables you to build, deploy, and manage [any AWS resource that's supported by the AWS Cloud Control API](https://github.com/pulumi/pulumi-aws-native/blob/master/provider/cmd/pulumi-gen-aws-native/supported-types.txt)

37 lines (36 loc) 2.3 kB
import * as pulumi from "@pulumi/pulumi"; import * as outputs from "../types/output"; /** * Creates a new origin access control in CloudFront. After you create an origin access control, you can add it to an origin in a CloudFront distribution so that CloudFront sends authenticated (signed) requests to the origin. * This makes it possible to block public access to the origin, allowing viewers (users) to access the origin's content only through CloudFront. * For more information about using a CloudFront origin access control, see [Restricting access to an origin](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/private-content-restricting-access-to-origin.html) in the *Amazon CloudFront Developer Guide*. */ export declare function getOriginAccessControl(args: GetOriginAccessControlArgs, opts?: pulumi.InvokeOptions): Promise<GetOriginAccessControlResult>; export interface GetOriginAccessControlArgs { /** * The unique identifier of the origin access control. */ id: string; } export interface GetOriginAccessControlResult { /** * The unique identifier of the origin access control. */ readonly id?: string; /** * The origin access control. */ readonly originAccessControlConfig?: outputs.cloudfront.OriginAccessControlConfig; } /** * Creates a new origin access control in CloudFront. After you create an origin access control, you can add it to an origin in a CloudFront distribution so that CloudFront sends authenticated (signed) requests to the origin. * This makes it possible to block public access to the origin, allowing viewers (users) to access the origin's content only through CloudFront. * For more information about using a CloudFront origin access control, see [Restricting access to an origin](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/private-content-restricting-access-to-origin.html) in the *Amazon CloudFront Developer Guide*. */ export declare function getOriginAccessControlOutput(args: GetOriginAccessControlOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetOriginAccessControlResult>; export interface GetOriginAccessControlOutputArgs { /** * The unique identifier of the origin access control. */ id: pulumi.Input<string>; }