UNPKG

@pulumi/aws

Version:

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

73 lines (72 loc) 2.27 kB
import * as pulumi from "@pulumi/pulumi"; /** * Retrieve information about a Network Firewall resource policy. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as aws from "@pulumi/aws"; * * const example = aws.networkfirewall.getResourcePolicy({ * resourceArn: resourcePolicyArn, * }); * ``` */ 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; /** * The Amazon Resource Name (ARN) that identifies the resource policy. */ resourceArn: string; } /** * A collection of values returned by getResourcePolicy. */ export interface GetResourcePolicyResult { /** * The provider-assigned unique ID for this managed resource. */ readonly id: string; /** * The [policy][1] for the resource. */ readonly policy: string; readonly region: string; readonly resourceArn: string; } /** * Retrieve information about a Network Firewall resource policy. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as aws from "@pulumi/aws"; * * const example = aws.networkfirewall.getResourcePolicy({ * resourceArn: resourcePolicyArn, * }); * ``` */ 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>; /** * The Amazon Resource Name (ARN) that identifies the resource policy. */ resourceArn: pulumi.Input<string>; }