UNPKG

@pulumi/gcp

Version:

A Pulumi package for creating and managing Google Cloud Platform resources.

154 lines (153 loc) 5.59 kB
import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; /** * A NetworkSettings resource is a container for ingress settings for a version or service. * * To get more information about ServiceNetworkSettings, see: * * * [API documentation](https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services) * * ## Example Usage * * ### App Engine Service Network Settings * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as gcp from "@pulumi/gcp"; * * const bucket = new gcp.storage.Bucket("bucket", { * name: "appengine-static-content", * location: "US", * }); * const object = new gcp.storage.BucketObject("object", { * name: "hello-world.zip", * bucket: bucket.name, * source: new pulumi.asset.FileAsset("./test-fixtures/hello-world.zip"), * }); * const internalapp = new gcp.appengine.StandardAppVersion("internalapp", { * versionId: "v1", * service: "internalapp", * deleteServiceOnDestroy: true, * runtime: "nodejs20", * entrypoint: { * shell: "node ./app.js", * }, * deployment: { * zip: { * sourceUrl: pulumi.interpolate`https://storage.googleapis.com/${bucket.name}/${object.name}`, * }, * }, * envVariables: { * port: "8080", * }, * }); * const internalappServiceNetworkSettings = new gcp.appengine.ServiceNetworkSettings("internalapp", { * service: internalapp.service, * networkSettings: { * ingressTrafficAllowed: "INGRESS_TRAFFIC_ALLOWED_INTERNAL_ONLY", * }, * }); * ``` * * ## Import * * ServiceNetworkSettings can be imported using any of these accepted formats: * * * `apps/{{project}}/services/{{service}}` * * * `{{project}}/{{service}}` * * * `{{service}}` * * When using the `pulumi import` command, ServiceNetworkSettings can be imported using one of the formats above. For example: * * ```sh * $ pulumi import gcp:appengine/serviceNetworkSettings:ServiceNetworkSettings default apps/{{project}}/services/{{service}} * ``` * * ```sh * $ pulumi import gcp:appengine/serviceNetworkSettings:ServiceNetworkSettings default {{project}}/{{service}} * ``` * * ```sh * $ pulumi import gcp:appengine/serviceNetworkSettings:ServiceNetworkSettings default {{service}} * ``` */ export declare class ServiceNetworkSettings extends pulumi.CustomResource { /** * Get an existing ServiceNetworkSettings 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<pulumi.ID>, state?: ServiceNetworkSettingsState, opts?: pulumi.CustomResourceOptions): ServiceNetworkSettings; /** * Returns true if the given object is an instance of ServiceNetworkSettings. 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 ServiceNetworkSettings; /** * Ingress settings for this service. Will apply to all versions. * Structure is documented below. */ readonly networkSettings: pulumi.Output<outputs.appengine.ServiceNetworkSettingsNetworkSettings>; /** * The ID of the project in which the resource belongs. * If it is not provided, the provider project is used. */ readonly project: pulumi.Output<string>; /** * The name of the service these settings apply to. */ readonly service: pulumi.Output<string>; /** * Create a ServiceNetworkSettings 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: ServiceNetworkSettingsArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering ServiceNetworkSettings resources. */ export interface ServiceNetworkSettingsState { /** * Ingress settings for this service. Will apply to all versions. * Structure is documented below. */ networkSettings?: pulumi.Input<inputs.appengine.ServiceNetworkSettingsNetworkSettings>; /** * The ID of the project in which the resource belongs. * If it is not provided, the provider project is used. */ project?: pulumi.Input<string>; /** * The name of the service these settings apply to. */ service?: pulumi.Input<string>; } /** * The set of arguments for constructing a ServiceNetworkSettings resource. */ export interface ServiceNetworkSettingsArgs { /** * Ingress settings for this service. Will apply to all versions. * Structure is documented below. */ networkSettings: pulumi.Input<inputs.appengine.ServiceNetworkSettingsNetworkSettings>; /** * The ID of the project in which the resource belongs. * If it is not provided, the provider project is used. */ project?: pulumi.Input<string>; /** * The name of the service these settings apply to. */ service: pulumi.Input<string>; }