gcp.appengine.Application
Explore with Pulumi AI
Import
Applications can be imported using the ID of the project the application belongs to, e.g.
$ pulumi import gcp:appengine/application:Application app your-project-id
Example Usage
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Gcp = Pulumi.Gcp;
return await Deployment.RunAsync(() =>
{
var myProject = new Gcp.Organizations.Project("myProject", new()
{
ProjectId = "your-project-id",
OrgId = "1234567",
});
var app = new Gcp.AppEngine.Application("app", new()
{
Project = myProject.ProjectId,
LocationId = "us-central",
});
});
package main
import (
"github.com/pulumi/pulumi-gcp/sdk/v6/go/gcp/appengine"
"github.com/pulumi/pulumi-gcp/sdk/v6/go/gcp/organizations"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
myProject, err := organizations.NewProject(ctx, "myProject", &organizations.ProjectArgs{
ProjectId: pulumi.String("your-project-id"),
OrgId: pulumi.String("1234567"),
})
if err != nil {
return err
}
_, err = appengine.NewApplication(ctx, "app", &appengine.ApplicationArgs{
Project: myProject.ProjectId,
LocationId: pulumi.String("us-central"),
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcp.organizations.Project;
import com.pulumi.gcp.organizations.ProjectArgs;
import com.pulumi.gcp.appengine.Application;
import com.pulumi.gcp.appengine.ApplicationArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var myProject = new Project("myProject", ProjectArgs.builder()
.projectId("your-project-id")
.orgId("1234567")
.build());
var app = new Application("app", ApplicationArgs.builder()
.project(myProject.projectId())
.locationId("us-central")
.build());
}
}
import pulumi
import pulumi_gcp as gcp
my_project = gcp.organizations.Project("myProject",
project_id="your-project-id",
org_id="1234567")
app = gcp.appengine.Application("app",
project=my_project.project_id,
location_id="us-central")
import * as pulumi from "@pulumi/pulumi";
import * as gcp from "@pulumi/gcp";
const myProject = new gcp.organizations.Project("myProject", {
projectId: "your-project-id",
orgId: "1234567",
});
const app = new gcp.appengine.Application("app", {
project: myProject.projectId,
locationId: "us-central",
});
resources:
myProject:
type: gcp:organizations:Project
properties:
projectId: your-project-id
orgId: '1234567'
app:
type: gcp:appengine:Application
properties:
project: ${myProject.projectId}
locationId: us-central
Create Application Resource
new Application(name: string, args: ApplicationArgs, opts?: CustomResourceOptions);
@overload
def Application(resource_name: str,
opts: Optional[ResourceOptions] = None,
auth_domain: Optional[str] = None,
database_type: Optional[str] = None,
feature_settings: Optional[ApplicationFeatureSettingsArgs] = None,
iap: Optional[ApplicationIapArgs] = None,
location_id: Optional[str] = None,
project: Optional[str] = None,
serving_status: Optional[str] = None)
@overload
def Application(resource_name: str,
args: ApplicationArgs,
opts: Optional[ResourceOptions] = None)
func NewApplication(ctx *Context, name string, args ApplicationArgs, opts ...ResourceOption) (*Application, error)
public Application(string name, ApplicationArgs args, CustomResourceOptions? opts = null)
public Application(String name, ApplicationArgs args)
public Application(String name, ApplicationArgs args, CustomResourceOptions options)
type: gcp:appengine:Application
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ApplicationArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args ApplicationArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args ApplicationArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ApplicationArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ApplicationArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Application Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The Application resource accepts the following input properties:
- Location
Id string The location to serve the app from.
- Auth
Domain string The domain to authenticate users with when using App Engine's User API.
- Database
Type string - Feature
Settings ApplicationFeature Settings Args A block of optional settings to configure specific App Engine features:
- Iap
Application
Iap Args Settings for enabling Cloud Identity Aware Proxy
- Project string
The project ID to create the application under. ~>NOTE: GCP only accepts project ID, not project number. If you are using number, you may get a "Permission denied" error.
- Serving
Status string The serving status of the app.
- Location
Id string The location to serve the app from.
- Auth
Domain string The domain to authenticate users with when using App Engine's User API.
- Database
Type string - Feature
Settings ApplicationFeature Settings Args A block of optional settings to configure specific App Engine features:
- Iap
Application
Iap Args Settings for enabling Cloud Identity Aware Proxy
- Project string
The project ID to create the application under. ~>NOTE: GCP only accepts project ID, not project number. If you are using number, you may get a "Permission denied" error.
- Serving
Status string The serving status of the app.
- location
Id String The location to serve the app from.
- auth
Domain String The domain to authenticate users with when using App Engine's User API.
- database
Type String - feature
Settings ApplicationFeature Settings Args A block of optional settings to configure specific App Engine features:
- iap
Application
Iap Args Settings for enabling Cloud Identity Aware Proxy
- project String
The project ID to create the application under. ~>NOTE: GCP only accepts project ID, not project number. If you are using number, you may get a "Permission denied" error.
- serving
Status String The serving status of the app.
- location
Id string The location to serve the app from.
- auth
Domain string The domain to authenticate users with when using App Engine's User API.
- database
Type string - feature
Settings ApplicationFeature Settings Args A block of optional settings to configure specific App Engine features:
- iap
Application
Iap Args Settings for enabling Cloud Identity Aware Proxy
- project string
The project ID to create the application under. ~>NOTE: GCP only accepts project ID, not project number. If you are using number, you may get a "Permission denied" error.
- serving
Status string The serving status of the app.
- location_
id str The location to serve the app from.
- auth_
domain str The domain to authenticate users with when using App Engine's User API.
- database_
type str - feature_
settings ApplicationFeature Settings Args A block of optional settings to configure specific App Engine features:
- iap
Application
Iap Args Settings for enabling Cloud Identity Aware Proxy
- project str
The project ID to create the application under. ~>NOTE: GCP only accepts project ID, not project number. If you are using number, you may get a "Permission denied" error.
- serving_
status str The serving status of the app.
- location
Id String The location to serve the app from.
- auth
Domain String The domain to authenticate users with when using App Engine's User API.
- database
Type String - feature
Settings Property Map A block of optional settings to configure specific App Engine features:
- iap Property Map
Settings for enabling Cloud Identity Aware Proxy
- project String
The project ID to create the application under. ~>NOTE: GCP only accepts project ID, not project number. If you are using number, you may get a "Permission denied" error.
- serving
Status String The serving status of the app.
Outputs
All input properties are implicitly available as output properties. Additionally, the Application resource produces the following output properties:
- App
Id string Identifier of the app, usually
{PROJECT_ID}
- Code
Bucket string The GCS bucket code is being stored in for this app.
- Default
Bucket string The GCS bucket content is being stored in for this app.
- Default
Hostname string The default hostname for this app.
- Gcr
Domain string The GCR domain used for storing managed Docker images for this app.
- Id string
The provider-assigned unique ID for this managed resource.
- Name string
Unique name of the app, usually
apps/{PROJECT_ID}
- Url
Dispatch List<ApplicationRules Url Dispatch Rule> A list of dispatch rule blocks. Each block has a
domain
,path
, andservice
field.
- App
Id string Identifier of the app, usually
{PROJECT_ID}
- Code
Bucket string The GCS bucket code is being stored in for this app.
- Default
Bucket string The GCS bucket content is being stored in for this app.
- Default
Hostname string The default hostname for this app.
- Gcr
Domain string The GCR domain used for storing managed Docker images for this app.
- Id string
The provider-assigned unique ID for this managed resource.
- Name string
Unique name of the app, usually
apps/{PROJECT_ID}
- Url
Dispatch []ApplicationRules Url Dispatch Rule A list of dispatch rule blocks. Each block has a
domain
,path
, andservice
field.
- app
Id String Identifier of the app, usually
{PROJECT_ID}
- code
Bucket String The GCS bucket code is being stored in for this app.
- default
Bucket String The GCS bucket content is being stored in for this app.
- default
Hostname String The default hostname for this app.
- gcr
Domain String The GCR domain used for storing managed Docker images for this app.
- id String
The provider-assigned unique ID for this managed resource.
- name String
Unique name of the app, usually
apps/{PROJECT_ID}
- url
Dispatch List<ApplicationRules Url Dispatch Rule> A list of dispatch rule blocks. Each block has a
domain
,path
, andservice
field.
- app
Id string Identifier of the app, usually
{PROJECT_ID}
- code
Bucket string The GCS bucket code is being stored in for this app.
- default
Bucket string The GCS bucket content is being stored in for this app.
- default
Hostname string The default hostname for this app.
- gcr
Domain string The GCR domain used for storing managed Docker images for this app.
- id string
The provider-assigned unique ID for this managed resource.
- name string
Unique name of the app, usually
apps/{PROJECT_ID}
- url
Dispatch ApplicationRules Url Dispatch Rule[] A list of dispatch rule blocks. Each block has a
domain
,path
, andservice
field.
- app_
id str Identifier of the app, usually
{PROJECT_ID}
- code_
bucket str The GCS bucket code is being stored in for this app.
- default_
bucket str The GCS bucket content is being stored in for this app.
- default_
hostname str The default hostname for this app.
- gcr_
domain str The GCR domain used for storing managed Docker images for this app.
- id str
The provider-assigned unique ID for this managed resource.
- name str
Unique name of the app, usually
apps/{PROJECT_ID}
- url_
dispatch_ Sequence[Applicationrules Url Dispatch Rule] A list of dispatch rule blocks. Each block has a
domain
,path
, andservice
field.
- app
Id String Identifier of the app, usually
{PROJECT_ID}
- code
Bucket String The GCS bucket code is being stored in for this app.
- default
Bucket String The GCS bucket content is being stored in for this app.
- default
Hostname String The default hostname for this app.
- gcr
Domain String The GCR domain used for storing managed Docker images for this app.
- id String
The provider-assigned unique ID for this managed resource.
- name String
Unique name of the app, usually
apps/{PROJECT_ID}
- url
Dispatch List<Property Map>Rules A list of dispatch rule blocks. Each block has a
domain
,path
, andservice
field.
Look up Existing Application Resource
Get an existing Application resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: ApplicationState, opts?: CustomResourceOptions): Application
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
app_id: Optional[str] = None,
auth_domain: Optional[str] = None,
code_bucket: Optional[str] = None,
database_type: Optional[str] = None,
default_bucket: Optional[str] = None,
default_hostname: Optional[str] = None,
feature_settings: Optional[ApplicationFeatureSettingsArgs] = None,
gcr_domain: Optional[str] = None,
iap: Optional[ApplicationIapArgs] = None,
location_id: Optional[str] = None,
name: Optional[str] = None,
project: Optional[str] = None,
serving_status: Optional[str] = None,
url_dispatch_rules: Optional[Sequence[ApplicationUrlDispatchRuleArgs]] = None) -> Application
func GetApplication(ctx *Context, name string, id IDInput, state *ApplicationState, opts ...ResourceOption) (*Application, error)
public static Application Get(string name, Input<string> id, ApplicationState? state, CustomResourceOptions? opts = null)
public static Application get(String name, Output<String> id, ApplicationState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- App
Id string Identifier of the app, usually
{PROJECT_ID}
- Auth
Domain string The domain to authenticate users with when using App Engine's User API.
- Code
Bucket string The GCS bucket code is being stored in for this app.
- Database
Type string - Default
Bucket string The GCS bucket content is being stored in for this app.
- Default
Hostname string The default hostname for this app.
- Feature
Settings ApplicationFeature Settings Args A block of optional settings to configure specific App Engine features:
- Gcr
Domain string The GCR domain used for storing managed Docker images for this app.
- Iap
Application
Iap Args Settings for enabling Cloud Identity Aware Proxy
- Location
Id string The location to serve the app from.
- Name string
Unique name of the app, usually
apps/{PROJECT_ID}
- Project string
The project ID to create the application under. ~>NOTE: GCP only accepts project ID, not project number. If you are using number, you may get a "Permission denied" error.
- Serving
Status string The serving status of the app.
- Url
Dispatch List<ApplicationRules Url Dispatch Rule Args> A list of dispatch rule blocks. Each block has a
domain
,path
, andservice
field.
- App
Id string Identifier of the app, usually
{PROJECT_ID}
- Auth
Domain string The domain to authenticate users with when using App Engine's User API.
- Code
Bucket string The GCS bucket code is being stored in for this app.
- Database
Type string - Default
Bucket string The GCS bucket content is being stored in for this app.
- Default
Hostname string The default hostname for this app.
- Feature
Settings ApplicationFeature Settings Args A block of optional settings to configure specific App Engine features:
- Gcr
Domain string The GCR domain used for storing managed Docker images for this app.
- Iap
Application
Iap Args Settings for enabling Cloud Identity Aware Proxy
- Location
Id string The location to serve the app from.
- Name string
Unique name of the app, usually
apps/{PROJECT_ID}
- Project string
The project ID to create the application under. ~>NOTE: GCP only accepts project ID, not project number. If you are using number, you may get a "Permission denied" error.
- Serving
Status string The serving status of the app.
- Url
Dispatch []ApplicationRules Url Dispatch Rule Args A list of dispatch rule blocks. Each block has a
domain
,path
, andservice
field.
- app
Id String Identifier of the app, usually
{PROJECT_ID}
- auth
Domain String The domain to authenticate users with when using App Engine's User API.
- code
Bucket String The GCS bucket code is being stored in for this app.
- database
Type String - default
Bucket String The GCS bucket content is being stored in for this app.
- default
Hostname String The default hostname for this app.
- feature
Settings ApplicationFeature Settings Args A block of optional settings to configure specific App Engine features:
- gcr
Domain String The GCR domain used for storing managed Docker images for this app.
- iap
Application
Iap Args Settings for enabling Cloud Identity Aware Proxy
- location
Id String The location to serve the app from.
- name String
Unique name of the app, usually
apps/{PROJECT_ID}
- project String
The project ID to create the application under. ~>NOTE: GCP only accepts project ID, not project number. If you are using number, you may get a "Permission denied" error.
- serving
Status String The serving status of the app.
- url
Dispatch List<ApplicationRules Url Dispatch Rule Args> A list of dispatch rule blocks. Each block has a
domain
,path
, andservice
field.
- app
Id string Identifier of the app, usually
{PROJECT_ID}
- auth
Domain string The domain to authenticate users with when using App Engine's User API.
- code
Bucket string The GCS bucket code is being stored in for this app.
- database
Type string - default
Bucket string The GCS bucket content is being stored in for this app.
- default
Hostname string The default hostname for this app.
- feature
Settings ApplicationFeature Settings Args A block of optional settings to configure specific App Engine features:
- gcr
Domain string The GCR domain used for storing managed Docker images for this app.
- iap
Application
Iap Args Settings for enabling Cloud Identity Aware Proxy
- location
Id string The location to serve the app from.
- name string
Unique name of the app, usually
apps/{PROJECT_ID}
- project string
The project ID to create the application under. ~>NOTE: GCP only accepts project ID, not project number. If you are using number, you may get a "Permission denied" error.
- serving
Status string The serving status of the app.
- url
Dispatch ApplicationRules Url Dispatch Rule Args[] A list of dispatch rule blocks. Each block has a
domain
,path
, andservice
field.
- app_
id str Identifier of the app, usually
{PROJECT_ID}
- auth_
domain str The domain to authenticate users with when using App Engine's User API.
- code_
bucket str The GCS bucket code is being stored in for this app.
- database_
type str - default_
bucket str The GCS bucket content is being stored in for this app.
- default_
hostname str The default hostname for this app.
- feature_
settings ApplicationFeature Settings Args A block of optional settings to configure specific App Engine features:
- gcr_
domain str The GCR domain used for storing managed Docker images for this app.
- iap
Application
Iap Args Settings for enabling Cloud Identity Aware Proxy
- location_
id str The location to serve the app from.
- name str
Unique name of the app, usually
apps/{PROJECT_ID}
- project str
The project ID to create the application under. ~>NOTE: GCP only accepts project ID, not project number. If you are using number, you may get a "Permission denied" error.
- serving_
status str The serving status of the app.
- url_
dispatch_ Sequence[Applicationrules Url Dispatch Rule Args] A list of dispatch rule blocks. Each block has a
domain
,path
, andservice
field.
- app
Id String Identifier of the app, usually
{PROJECT_ID}
- auth
Domain String The domain to authenticate users with when using App Engine's User API.
- code
Bucket String The GCS bucket code is being stored in for this app.
- database
Type String - default
Bucket String The GCS bucket content is being stored in for this app.
- default
Hostname String The default hostname for this app.
- feature
Settings Property Map A block of optional settings to configure specific App Engine features:
- gcr
Domain String The GCR domain used for storing managed Docker images for this app.
- iap Property Map
Settings for enabling Cloud Identity Aware Proxy
- location
Id String The location to serve the app from.
- name String
Unique name of the app, usually
apps/{PROJECT_ID}
- project String
The project ID to create the application under. ~>NOTE: GCP only accepts project ID, not project number. If you are using number, you may get a "Permission denied" error.
- serving
Status String The serving status of the app.
- url
Dispatch List<Property Map>Rules A list of dispatch rule blocks. Each block has a
domain
,path
, andservice
field.
Supporting Types
ApplicationFeatureSettings
- Split
Health boolChecks Set to false to use the legacy health check instead of the readiness and liveness checks.
- Split
Health boolChecks Set to false to use the legacy health check instead of the readiness and liveness checks.
- split
Health BooleanChecks Set to false to use the legacy health check instead of the readiness and liveness checks.
- split
Health booleanChecks Set to false to use the legacy health check instead of the readiness and liveness checks.
- split_
health_ boolchecks Set to false to use the legacy health check instead of the readiness and liveness checks.
- split
Health BooleanChecks Set to false to use the legacy health check instead of the readiness and liveness checks.
ApplicationIap
- Oauth2Client
Id string OAuth2 client ID to use for the authentication flow.
- Oauth2Client
Secret string OAuth2 client secret to use for the authentication flow. The SHA-256 hash of the value is returned in the oauth2ClientSecretSha256 field.
- Enabled bool
(Optional) Whether the serving infrastructure will authenticate and authorize all incoming requests. (default is false)
- Oauth2Client
Secret stringSha256 Hex-encoded SHA-256 hash of the client secret.
- Oauth2Client
Id string OAuth2 client ID to use for the authentication flow.
- Oauth2Client
Secret string OAuth2 client secret to use for the authentication flow. The SHA-256 hash of the value is returned in the oauth2ClientSecretSha256 field.
- Enabled bool
(Optional) Whether the serving infrastructure will authenticate and authorize all incoming requests. (default is false)
- Oauth2Client
Secret stringSha256 Hex-encoded SHA-256 hash of the client secret.
- oauth2Client
Id String OAuth2 client ID to use for the authentication flow.
- oauth2Client
Secret String OAuth2 client secret to use for the authentication flow. The SHA-256 hash of the value is returned in the oauth2ClientSecretSha256 field.
- enabled Boolean
(Optional) Whether the serving infrastructure will authenticate and authorize all incoming requests. (default is false)
- oauth2Client
Secret StringSha256 Hex-encoded SHA-256 hash of the client secret.
- oauth2Client
Id string OAuth2 client ID to use for the authentication flow.
- oauth2Client
Secret string OAuth2 client secret to use for the authentication flow. The SHA-256 hash of the value is returned in the oauth2ClientSecretSha256 field.
- enabled boolean
(Optional) Whether the serving infrastructure will authenticate and authorize all incoming requests. (default is false)
- oauth2Client
Secret stringSha256 Hex-encoded SHA-256 hash of the client secret.
- oauth2_
client_ strid OAuth2 client ID to use for the authentication flow.
- oauth2_
client_ strsecret OAuth2 client secret to use for the authentication flow. The SHA-256 hash of the value is returned in the oauth2ClientSecretSha256 field.
- enabled bool
(Optional) Whether the serving infrastructure will authenticate and authorize all incoming requests. (default is false)
- oauth2_
client_ strsecret_ sha256 Hex-encoded SHA-256 hash of the client secret.
- oauth2Client
Id String OAuth2 client ID to use for the authentication flow.
- oauth2Client
Secret String OAuth2 client secret to use for the authentication flow. The SHA-256 hash of the value is returned in the oauth2ClientSecretSha256 field.
- enabled Boolean
(Optional) Whether the serving infrastructure will authenticate and authorize all incoming requests. (default is false)
- oauth2Client
Secret StringSha256 Hex-encoded SHA-256 hash of the client secret.
ApplicationUrlDispatchRule
Package Details
- Repository
- Google Cloud (GCP) Classic pulumi/pulumi-gcp
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
google-beta
Terraform Provider.