Application Args
data class ApplicationArgs(val applicationId: Output<String>? = null, val attributes: Output<ApplicationAttributesArgs>? = null, val description: Output<String>? = null, val displayName: Output<String>? = null, val location: Output<String>? = null, val project: Output<String>? = null, val scope: Output<ApplicationScopeArgs>? = null) : ConvertibleToJava<ApplicationArgs>
Application is a functional grouping of Services and Workloads that helps achieve a desired end-to-end business functionality. Services and Workloads are owned by the Application.
Example Usage
Application Basic
import * as pulumi from "@pulumi/pulumi";
import * as gcp from "@pulumi/gcp";
const example = new gcp.apphub.Application("example", {
location: "us-east1",
applicationId: "example-application",
scope: {
type: "REGIONAL",
},
});
Content copied to clipboard
import pulumi
import pulumi_gcp as gcp
example = gcp.apphub.Application("example",
location="us-east1",
application_id="example-application",
scope={
"type": "REGIONAL",
})
Content copied to clipboard
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Gcp = Pulumi.Gcp;
return await Deployment.RunAsync(() =>
{
var example = new Gcp.Apphub.Application("example", new()
{
Location = "us-east1",
ApplicationId = "example-application",
Scope = new Gcp.Apphub.Inputs.ApplicationScopeArgs
{
Type = "REGIONAL",
},
});
});
Content copied to clipboard
package main
import (
"github.com/pulumi/pulumi-gcp/sdk/v7/go/gcp/apphub"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := apphub.NewApplication(ctx, "example", &apphub.ApplicationArgs{
Location: pulumi.String("us-east1"),
ApplicationId: pulumi.String("example-application"),
Scope: &apphub.ApplicationScopeArgs{
Type: pulumi.String("REGIONAL"),
},
})
if err != nil {
return err
}
return nil
})
}
Content copied to clipboard
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcp.apphub.Application;
import com.pulumi.gcp.apphub.ApplicationArgs;
import com.pulumi.gcp.apphub.inputs.ApplicationScopeArgs;
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 example = new Application("example", ApplicationArgs.builder()
.location("us-east1")
.applicationId("example-application")
.scope(ApplicationScopeArgs.builder()
.type("REGIONAL")
.build())
.build());
}
}
Content copied to clipboard
resources:
example:
type: gcp:apphub:Application
properties:
location: us-east1
applicationId: example-application
scope:
type: REGIONAL
Content copied to clipboard
Application Full
import * as pulumi from "@pulumi/pulumi";
import * as gcp from "@pulumi/gcp";
const example2 = new gcp.apphub.Application("example2", {
location: "us-east1",
applicationId: "example-application",
displayName: "Application Full",
scope: {
type: "REGIONAL",
},
description: "Application for testing",
attributes: {
environment: {
type: "STAGING",
},
criticality: {
type: "MISSION_CRITICAL",
},
businessOwners: [{
displayName: "Alice",
email: "alice@google.com",
}],
developerOwners: [{
displayName: "Bob",
email: "bob@google.com",
}],
operatorOwners: [{
displayName: "Charlie",
email: "charlie@google.com",
}],
},
});
Content copied to clipboard
import pulumi
import pulumi_gcp as gcp
example2 = gcp.apphub.Application("example2",
location="us-east1",
application_id="example-application",
display_name="Application Full",
scope={
"type": "REGIONAL",
},
description="Application for testing",
attributes={
"environment": {
"type": "STAGING",
},
"criticality": {
"type": "MISSION_CRITICAL",
},
"business_owners": [{
"display_name": "Alice",
"email": "alice@google.com",
}],
"developer_owners": [{
"display_name": "Bob",
"email": "bob@google.com",
}],
"operator_owners": [{
"display_name": "Charlie",
"email": "charlie@google.com",
}],
})
Content copied to clipboard
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Gcp = Pulumi.Gcp;
return await Deployment.RunAsync(() =>
{
var example2 = new Gcp.Apphub.Application("example2", new()
{
Location = "us-east1",
ApplicationId = "example-application",
DisplayName = "Application Full",
Scope = new Gcp.Apphub.Inputs.ApplicationScopeArgs
{
Type = "REGIONAL",
},
Description = "Application for testing",
Attributes = new Gcp.Apphub.Inputs.ApplicationAttributesArgs
{
Environment = new Gcp.Apphub.Inputs.ApplicationAttributesEnvironmentArgs
{
Type = "STAGING",
},
Criticality = new Gcp.Apphub.Inputs.ApplicationAttributesCriticalityArgs
{
Type = "MISSION_CRITICAL",
},
BusinessOwners = new[]
{
new Gcp.Apphub.Inputs.ApplicationAttributesBusinessOwnerArgs
{
DisplayName = "Alice",
Email = "alice@google.com",
},
},
DeveloperOwners = new[]
{
new Gcp.Apphub.Inputs.ApplicationAttributesDeveloperOwnerArgs
{
DisplayName = "Bob",
Email = "bob@google.com",
},
},
OperatorOwners = new[]
{
new Gcp.Apphub.Inputs.ApplicationAttributesOperatorOwnerArgs
{
DisplayName = "Charlie",
Email = "charlie@google.com",
},
},
},
});
});
Content copied to clipboard
package main
import (
"github.com/pulumi/pulumi-gcp/sdk/v7/go/gcp/apphub"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := apphub.NewApplication(ctx, "example2", &apphub.ApplicationArgs{
Location: pulumi.String("us-east1"),
ApplicationId: pulumi.String("example-application"),
DisplayName: pulumi.String("Application Full"),
Scope: &apphub.ApplicationScopeArgs{
Type: pulumi.String("REGIONAL"),
},
Description: pulumi.String("Application for testing"),
Attributes: &apphub.ApplicationAttributesArgs{
Environment: &apphub.ApplicationAttributesEnvironmentArgs{
Type: pulumi.String("STAGING"),
},
Criticality: &apphub.ApplicationAttributesCriticalityArgs{
Type: pulumi.String("MISSION_CRITICAL"),
},
BusinessOwners: apphub.ApplicationAttributesBusinessOwnerArray{
&apphub.ApplicationAttributesBusinessOwnerArgs{
DisplayName: pulumi.String("Alice"),
Email: pulumi.String("alice@google.com"),
},
},
DeveloperOwners: apphub.ApplicationAttributesDeveloperOwnerArray{
&apphub.ApplicationAttributesDeveloperOwnerArgs{
DisplayName: pulumi.String("Bob"),
Email: pulumi.String("bob@google.com"),
},
},
OperatorOwners: apphub.ApplicationAttributesOperatorOwnerArray{
&apphub.ApplicationAttributesOperatorOwnerArgs{
DisplayName: pulumi.String("Charlie"),
Email: pulumi.String("charlie@google.com"),
},
},
},
})
if err != nil {
return err
}
return nil
})
}
Content copied to clipboard
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcp.apphub.Application;
import com.pulumi.gcp.apphub.ApplicationArgs;
import com.pulumi.gcp.apphub.inputs.ApplicationScopeArgs;
import com.pulumi.gcp.apphub.inputs.ApplicationAttributesArgs;
import com.pulumi.gcp.apphub.inputs.ApplicationAttributesEnvironmentArgs;
import com.pulumi.gcp.apphub.inputs.ApplicationAttributesCriticalityArgs;
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 example2 = new Application("example2", ApplicationArgs.builder()
.location("us-east1")
.applicationId("example-application")
.displayName("Application Full")
.scope(ApplicationScopeArgs.builder()
.type("REGIONAL")
.build())
.description("Application for testing")
.attributes(ApplicationAttributesArgs.builder()
.environment(ApplicationAttributesEnvironmentArgs.builder()
.type("STAGING")
.build())
.criticality(ApplicationAttributesCriticalityArgs.builder()
.type("MISSION_CRITICAL")
.build())
.businessOwners(ApplicationAttributesBusinessOwnerArgs.builder()
.displayName("Alice")
.email("alice@google.com")
.build())
.developerOwners(ApplicationAttributesDeveloperOwnerArgs.builder()
.displayName("Bob")
.email("bob@google.com")
.build())
.operatorOwners(ApplicationAttributesOperatorOwnerArgs.builder()
.displayName("Charlie")
.email("charlie@google.com")
.build())
.build())
.build());
}
}
Content copied to clipboard
resources:
example2:
type: gcp:apphub:Application
properties:
location: us-east1
applicationId: example-application
displayName: Application Full
scope:
type: REGIONAL
description: Application for testing
attributes:
environment:
type: STAGING
criticality:
type: MISSION_CRITICAL
businessOwners:
- displayName: Alice
email: alice@google.com
developerOwners:
- displayName: Bob
email: bob@google.com
operatorOwners:
- displayName: Charlie
email: charlie@google.com
Content copied to clipboard
Import
Application can be imported using any of these accepted formats:
projects/{{project}}/locations/{{location}}/applications/{{application_id}}
{{project}}/{{location}}/{{application_id}}
{{location}}/{{application_id}}
When using thepulumi import
command, Application can be imported using one of the formats above. For example:
$ pulumi import gcp:apphub/application:Application default projects/{{project}}/locations/{{location}}/applications/{{application_id}}
Content copied to clipboard
$ pulumi import gcp:apphub/application:Application default {{project}}/{{location}}/{{application_id}}
Content copied to clipboard
$ pulumi import gcp:apphub/application:Application default {{location}}/{{application_id}}
Content copied to clipboard
Constructors
Link copied to clipboard
constructor(applicationId: Output<String>? = null, attributes: Output<ApplicationAttributesArgs>? = null, description: Output<String>? = null, displayName: Output<String>? = null, location: Output<String>? = null, project: Output<String>? = null, scope: Output<ApplicationScopeArgs>? = null)
Properties
Link copied to clipboard
Required. The Application identifier.
Link copied to clipboard
Consumer provided attributes.
Link copied to clipboard
Optional. User-defined description of an Application.
Link copied to clipboard
Optional. User-defined name for the Application.
Link copied to clipboard
Scope of an application. Structure is documented below.