import * as pulumi from "@pulumi/pulumi"; /** * Deploys a specific Apigee API Proxy revision to a given Apigee environment. * * To get more information about EnvironmentApiRevisionDeployment, see: * * * [API documentation](https://cloud.google.com/apigee/docs/reference/apis/apigee/rest/v1/organizations.environments.apis.revisions.deployments/deploy) * * How-to Guides * * [Deploying an API proxy](https://cloud.google.com/apigee/docs/api-platform/deploy/ui-deploy-new#apigee-api) * * ## Example Usage * * ### Apigee Environment Api Revision Deployment Basic * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as gcp from "@pulumi/gcp"; * * const proxyDeploymentBasic = new gcp.apigee.EnvironmentApiRevisionDeployment("proxy_deployment_basic", { * orgId: "my-org", * environment: "dev", * api: "hello-proxy", * revision: 1, * override: true, * sequencedRollout: true, * }); * ``` * * ## Import * * EnvironmentApiRevisionDeployment can be imported using any of these accepted formats: * * * `organizations/{{org_id}}/environments/{{environment}}/apis/{{api}}/revisions/{{revision}}` * * * `{{org_id}}/{{environment}}/{{api}}/{{revision}}` * * * `{{id}}` * * When using the `pulumi import` command, EnvironmentApiRevisionDeployment can be imported using one of the formats above. For example: * * ```sh * $ pulumi import gcp:apigee/environmentApiRevisionDeployment:EnvironmentApiRevisionDeployment default organizations/{{org_id}}/environments/{{environment}}/apis/{{api}}/revisions/{{revision}} * ``` * * ```sh * $ pulumi import gcp:apigee/environmentApiRevisionDeployment:EnvironmentApiRevisionDeployment default {{org_id}}/{{environment}}/{{api}}/{{revision}} * ``` * * ```sh * $ pulumi import gcp:apigee/environmentApiRevisionDeployment:EnvironmentApiRevisionDeployment default {{id}} * ``` */ export declare class EnvironmentApiRevisionDeployment extends pulumi.CustomResource { /** * Get an existing EnvironmentApiRevisionDeployment 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 state Any extra arguments used during the lookup. * @param opts Optional settings to control the behavior of the CustomResource. */ static get(name: string, id: pulumi.Input, state?: EnvironmentApiRevisionDeploymentState, opts?: pulumi.CustomResourceOptions): EnvironmentApiRevisionDeployment; /** * Returns true if the given object is an instance of EnvironmentApiRevisionDeployment. 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 EnvironmentApiRevisionDeployment; /** * Apigee API proxy name. */ readonly api: pulumi.Output; /** * Basepaths associated with the deployed proxy. */ readonly basepaths: pulumi.Output; /** * RFC3339 timestamp when deployment started. */ readonly deployStartTime: pulumi.Output; /** * Apigee environment name. */ readonly environment: pulumi.Output; /** * Apigee organization ID. */ readonly orgId: pulumi.Output; /** * If true, replaces other deployed revisions of this proxy in the environment. */ readonly override: pulumi.Output; /** * API proxy revision number to deploy. */ readonly revision: pulumi.Output; /** * If true, enables sequenced rollout for safe traffic switching. */ readonly sequencedRollout: pulumi.Output; /** * Optional service account the deployed proxy runs as. */ readonly serviceAccount: pulumi.Output; /** * Deployment state reported by Apigee. */ readonly state: pulumi.Output; /** * Create a EnvironmentApiRevisionDeployment 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: EnvironmentApiRevisionDeploymentArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering EnvironmentApiRevisionDeployment resources. */ export interface EnvironmentApiRevisionDeploymentState { /** * Apigee API proxy name. */ api?: pulumi.Input; /** * Basepaths associated with the deployed proxy. */ basepaths?: pulumi.Input[]>; /** * RFC3339 timestamp when deployment started. */ deployStartTime?: pulumi.Input; /** * Apigee environment name. */ environment?: pulumi.Input; /** * Apigee organization ID. */ orgId?: pulumi.Input; /** * If true, replaces other deployed revisions of this proxy in the environment. */ override?: pulumi.Input; /** * API proxy revision number to deploy. */ revision?: pulumi.Input; /** * If true, enables sequenced rollout for safe traffic switching. */ sequencedRollout?: pulumi.Input; /** * Optional service account the deployed proxy runs as. */ serviceAccount?: pulumi.Input; /** * Deployment state reported by Apigee. */ state?: pulumi.Input; } /** * The set of arguments for constructing a EnvironmentApiRevisionDeployment resource. */ export interface EnvironmentApiRevisionDeploymentArgs { /** * Apigee API proxy name. */ api: pulumi.Input; /** * Apigee environment name. */ environment: pulumi.Input; /** * Apigee organization ID. */ orgId: pulumi.Input; /** * If true, replaces other deployed revisions of this proxy in the environment. */ override?: pulumi.Input; /** * API proxy revision number to deploy. */ revision: pulumi.Input; /** * If true, enables sequenced rollout for safe traffic switching. */ sequencedRollout?: pulumi.Input; /** * Optional service account the deployed proxy runs as. */ serviceAccount?: pulumi.Input; }