UNPKG

@pulumi/aws

Version:

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

77 lines (76 loc) 2.37 kB
import * as pulumi from "@pulumi/pulumi"; /** * Data source for managing an AWS VPC Lattice Resource Policy. * * ## Example Usage * * ### Basic Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as aws from "@pulumi/aws"; * * const example = aws.vpclattice.getResourcePolicy({ * resourceArn: exampleAwsVpclatticeServiceNetwork.arn, * }); * ``` */ export declare function getResourcePolicy(args: GetResourcePolicyArgs, opts?: pulumi.InvokeOptions): Promise<GetResourcePolicyResult>; /** * A collection of arguments for invoking getResourcePolicy. */ export interface GetResourcePolicyArgs { /** * 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; /** * Resource ARN of the resource for which a policy is retrieved. */ resourceArn: string; } /** * A collection of values returned by getResourcePolicy. */ export interface GetResourcePolicyResult { /** * The provider-assigned unique ID for this managed resource. */ readonly id: string; /** * JSON-encoded string representation of the applied resource policy. */ readonly policy: string; readonly region: string; readonly resourceArn: string; } /** * Data source for managing an AWS VPC Lattice Resource Policy. * * ## Example Usage * * ### Basic Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as aws from "@pulumi/aws"; * * const example = aws.vpclattice.getResourcePolicy({ * resourceArn: exampleAwsVpclatticeServiceNetwork.arn, * }); * ``` */ export declare function getResourcePolicyOutput(args: GetResourcePolicyOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetResourcePolicyResult>; /** * A collection of arguments for invoking getResourcePolicy. */ export interface GetResourcePolicyOutputArgs { /** * 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>; /** * Resource ARN of the resource for which a policy is retrieved. */ resourceArn: pulumi.Input<string>; }