gcp.gameservices.Realm
Explore with Pulumi AI
A Realm resource.
To get more information about Realm, see:
- API documentation
- How-to Guides
Example Usage
Game Service Realm Basic
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Gcp = Pulumi.Gcp;
return await Deployment.RunAsync(() =>
{
var @default = new Gcp.GameServices.Realm("default", new()
{
Description = "one of the nine",
Location = "global",
RealmId = "tf-test-realm",
TimeZone = "EST",
});
});
package main
import (
"github.com/pulumi/pulumi-gcp/sdk/v6/go/gcp/gameservices"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := gameservices.NewRealm(ctx, "default", &gameservices.RealmArgs{
Description: pulumi.String("one of the nine"),
Location: pulumi.String("global"),
RealmId: pulumi.String("tf-test-realm"),
TimeZone: pulumi.String("EST"),
})
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.gameservices.Realm;
import com.pulumi.gcp.gameservices.RealmArgs;
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 default_ = new Realm("default", RealmArgs.builder()
.description("one of the nine")
.location("global")
.realmId("tf-test-realm")
.timeZone("EST")
.build());
}
}
import pulumi
import pulumi_gcp as gcp
default = gcp.gameservices.Realm("default",
description="one of the nine",
location="global",
realm_id="tf-test-realm",
time_zone="EST")
import * as pulumi from "@pulumi/pulumi";
import * as gcp from "@pulumi/gcp";
const _default = new gcp.gameservices.Realm("default", {
description: "one of the nine",
location: "global",
realmId: "tf-test-realm",
timeZone: "EST",
});
resources:
default:
type: gcp:gameservices:Realm
properties:
description: one of the nine
location: global
realmId: tf-test-realm
timeZone: EST
Create Realm Resource
new Realm(name: string, args: RealmArgs, opts?: CustomResourceOptions);
@overload
def Realm(resource_name: str,
opts: Optional[ResourceOptions] = None,
description: Optional[str] = None,
labels: Optional[Mapping[str, str]] = None,
location: Optional[str] = None,
project: Optional[str] = None,
realm_id: Optional[str] = None,
time_zone: Optional[str] = None)
@overload
def Realm(resource_name: str,
args: RealmArgs,
opts: Optional[ResourceOptions] = None)
func NewRealm(ctx *Context, name string, args RealmArgs, opts ...ResourceOption) (*Realm, error)
public Realm(string name, RealmArgs args, CustomResourceOptions? opts = null)
type: gcp:gameservices:Realm
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args RealmArgs
- 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 RealmArgs
- 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 RealmArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args RealmArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args RealmArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Realm 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 Realm resource accepts the following input properties:
- Realm
Id string GCP region of the Realm.
- Time
Zone string Required. Time zone where all realm-specific policies are evaluated. The value of this field must be from the IANA time zone database: https://www.iana.org/time-zones.
- Description string
Human readable description of the realm.
- Labels Dictionary<string, string>
The labels associated with this realm. Each label is a key-value pair.
- Location string
Location of the Realm.
- Project string
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- Realm
Id string GCP region of the Realm.
- Time
Zone string Required. Time zone where all realm-specific policies are evaluated. The value of this field must be from the IANA time zone database: https://www.iana.org/time-zones.
- Description string
Human readable description of the realm.
- Labels map[string]string
The labels associated with this realm. Each label is a key-value pair.
- Location string
Location of the Realm.
- Project string
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- realm
Id String GCP region of the Realm.
- time
Zone String Required. Time zone where all realm-specific policies are evaluated. The value of this field must be from the IANA time zone database: https://www.iana.org/time-zones.
- description String
Human readable description of the realm.
- labels Map<String,String>
The labels associated with this realm. Each label is a key-value pair.
- location String
Location of the Realm.
- project String
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- realm
Id string GCP region of the Realm.
- time
Zone string Required. Time zone where all realm-specific policies are evaluated. The value of this field must be from the IANA time zone database: https://www.iana.org/time-zones.
- description string
Human readable description of the realm.
- labels {[key: string]: string}
The labels associated with this realm. Each label is a key-value pair.
- location string
Location of the Realm.
- project string
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- realm_
id str GCP region of the Realm.
- time_
zone str Required. Time zone where all realm-specific policies are evaluated. The value of this field must be from the IANA time zone database: https://www.iana.org/time-zones.
- description str
Human readable description of the realm.
- labels Mapping[str, str]
The labels associated with this realm. Each label is a key-value pair.
- location str
Location of the Realm.
- project str
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- realm
Id String GCP region of the Realm.
- time
Zone String Required. Time zone where all realm-specific policies are evaluated. The value of this field must be from the IANA time zone database: https://www.iana.org/time-zones.
- description String
Human readable description of the realm.
- labels Map<String>
The labels associated with this realm. Each label is a key-value pair.
- location String
Location of the Realm.
- project String
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
Outputs
All input properties are implicitly available as output properties. Additionally, the Realm resource produces the following output properties:
Look up Existing Realm Resource
Get an existing Realm 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?: RealmState, opts?: CustomResourceOptions): Realm
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
description: Optional[str] = None,
etag: Optional[str] = None,
labels: Optional[Mapping[str, str]] = None,
location: Optional[str] = None,
name: Optional[str] = None,
project: Optional[str] = None,
realm_id: Optional[str] = None,
time_zone: Optional[str] = None) -> Realm
func GetRealm(ctx *Context, name string, id IDInput, state *RealmState, opts ...ResourceOption) (*Realm, error)
public static Realm Get(string name, Input<string> id, RealmState? state, CustomResourceOptions? opts = null)
public static Realm get(String name, Output<String> id, RealmState 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.
- Description string
Human readable description of the realm.
- Etag string
ETag of the resource.
- Labels Dictionary<string, string>
The labels associated with this realm. Each label is a key-value pair.
- Location string
Location of the Realm.
- Name string
The resource id of the realm, of the form:
projects/{project_id}/locations/{location}/realms/{realm_id}
. For example,projects/my-project/locations/{location}/realms/my-realm
.- Project string
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- Realm
Id string GCP region of the Realm.
- Time
Zone string Required. Time zone where all realm-specific policies are evaluated. The value of this field must be from the IANA time zone database: https://www.iana.org/time-zones.
- Description string
Human readable description of the realm.
- Etag string
ETag of the resource.
- Labels map[string]string
The labels associated with this realm. Each label is a key-value pair.
- Location string
Location of the Realm.
- Name string
The resource id of the realm, of the form:
projects/{project_id}/locations/{location}/realms/{realm_id}
. For example,projects/my-project/locations/{location}/realms/my-realm
.- Project string
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- Realm
Id string GCP region of the Realm.
- Time
Zone string Required. Time zone where all realm-specific policies are evaluated. The value of this field must be from the IANA time zone database: https://www.iana.org/time-zones.
- description String
Human readable description of the realm.
- etag String
ETag of the resource.
- labels Map<String,String>
The labels associated with this realm. Each label is a key-value pair.
- location String
Location of the Realm.
- name String
The resource id of the realm, of the form:
projects/{project_id}/locations/{location}/realms/{realm_id}
. For example,projects/my-project/locations/{location}/realms/my-realm
.- project String
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- realm
Id String GCP region of the Realm.
- time
Zone String Required. Time zone where all realm-specific policies are evaluated. The value of this field must be from the IANA time zone database: https://www.iana.org/time-zones.
- description string
Human readable description of the realm.
- etag string
ETag of the resource.
- labels {[key: string]: string}
The labels associated with this realm. Each label is a key-value pair.
- location string
Location of the Realm.
- name string
The resource id of the realm, of the form:
projects/{project_id}/locations/{location}/realms/{realm_id}
. For example,projects/my-project/locations/{location}/realms/my-realm
.- project string
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- realm
Id string GCP region of the Realm.
- time
Zone string Required. Time zone where all realm-specific policies are evaluated. The value of this field must be from the IANA time zone database: https://www.iana.org/time-zones.
- description str
Human readable description of the realm.
- etag str
ETag of the resource.
- labels Mapping[str, str]
The labels associated with this realm. Each label is a key-value pair.
- location str
Location of the Realm.
- name str
The resource id of the realm, of the form:
projects/{project_id}/locations/{location}/realms/{realm_id}
. For example,projects/my-project/locations/{location}/realms/my-realm
.- project str
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- realm_
id str GCP region of the Realm.
- time_
zone str Required. Time zone where all realm-specific policies are evaluated. The value of this field must be from the IANA time zone database: https://www.iana.org/time-zones.
- description String
Human readable description of the realm.
- etag String
ETag of the resource.
- labels Map<String>
The labels associated with this realm. Each label is a key-value pair.
- location String
Location of the Realm.
- name String
The resource id of the realm, of the form:
projects/{project_id}/locations/{location}/realms/{realm_id}
. For example,projects/my-project/locations/{location}/realms/my-realm
.- project String
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- realm
Id String GCP region of the Realm.
- time
Zone String Required. Time zone where all realm-specific policies are evaluated. The value of this field must be from the IANA time zone database: https://www.iana.org/time-zones.
Import
Realm can be imported using any of these accepted formats
$ pulumi import gcp:gameservices/realm:Realm default projects/{{project}}/locations/{{location}}/realms/{{realm_id}}
$ pulumi import gcp:gameservices/realm:Realm default {{project}}/{{location}}/{{realm_id}}
$ pulumi import gcp:gameservices/realm:Realm default {{location}}/{{realm_id}}
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.