import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; /** * RBACRoleBinding represents a rbacrolebinding across the Fleet. * * > **Warning:** This resource is in beta, and should be used with the terraform-provider-google-beta provider. * See Provider Versions for more details on beta resources. * * To get more information about MembershipRBACRoleBinding, see: * * * [API documentation](https://cloud.google.com/anthos/fleet-management/docs/reference/rest/v1/projects.locations.memberships) * * How-to Guides * * [Registering a Cluster](https://cloud.google.com/anthos/multicluster-management/connect/registering-a-cluster#register_cluster) * * ## Example Usage * * ### Gkehub Membership Rbac Role Binding Basic * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as gcp from "@pulumi/gcp"; * * const primary = new gcp.container.Cluster("primary", { * name: "basic-cluster", * location: "us-central1-a", * initialNodeCount: 1, * deletionProtection: true, * network: "default", * subnetwork: "default", * }); * const membership = new gcp.gkehub.Membership("membership", { * membershipId: "tf-test-membership_16199", * endpoint: { * gkeCluster: { * resourceLink: pulumi.interpolate`//container.googleapis.com/${primary.id}`, * }, * }, * }, { * dependsOn: [primary], * }); * const project = gcp.organizations.getProject({}); * const membershipRbacRoleBinding = new gcp.gkehub.MembershipRbacRoleBinding("membership_rbac_role_binding", { * membershipRbacRoleBindingId: "tf-test-membership-rbac-role-binding_21563", * membershipId: membership.membershipId, * user: project.then(project => `service-${project.number}@gcp-sa-anthossupport.iam.gserviceaccount.com`), * role: { * predefinedRole: "ANTHOS_SUPPORT", * }, * location: "global", * }, { * dependsOn: [membership], * }); * ``` * * ## Import * * MembershipRBACRoleBinding can be imported using any of these accepted formats: * * * `projects/{{project}}/locations/{{location}}/memberships/{{membership_id}}/rbacrolebindings/{{membership_rbac_role_binding_id}}` * * `{{project}}/{{location}}/{{membership_id}}/{{membership_rbac_role_binding_id}}` * * `{{location}}/{{membership_id}}/{{membership_rbac_role_binding_id}}` * * When using the `pulumi import` command, MembershipRBACRoleBinding can be imported using one of the formats above. For example: * * ```sh * $ pulumi import gcp:gkehub/membershipRbacRoleBinding:MembershipRbacRoleBinding default projects/{{project}}/locations/{{location}}/memberships/{{membership_id}}/rbacrolebindings/{{membership_rbac_role_binding_id}} * $ pulumi import gcp:gkehub/membershipRbacRoleBinding:MembershipRbacRoleBinding default {{project}}/{{location}}/{{membership_id}}/{{membership_rbac_role_binding_id}} * $ pulumi import gcp:gkehub/membershipRbacRoleBinding:MembershipRbacRoleBinding default {{location}}/{{membership_id}}/{{membership_rbac_role_binding_id}} * ``` */ export declare class MembershipRbacRoleBinding extends pulumi.CustomResource { /** * Get an existing MembershipRbacRoleBinding resource's state with the given name, ID, and optional extra * properties used to qualify the lookup. * * @param name The _unique_ name of the resulting resource. * @param id The _unique_ provider ID of the resource to lookup. * @param state Any extra arguments used during the lookup. * @param opts Optional settings to control the behavior of the CustomResource. */ static get(name: string, id: pulumi.Input, state?: MembershipRbacRoleBindingState, opts?: pulumi.CustomResourceOptions): MembershipRbacRoleBinding; /** * Returns true if the given object is an instance of MembershipRbacRoleBinding. This is designed to work even * when multiple copies of the Pulumi SDK have been loaded into the same process. */ static isInstance(obj: any): obj is MembershipRbacRoleBinding; /** * Time the RBAC Role Binding was created in UTC. */ readonly createTime: pulumi.Output; /** * Time the RBAC Role Binding was deleted in UTC. */ readonly deleteTime: pulumi.Output; /** * Location of the Membership */ readonly location: pulumi.Output; /** * Id of the membership */ readonly membershipId: pulumi.Output; /** * The client-provided identifier of the RBAC Role Binding. */ readonly membershipRbacRoleBindingId: pulumi.Output; /** * The resource name for the RBAC Role Binding */ readonly name: pulumi.Output; /** * The ID of the project in which the resource belongs. * If it is not provided, the provider project is used. */ readonly project: pulumi.Output; /** * Role to bind to the principal. * Structure is documented below. */ readonly role: pulumi.Output; /** * State of the RBAC Role Binding resource. * Structure is documented below. */ readonly states: pulumi.Output; /** * Google-generated UUID for this resource. */ readonly uid: pulumi.Output; /** * Time the RBAC Role Binding was updated in UTC. */ readonly updateTime: pulumi.Output; /** * Principal that is be authorized in the cluster (at least of one the oneof * is required). Updating one will unset the other automatically. * user is the name of the user as seen by the kubernetes cluster, example * "alice" or "alice@domain.tld" */ readonly user: pulumi.Output; /** * Create a MembershipRbacRoleBinding resource with the given unique name, arguments, and options. * * @param name The _unique_ name of the resource. * @param args The arguments to use to populate this resource's properties. * @param opts A bag of options that control this resource's behavior. */ constructor(name: string, args: MembershipRbacRoleBindingArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering MembershipRbacRoleBinding resources. */ export interface MembershipRbacRoleBindingState { /** * Time the RBAC Role Binding was created in UTC. */ createTime?: pulumi.Input; /** * Time the RBAC Role Binding was deleted in UTC. */ deleteTime?: pulumi.Input; /** * Location of the Membership */ location?: pulumi.Input; /** * Id of the membership */ membershipId?: pulumi.Input; /** * The client-provided identifier of the RBAC Role Binding. */ membershipRbacRoleBindingId?: pulumi.Input; /** * The resource name for the RBAC Role Binding */ name?: pulumi.Input; /** * The ID of the project in which the resource belongs. * If it is not provided, the provider project is used. */ project?: pulumi.Input; /** * Role to bind to the principal. * Structure is documented below. */ role?: pulumi.Input; /** * State of the RBAC Role Binding resource. * Structure is documented below. */ states?: pulumi.Input[]>; /** * Google-generated UUID for this resource. */ uid?: pulumi.Input; /** * Time the RBAC Role Binding was updated in UTC. */ updateTime?: pulumi.Input; /** * Principal that is be authorized in the cluster (at least of one the oneof * is required). Updating one will unset the other automatically. * user is the name of the user as seen by the kubernetes cluster, example * "alice" or "alice@domain.tld" */ user?: pulumi.Input; } /** * The set of arguments for constructing a MembershipRbacRoleBinding resource. */ export interface MembershipRbacRoleBindingArgs { /** * Location of the Membership */ location: pulumi.Input; /** * Id of the membership */ membershipId: pulumi.Input; /** * The client-provided identifier of the RBAC Role Binding. */ membershipRbacRoleBindingId: pulumi.Input; /** * The ID of the project in which the resource belongs. * If it is not provided, the provider project is used. */ project?: pulumi.Input; /** * Role to bind to the principal. * Structure is documented below. */ role: pulumi.Input; /** * Principal that is be authorized in the cluster (at least of one the oneof * is required). Updating one will unset the other automatically. * user is the name of the user as seen by the kubernetes cluster, example * "alice" or "alice@domain.tld" */ user: pulumi.Input; }