UNPKG

@pulumi/aws

Version:

A Pulumi package for creating and managing Amazon Web Services (AWS) cloud resources.

89 lines (88 loc) 2.74 kB
import * as pulumi from "@pulumi/pulumi"; /** * Provides details about a Lake Formation resource. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as aws from "@pulumi/aws"; * * const example = aws.lakeformation.getResource({ * arn: "arn:aws:s3:::tf-acc-test-9151654063908211878", * }); * ``` */ export declare function getResource(args: GetResourceArgs, opts?: pulumi.InvokeOptions): Promise<GetResourceResult>; /** * A collection of arguments for invoking getResource. */ export interface GetResourceArgs { /** * ARN of the resource, an S3 path. */ arn: string; /** * Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration. */ region?: string; } /** * A collection of values returned by getResource. */ export interface GetResourceResult { readonly arn: string; /** * Flag to enable AWS LakeFormation hybrid access permission mode. */ readonly hybridAccessEnabled: boolean; /** * The provider-assigned unique ID for this managed resource. */ readonly id: string; /** * Date and time the resource was last modified in [RFC 3339 format](https://tools.ietf.org/html/rfc3339#section-5.8). */ readonly lastModified: string; readonly region: string; /** * Role that the resource was registered with. */ readonly roleArn: string; /** * Whether the resource is a federated resource. */ readonly withFederation: boolean; /** * Boolean to grant the calling principal the permissions to perform all supported Lake Formation operations on the registered data location. */ readonly withPrivilegedAccess: boolean; } /** * Provides details about a Lake Formation resource. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as aws from "@pulumi/aws"; * * const example = aws.lakeformation.getResource({ * arn: "arn:aws:s3:::tf-acc-test-9151654063908211878", * }); * ``` */ export declare function getResourceOutput(args: GetResourceOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetResourceResult>; /** * A collection of arguments for invoking getResource. */ export interface GetResourceOutputArgs { /** * ARN of the resource, an S3 path. */ arn: pulumi.Input<string>; /** * Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration. */ region?: pulumi.Input<string>; }