Google Cloud Native is in preview. Google Cloud Classic is fully supported.
google-native.gkehub/v1beta.Scope
Explore with Pulumi AI
Google Cloud Native is in preview. Google Cloud Classic is fully supported.
Creates a Scope. Auto-naming is currently not supported for this resource.
Create Scope Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Scope(name: string, args: ScopeArgs, opts?: CustomResourceOptions);
@overload
def Scope(resource_name: str,
args: ScopeArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Scope(resource_name: str,
opts: Optional[ResourceOptions] = None,
scope_id: Optional[str] = None,
labels: Optional[Mapping[str, str]] = None,
location: Optional[str] = None,
name: Optional[str] = None,
namespace_labels: Optional[Mapping[str, str]] = None,
project: Optional[str] = None)
func NewScope(ctx *Context, name string, args ScopeArgs, opts ...ResourceOption) (*Scope, error)
public Scope(string name, ScopeArgs args, CustomResourceOptions? opts = null)
type: google-native:gkehub/v1beta:Scope
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args ScopeArgs
- 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 ScopeArgs
- 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 ScopeArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ScopeArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ScopeArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var examplescopeResourceResourceFromGkehubv1beta = new GoogleNative.GKEHub.V1Beta.Scope("examplescopeResourceResourceFromGkehubv1beta", new()
{
ScopeId = "string",
Labels =
{
{ "string", "string" },
},
Location = "string",
Name = "string",
NamespaceLabels =
{
{ "string", "string" },
},
Project = "string",
});
example, err := gkehubv1beta.NewScope(ctx, "examplescopeResourceResourceFromGkehubv1beta", &gkehubv1beta.ScopeArgs{
ScopeId: pulumi.String("string"),
Labels: pulumi.StringMap{
"string": pulumi.String("string"),
},
Location: pulumi.String("string"),
Name: pulumi.String("string"),
NamespaceLabels: pulumi.StringMap{
"string": pulumi.String("string"),
},
Project: pulumi.String("string"),
})
var examplescopeResourceResourceFromGkehubv1beta = new Scope("examplescopeResourceResourceFromGkehubv1beta", ScopeArgs.builder()
.scopeId("string")
.labels(Map.of("string", "string"))
.location("string")
.name("string")
.namespaceLabels(Map.of("string", "string"))
.project("string")
.build());
examplescope_resource_resource_from_gkehubv1beta = google_native.gkehub.v1beta.Scope("examplescopeResourceResourceFromGkehubv1beta",
scope_id="string",
labels={
"string": "string",
},
location="string",
name="string",
namespace_labels={
"string": "string",
},
project="string")
const examplescopeResourceResourceFromGkehubv1beta = new google_native.gkehub.v1beta.Scope("examplescopeResourceResourceFromGkehubv1beta", {
scopeId: "string",
labels: {
string: "string",
},
location: "string",
name: "string",
namespaceLabels: {
string: "string",
},
project: "string",
});
type: google-native:gkehub/v1beta:Scope
properties:
labels:
string: string
location: string
name: string
namespaceLabels:
string: string
project: string
scopeId: string
Scope Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The Scope resource accepts the following input properties:
- Scope
Id string - Required. Client chosen ID for the Scope.
scope_id
must be a ???? - Labels Dictionary<string, string>
- Optional. Labels for this Scope.
- Location string
- Name string
- The resource name for the scope
projects/{project}/locations/{location}/scopes/{scope}
- Namespace
Labels Dictionary<string, string> - Optional. Scope-level cluster namespace labels. For the member clusters bound to the Scope, these labels are applied to each namespace under the Scope. Scope-level labels take precedence over Namespace-level labels (
namespace_labels
in the Fleet Namespace resource) if they share a key. Keys and values must be Kubernetes-conformant. - Project string
- Scope
Id string - Required. Client chosen ID for the Scope.
scope_id
must be a ???? - Labels map[string]string
- Optional. Labels for this Scope.
- Location string
- Name string
- The resource name for the scope
projects/{project}/locations/{location}/scopes/{scope}
- Namespace
Labels map[string]string - Optional. Scope-level cluster namespace labels. For the member clusters bound to the Scope, these labels are applied to each namespace under the Scope. Scope-level labels take precedence over Namespace-level labels (
namespace_labels
in the Fleet Namespace resource) if they share a key. Keys and values must be Kubernetes-conformant. - Project string
- scope
Id String - Required. Client chosen ID for the Scope.
scope_id
must be a ???? - labels Map<String,String>
- Optional. Labels for this Scope.
- location String
- name String
- The resource name for the scope
projects/{project}/locations/{location}/scopes/{scope}
- namespace
Labels Map<String,String> - Optional. Scope-level cluster namespace labels. For the member clusters bound to the Scope, these labels are applied to each namespace under the Scope. Scope-level labels take precedence over Namespace-level labels (
namespace_labels
in the Fleet Namespace resource) if they share a key. Keys and values must be Kubernetes-conformant. - project String
- scope
Id string - Required. Client chosen ID for the Scope.
scope_id
must be a ???? - labels {[key: string]: string}
- Optional. Labels for this Scope.
- location string
- name string
- The resource name for the scope
projects/{project}/locations/{location}/scopes/{scope}
- namespace
Labels {[key: string]: string} - Optional. Scope-level cluster namespace labels. For the member clusters bound to the Scope, these labels are applied to each namespace under the Scope. Scope-level labels take precedence over Namespace-level labels (
namespace_labels
in the Fleet Namespace resource) if they share a key. Keys and values must be Kubernetes-conformant. - project string
- scope_
id str - Required. Client chosen ID for the Scope.
scope_id
must be a ???? - labels Mapping[str, str]
- Optional. Labels for this Scope.
- location str
- name str
- The resource name for the scope
projects/{project}/locations/{location}/scopes/{scope}
- namespace_
labels Mapping[str, str] - Optional. Scope-level cluster namespace labels. For the member clusters bound to the Scope, these labels are applied to each namespace under the Scope. Scope-level labels take precedence over Namespace-level labels (
namespace_labels
in the Fleet Namespace resource) if they share a key. Keys and values must be Kubernetes-conformant. - project str
- scope
Id String - Required. Client chosen ID for the Scope.
scope_id
must be a ???? - labels Map<String>
- Optional. Labels for this Scope.
- location String
- name String
- The resource name for the scope
projects/{project}/locations/{location}/scopes/{scope}
- namespace
Labels Map<String> - Optional. Scope-level cluster namespace labels. For the member clusters bound to the Scope, these labels are applied to each namespace under the Scope. Scope-level labels take precedence over Namespace-level labels (
namespace_labels
in the Fleet Namespace resource) if they share a key. Keys and values must be Kubernetes-conformant. - project String
Outputs
All input properties are implicitly available as output properties. Additionally, the Scope resource produces the following output properties:
- Create
Time string - When the scope was created.
- Delete
Time string - When the scope was deleted.
- Id string
- The provider-assigned unique ID for this managed resource.
- State
Pulumi.
Google Native. GKEHub. V1Beta. Outputs. Scope Lifecycle State Response - State of the scope resource.
- Uid string
- Google-generated UUID for this resource. This is unique across all scope resources. If a scope resource is deleted and another resource with the same name is created, it gets a different uid.
- Update
Time string - When the scope was last updated.
- Create
Time string - When the scope was created.
- Delete
Time string - When the scope was deleted.
- Id string
- The provider-assigned unique ID for this managed resource.
- State
Scope
Lifecycle State Response - State of the scope resource.
- Uid string
- Google-generated UUID for this resource. This is unique across all scope resources. If a scope resource is deleted and another resource with the same name is created, it gets a different uid.
- Update
Time string - When the scope was last updated.
- create
Time String - When the scope was created.
- delete
Time String - When the scope was deleted.
- id String
- The provider-assigned unique ID for this managed resource.
- state
Scope
Lifecycle State Response - State of the scope resource.
- uid String
- Google-generated UUID for this resource. This is unique across all scope resources. If a scope resource is deleted and another resource with the same name is created, it gets a different uid.
- update
Time String - When the scope was last updated.
- create
Time string - When the scope was created.
- delete
Time string - When the scope was deleted.
- id string
- The provider-assigned unique ID for this managed resource.
- state
Scope
Lifecycle State Response - State of the scope resource.
- uid string
- Google-generated UUID for this resource. This is unique across all scope resources. If a scope resource is deleted and another resource with the same name is created, it gets a different uid.
- update
Time string - When the scope was last updated.
- create_
time str - When the scope was created.
- delete_
time str - When the scope was deleted.
- id str
- The provider-assigned unique ID for this managed resource.
- state
Scope
Lifecycle State Response - State of the scope resource.
- uid str
- Google-generated UUID for this resource. This is unique across all scope resources. If a scope resource is deleted and another resource with the same name is created, it gets a different uid.
- update_
time str - When the scope was last updated.
- create
Time String - When the scope was created.
- delete
Time String - When the scope was deleted.
- id String
- The provider-assigned unique ID for this managed resource.
- state Property Map
- State of the scope resource.
- uid String
- Google-generated UUID for this resource. This is unique across all scope resources. If a scope resource is deleted and another resource with the same name is created, it gets a different uid.
- update
Time String - When the scope was last updated.
Supporting Types
ScopeLifecycleStateResponse, ScopeLifecycleStateResponseArgs
- Code string
- The current state of the scope resource.
- Code string
- The current state of the scope resource.
- code String
- The current state of the scope resource.
- code string
- The current state of the scope resource.
- code str
- The current state of the scope resource.
- code String
- The current state of the scope resource.
Package Details
- Repository
- Google Cloud Native pulumi/pulumi-google-native
- License
- Apache-2.0
Google Cloud Native is in preview. Google Cloud Classic is fully supported.