import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../../types/input"; import * as outputs from "../../types/output"; /** * Creates a platform policy, and returns a copy of it. Returns `NOT_FOUND` if the project or platform doesn't exist, `INVALID_ARGUMENT` if the request is malformed, `ALREADY_EXISTS` if the policy already exists, and `INVALID_ARGUMENT` if the policy contains a platform-specific policy that does not match the platform value specified in the URL. * Auto-naming is currently not supported for this resource. */ export declare class Policy extends pulumi.CustomResource { /** * Get an existing Policy 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): Policy; /** * Returns true if the given object is an instance of Policy. 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 Policy; /** * Optional. A description comment about the policy. */ readonly description: pulumi.Output; /** * Optional. GKE platform-specific policy. */ readonly gkePolicy: pulumi.Output; /** * The relative resource name of the Binary Authorization platform policy, in the form of `projects/*/platforms/*/policies/*`. */ readonly name: pulumi.Output; readonly platformId: pulumi.Output; /** * Required. The platform policy ID. */ readonly policyId: pulumi.Output; readonly project: pulumi.Output; /** * Time when the policy was last updated. */ readonly updateTime: pulumi.Output; /** * Create a Policy 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: PolicyArgs, opts?: pulumi.CustomResourceOptions); } /** * The set of arguments for constructing a Policy resource. */ export interface PolicyArgs { /** * Optional. A description comment about the policy. */ description?: pulumi.Input; /** * Optional. GKE platform-specific policy. */ gkePolicy?: pulumi.Input; platformId: pulumi.Input; /** * Required. The platform policy ID. */ policyId: pulumi.Input; project?: pulumi.Input; }