UNPKG

@pulumi/aws

Version:

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

97 lines (96 loc) 3.81 kB
import * as pulumi from "@pulumi/pulumi"; /** * Data source for managing an AWS VPC Lattice Auth Policy. * * ## Example Usage * * ### Basic Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as aws from "@pulumi/aws"; * * const test = aws.vpclattice.getAuthPolicy({ * resourceIdentifier: testAwsVpclatticeAuthPolicy.resourceIdentifier, * }); * ``` */ export declare function getAuthPolicy(args: GetAuthPolicyArgs, opts?: pulumi.InvokeOptions): Promise<GetAuthPolicyResult>; /** * A collection of arguments for invoking getAuthPolicy. */ export interface GetAuthPolicyArgs { /** * The auth policy. The policy string in JSON must not contain newlines or blank lines. */ policy?: 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; /** * The ID or Amazon Resource Name (ARN) of the service network or service for which the policy is created. */ resourceIdentifier: string; /** * The state of the auth policy. The auth policy is only active when the auth type is set to AWS_IAM. If you provide a policy, then authentication and authorization decisions are made based on this policy and the client's IAM policy. If the Auth type is NONE, then, any auth policy you provide will remain inactive. */ state?: string; } /** * A collection of values returned by getAuthPolicy. */ export interface GetAuthPolicyResult { /** * The provider-assigned unique ID for this managed resource. */ readonly id: string; /** * The auth policy. The policy string in JSON must not contain newlines or blank lines. */ readonly policy?: string; readonly region: string; readonly resourceIdentifier: string; /** * The state of the auth policy. The auth policy is only active when the auth type is set to AWS_IAM. If you provide a policy, then authentication and authorization decisions are made based on this policy and the client's IAM policy. If the Auth type is NONE, then, any auth policy you provide will remain inactive. */ readonly state?: string; } /** * Data source for managing an AWS VPC Lattice Auth Policy. * * ## Example Usage * * ### Basic Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as aws from "@pulumi/aws"; * * const test = aws.vpclattice.getAuthPolicy({ * resourceIdentifier: testAwsVpclatticeAuthPolicy.resourceIdentifier, * }); * ``` */ export declare function getAuthPolicyOutput(args: GetAuthPolicyOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetAuthPolicyResult>; /** * A collection of arguments for invoking getAuthPolicy. */ export interface GetAuthPolicyOutputArgs { /** * The auth policy. The policy string in JSON must not contain newlines or blank lines. */ policy?: 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>; /** * The ID or Amazon Resource Name (ARN) of the service network or service for which the policy is created. */ resourceIdentifier: pulumi.Input<string>; /** * The state of the auth policy. The auth policy is only active when the auth type is set to AWS_IAM. If you provide a policy, then authentication and authorization decisions are made based on this policy and the client's IAM policy. If the Auth type is NONE, then, any auth policy you provide will remain inactive. */ state?: pulumi.Input<string>; }