1. Packages
  2. Google Cloud Native
  3. API Docs
  4. gkehub
  5. gkehub/v1
  6. Binding

Google Cloud Native is in preview. Google Cloud Classic is fully supported.

Google Cloud Native v0.32.0 published on Wednesday, Nov 29, 2023 by Pulumi

google-native.gkehub/v1.Binding

Explore with Pulumi AI

Google Cloud Native is in preview. Google Cloud Classic is fully supported.

Google Cloud Native v0.32.0 published on Wednesday, Nov 29, 2023 by Pulumi

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",
});
Copy
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"),
})
Copy
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());
Copy
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")
Copy
const bindingResource = new google_native.gkehub.v1.Binding("bindingResource", {
    membershipBindingId: "string",
    membershipId: "string",
    labels: {
        string: "string",
    },
    location: "string",
    name: "string",
    project: "string",
    scope: "string",
});
Copy
type: google-native:gkehub/v1:Binding
properties:
    labels:
        string: string
    location: string
    membershipBindingId: string
    membershipId: string
    name: string
    project: string
    scope: string
Copy

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:

MembershipBindingId
This property is required.
Changes to this property will trigger replacement.
string
Required. The ID to use for the MembershipBinding.
MembershipId
This property is required.
Changes to this property will trigger replacement.
string
Labels Dictionary<string, string>
Optional. Labels for this MembershipBinding.
Location Changes to this property will trigger replacement. string
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. string
Scope string
A Scope resource name in the format projects/*/locations/*/scopes/*.
MembershipBindingId
This property is required.
Changes to this property will trigger replacement.
string
Required. The ID to use for the MembershipBinding.
MembershipId
This property is required.
Changes to this property will trigger replacement.
string
Labels map[string]string
Optional. Labels for this MembershipBinding.
Location Changes to this property will trigger replacement. string
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. string
Scope string
A Scope resource name in the format projects/*/locations/*/scopes/*.
membershipBindingId
This property is required.
Changes to this property will trigger replacement.
String
Required. The ID to use for the MembershipBinding.
membershipId
This property is required.
Changes to this property will trigger replacement.
String
labels Map<String,String>
Optional. Labels for this MembershipBinding.
location Changes to this property will trigger replacement. String
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. String
scope String
A Scope resource name in the format projects/*/locations/*/scopes/*.
membershipBindingId
This property is required.
Changes to this property will trigger replacement.
string
Required. The ID to use for the MembershipBinding.
membershipId
This property is required.
Changes to this property will trigger replacement.
string
labels {[key: string]: string}
Optional. Labels for this MembershipBinding.
location Changes to this property will trigger replacement. string
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. string
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.
str
Required. The ID to use for the MembershipBinding.
membership_id
This property is required.
Changes to this property will trigger replacement.
str
labels Mapping[str, str]
Optional. Labels for this MembershipBinding.
location Changes to this property will trigger replacement. str
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. str
scope str
A Scope resource name in the format projects/*/locations/*/scopes/*.
membershipBindingId
This property is required.
Changes to this property will trigger replacement.
String
Required. The ID to use for the MembershipBinding.
membershipId
This property is required.
Changes to this property will trigger replacement.
String
labels Map<String>
Optional. Labels for this MembershipBinding.
location Changes to this property will trigger replacement. String
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. String
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:

CreateTime string
When the membership binding was created.
DeleteTime string
When the membership binding was deleted.
Id string
The provider-assigned unique ID for this managed resource.
State Pulumi.GoogleNative.GKEHub.V1.Outputs.MembershipBindingLifecycleStateResponse
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.
UpdateTime string
When the membership binding was last updated.
CreateTime string
When the membership binding was created.
DeleteTime string
When the membership binding was deleted.
Id string
The provider-assigned unique ID for this managed resource.
State MembershipBindingLifecycleStateResponse
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.
UpdateTime string
When the membership binding was last updated.
createTime String
When the membership binding was created.
deleteTime String
When the membership binding was deleted.
id String
The provider-assigned unique ID for this managed resource.
state MembershipBindingLifecycleStateResponse
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.
updateTime String
When the membership binding was last updated.
createTime string
When the membership binding was created.
deleteTime string
When the membership binding was deleted.
id string
The provider-assigned unique ID for this managed resource.
state MembershipBindingLifecycleStateResponse
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.
updateTime 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 MembershipBindingLifecycleStateResponse
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.
createTime String
When the membership binding was created.
deleteTime 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.
updateTime 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.

Google Cloud Native v0.32.0 published on Wednesday, Nov 29, 2023 by Pulumi