import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../../types/input"; import * as outputs from "../../types/output"; import * as enums from "../../types/enums"; /** * Creates a new AuthorizationPolicy in a given project and location. */ export declare class AuthorizationPolicy extends pulumi.CustomResource { /** * Get an existing AuthorizationPolicy resource's state with the given name, ID, and optional extra * properties used to qualify the lookup. * * @param name The _unique_ name of the resulting resource. * @param id The _unique_ provider ID of the resource to lookup. * @param opts Optional settings to control the behavior of the CustomResource. */ static get(name: string, id: pulumi.Input, opts?: pulumi.CustomResourceOptions): AuthorizationPolicy; /** * Returns true if the given object is an instance of AuthorizationPolicy. This is designed to work even * when multiple copies of the Pulumi SDK have been loaded into the same process. */ static isInstance(obj: any): obj is AuthorizationPolicy; /** * The action to take when a rule match is found. Possible values are "ALLOW" or "DENY". */ readonly action: pulumi.Output; /** * Required. Short name of the AuthorizationPolicy resource to be created. This value should be 1-63 characters long, containing only letters, numbers, hyphens, and underscores, and should not start with a number. E.g. "authz_policy". */ readonly authorizationPolicyId: pulumi.Output; /** * The timestamp when the resource was created. */ readonly createTime: pulumi.Output; /** * Optional. Free-text description of the resource. */ readonly description: pulumi.Output; /** * Optional. Set of label tags associated with the AuthorizationPolicy resource. */ readonly labels: pulumi.Output<{ [key: string]: string; }>; readonly location: pulumi.Output; /** * Name of the AuthorizationPolicy resource. It matches pattern `projects/{project}/locations/{location}/authorizationPolicies/`. */ readonly name: pulumi.Output; readonly project: pulumi.Output; /** * Optional. List of rules to match. Note that at least one of the rules must match in order for the action specified in the 'action' field to be taken. A rule is a match if there is a matching source and destination. If left blank, the action specified in the `action` field will be applied on every request. */ readonly rules: pulumi.Output; /** * The timestamp when the resource was updated. */ readonly updateTime: pulumi.Output; /** * Create a AuthorizationPolicy resource with the given unique name, arguments, and options. * * @param name The _unique_ name of the resource. * @param args The arguments to use to populate this resource's properties. * @param opts A bag of options that control this resource's behavior. */ constructor(name: string, args: AuthorizationPolicyArgs, opts?: pulumi.CustomResourceOptions); } /** * The set of arguments for constructing a AuthorizationPolicy resource. */ export interface AuthorizationPolicyArgs { /** * The action to take when a rule match is found. Possible values are "ALLOW" or "DENY". */ action: pulumi.Input; /** * Required. Short name of the AuthorizationPolicy resource to be created. This value should be 1-63 characters long, containing only letters, numbers, hyphens, and underscores, and should not start with a number. E.g. "authz_policy". */ authorizationPolicyId: pulumi.Input; /** * Optional. Free-text description of the resource. */ description?: pulumi.Input; /** * Optional. Set of label tags associated with the AuthorizationPolicy resource. */ labels?: pulumi.Input<{ [key: string]: pulumi.Input; }>; location?: pulumi.Input; /** * Name of the AuthorizationPolicy resource. It matches pattern `projects/{project}/locations/{location}/authorizationPolicies/`. */ name?: pulumi.Input; project?: pulumi.Input; /** * Optional. List of rules to match. Note that at least one of the rules must match in order for the action specified in the 'action' field to be taken. A rule is a match if there is a matching source and destination. If left blank, the action specified in the `action` field will be applied on every request. */ rules?: pulumi.Input[]>; }