Google Cloud Native is in preview. Google Cloud Classic is fully supported.
google-native.gkehub/v1.Binding
Explore with Pulumi AI
Google Cloud Native is in preview. Google Cloud Classic is fully supported.
Creates a MembershipBinding. Auto-naming is currently not supported for this resource.
Create Binding Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Binding(name: string, args: BindingArgs, opts?: CustomResourceOptions);
@overload
def Binding(resource_name: str,
args: BindingInitArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Binding(resource_name: str,
opts: Optional[ResourceOptions] = None,
membership_binding_id: Optional[str] = None,
membership_id: Optional[str] = None,
labels: Optional[Mapping[str, str]] = None,
location: Optional[str] = None,
name: Optional[str] = None,
project: Optional[str] = None,
scope: Optional[str] = None)
func NewBinding(ctx *Context, name string, args BindingArgs, opts ...ResourceOption) (*Binding, error)
public Binding(string name, BindingArgs args, CustomResourceOptions? opts = null)
public Binding(String name, BindingArgs args)
public Binding(String name, BindingArgs args, CustomResourceOptions options)
type: google-native:gkehub/v1:Binding
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name
This property is required. string - The unique name of the resource.
- args
This property is required. BindingArgs - The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name
This property is required. str - The unique name of the resource.
- args
This property is required. BindingInitArgs - The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name
This property is required. string - The unique name of the resource.
- args
This property is required. BindingArgs - The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name
This property is required. string - The unique name of the resource.
- args
This property is required. BindingArgs - The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name
This property is required. String - The unique name of the resource.
- args
This property is required. BindingArgs - 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 bindingResource = new GoogleNative.GKEHub.V1.Binding("bindingResource", new()
{
MembershipBindingId = "string",
MembershipId = "string",
Labels =
{
{ "string", "string" },
},
Location = "string",
Name = "string",
Project = "string",
Scope = "string",
});
example, err := gkehub.NewBinding(ctx, "bindingResource", &gkehub.BindingArgs{
MembershipBindingId: pulumi.String("string"),
MembershipId: pulumi.String("string"),
Labels: pulumi.StringMap{
"string": pulumi.String("string"),
},
Location: pulumi.String("string"),
Name: pulumi.String("string"),
Project: pulumi.String("string"),
Scope: pulumi.String("string"),
})
var bindingResource = new Binding("bindingResource", BindingArgs.builder()
.membershipBindingId("string")
.membershipId("string")
.labels(Map.of("string", "string"))
.location("string")
.name("string")
.project("string")
.scope("string")
.build());
binding_resource = google_native.gkehub.v1.Binding("bindingResource",
membership_binding_id="string",
membership_id="string",
labels={
"string": "string",
},
location="string",
name="string",
project="string",
scope="string")
const bindingResource = new google_native.gkehub.v1.Binding("bindingResource", {
membershipBindingId: "string",
membershipId: "string",
labels: {
string: "string",
},
location: "string",
name: "string",
project: "string",
scope: "string",
});
type: google-native:gkehub/v1:Binding
properties:
labels:
string: string
location: string
membershipBindingId: string
membershipId: string
name: string
project: string
scope: string
Binding 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 Binding resource accepts the following input properties:
- Membership
Binding Id This property is required. Changes to this property will trigger replacement.
- Required. The ID to use for the MembershipBinding.
- Membership
Id This property is required. Changes to this property will trigger replacement.
- Labels Dictionary<string, string>
- Optional. Labels for this MembershipBinding.
- Location
Changes to this property will trigger replacement.
- Name string
- The resource name for the membershipbinding itself
projects/{project}/locations/{location}/memberships/{membership}/bindings/{membershipbinding}
- Project
Changes to this property will trigger replacement.
- Scope string
- A Scope resource name in the format
projects/*/locations/*/scopes/*
.
- Membership
Binding Id This property is required. Changes to this property will trigger replacement.
- Required. The ID to use for the MembershipBinding.
- Membership
Id This property is required. Changes to this property will trigger replacement.
- Labels map[string]string
- Optional. Labels for this MembershipBinding.
- Location
Changes to this property will trigger replacement.
- Name string
- The resource name for the membershipbinding itself
projects/{project}/locations/{location}/memberships/{membership}/bindings/{membershipbinding}
- Project
Changes to this property will trigger replacement.
- Scope string
- A Scope resource name in the format
projects/*/locations/*/scopes/*
.
- membership
Binding Id This property is required. Changes to this property will trigger replacement.
- Required. The ID to use for the MembershipBinding.
- membership
Id This property is required. Changes to this property will trigger replacement.
- labels Map<String,String>
- Optional. Labels for this MembershipBinding.
- location
Changes to this property will trigger replacement.
- name String
- The resource name for the membershipbinding itself
projects/{project}/locations/{location}/memberships/{membership}/bindings/{membershipbinding}
- project
Changes to this property will trigger replacement.
- scope String
- A Scope resource name in the format
projects/*/locations/*/scopes/*
.
- membership
Binding Id This property is required. Changes to this property will trigger replacement.
- Required. The ID to use for the MembershipBinding.
- membership
Id This property is required. Changes to this property will trigger replacement.
- labels {[key: string]: string}
- Optional. Labels for this MembershipBinding.
- location
Changes to this property will trigger replacement.
- name string
- The resource name for the membershipbinding itself
projects/{project}/locations/{location}/memberships/{membership}/bindings/{membershipbinding}
- project
Changes to this property will trigger replacement.
- scope string
- A Scope resource name in the format
projects/*/locations/*/scopes/*
.
- membership_
binding_ id This property is required. Changes to this property will trigger replacement.
- Required. The ID to use for the MembershipBinding.
- membership_
id This property is required. Changes to this property will trigger replacement.
- labels Mapping[str, str]
- Optional. Labels for this MembershipBinding.
- location
Changes to this property will trigger replacement.
- name str
- The resource name for the membershipbinding itself
projects/{project}/locations/{location}/memberships/{membership}/bindings/{membershipbinding}
- project
Changes to this property will trigger replacement.
- scope str
- A Scope resource name in the format
projects/*/locations/*/scopes/*
.
- membership
Binding Id This property is required. Changes to this property will trigger replacement.
- Required. The ID to use for the MembershipBinding.
- membership
Id This property is required. Changes to this property will trigger replacement.
- labels Map<String>
- Optional. Labels for this MembershipBinding.
- location
Changes to this property will trigger replacement.
- name String
- The resource name for the membershipbinding itself
projects/{project}/locations/{location}/memberships/{membership}/bindings/{membershipbinding}
- project
Changes to this property will trigger replacement.
- scope String
- A Scope resource name in the format
projects/*/locations/*/scopes/*
.
Outputs
All input properties are implicitly available as output properties. Additionally, the Binding resource produces the following output properties:
- Create
Time string - When the membership binding was created.
- Delete
Time string - When the membership binding was deleted.
- Id string
- The provider-assigned unique ID for this managed resource.
- State
Pulumi.
Google Native. GKEHub. V1. Outputs. Membership Binding Lifecycle State Response - State of the membership binding resource.
- Uid string
- Google-generated UUID for this resource. This is unique across all membershipbinding resources. If a membershipbinding resource is deleted and another resource with the same name is created, it gets a different uid.
- Update
Time string - When the membership binding was last updated.
- Create
Time string - When the membership binding was created.
- Delete
Time string - When the membership binding was deleted.
- Id string
- The provider-assigned unique ID for this managed resource.
- State
Membership
Binding Lifecycle State Response - State of the membership binding resource.
- Uid string
- Google-generated UUID for this resource. This is unique across all membershipbinding resources. If a membershipbinding resource is deleted and another resource with the same name is created, it gets a different uid.
- Update
Time string - When the membership binding was last updated.
- create
Time String - When the membership binding was created.
- delete
Time String - When the membership binding was deleted.
- id String
- The provider-assigned unique ID for this managed resource.
- state
Membership
Binding Lifecycle State Response - State of the membership binding resource.
- uid String
- Google-generated UUID for this resource. This is unique across all membershipbinding resources. If a membershipbinding resource is deleted and another resource with the same name is created, it gets a different uid.
- update
Time String - When the membership binding was last updated.
- create
Time string - When the membership binding was created.
- delete
Time string - When the membership binding was deleted.
- id string
- The provider-assigned unique ID for this managed resource.
- state
Membership
Binding Lifecycle State Response - State of the membership binding resource.
- uid string
- Google-generated UUID for this resource. This is unique across all membershipbinding resources. If a membershipbinding resource is deleted and another resource with the same name is created, it gets a different uid.
- update
Time string - When the membership binding was last updated.
- create_
time str - When the membership binding was created.
- delete_
time str - When the membership binding was deleted.
- id str
- The provider-assigned unique ID for this managed resource.
- state
Membership
Binding Lifecycle State Response - State of the membership binding resource.
- uid str
- Google-generated UUID for this resource. This is unique across all membershipbinding resources. If a membershipbinding resource is deleted and another resource with the same name is created, it gets a different uid.
- update_
time str - When the membership binding was last updated.
- create
Time String - When the membership binding was created.
- delete
Time String - When the membership binding was deleted.
- id String
- The provider-assigned unique ID for this managed resource.
- state Property Map
- State of the membership binding resource.
- uid String
- Google-generated UUID for this resource. This is unique across all membershipbinding resources. If a membershipbinding resource is deleted and another resource with the same name is created, it gets a different uid.
- update
Time String - When the membership binding was last updated.
Supporting Types
MembershipBindingLifecycleStateResponse, MembershipBindingLifecycleStateResponseArgs
- Code
This property is required. string - The current state of the MembershipBinding resource.
- Code
This property is required. string - The current state of the MembershipBinding resource.
- code
This property is required. String - The current state of the MembershipBinding resource.
- code
This property is required. string - The current state of the MembershipBinding resource.
- code
This property is required. str - The current state of the MembershipBinding resource.
- code
This property is required. String - The current state of the MembershipBinding 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.