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)

35 lines (34 loc) 1.52 kB
import * as pulumi from "@pulumi/pulumi"; import * as enums from "../types/enums"; /** * Creates or updates the auth policy. */ export declare function getAuthPolicy(args: GetAuthPolicyArgs, opts?: pulumi.InvokeOptions): Promise<GetAuthPolicyResult>; export interface GetAuthPolicyArgs { /** * The ID or ARN of the service network or service for which the policy is created. */ resourceIdentifier: string; } export interface GetAuthPolicyResult { /** * The auth policy. * * Search the [CloudFormation User Guide](https://docs.aws.amazon.com/cloudformation/) for `AWS::VpcLattice::AuthPolicy` for more information about the expected schema for this property. */ readonly policy?: any; /** * 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?: enums.vpclattice.AuthPolicyState; } /** * Creates or updates the auth policy. */ export declare function getAuthPolicyOutput(args: GetAuthPolicyOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetAuthPolicyResult>; export interface GetAuthPolicyOutputArgs { /** * The ID or ARN of the service network or service for which the policy is created. */ resourceIdentifier: pulumi.Input<string>; }