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. * * To get more information about ScopeRBACRoleBinding, see: * * * [API documentation](https://cloud.google.com/anthos/fleet-management/docs/reference/rest/v1/projects.locations.scopes.rbacrolebindings) * * How-to Guides * * [Registering a Cluster](https://cloud.google.com/anthos/multicluster-management/connect/registering-a-cluster#register_cluster) * * ## Example Usage * * ### Gkehub Scope Rbac Role Binding Basic * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as gcp from "@pulumi/gcp"; * * const scope = new gcp.gkehub.Scope("scope", {scopeId: "tf-test-scope_6529"}); * const scopeRbacRoleBinding = new gcp.gkehub.ScopeRbacRoleBinding("scope_rbac_role_binding", { * scopeRbacRoleBindingId: "tf-test-scope-rbac-role-binding_16178", * scopeId: scope.scopeId, * user: "test-email@gmail.com", * role: { * predefinedRole: "ADMIN", * }, * labels: { * key: "value", * }, * }); * ``` * ### Gkehub Scope Rbac Custom Role Binding Basic * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as gcp from "@pulumi/gcp"; * * const scope = new gcp.gkehub.Scope("scope", {scopeId: "tf-test-scope_26317"}); * const rbacrolebindingactuation = new gcp.gkehub.Feature("rbacrolebindingactuation", { * name: "rbacrolebindingactuation", * location: "global", * spec: { * rbacrolebindingactuation: { * allowedCustomRoles: ["my-custom-role"], * }, * }, * }); * const scopeRbacRoleBinding = new gcp.gkehub.ScopeRbacRoleBinding("scope_rbac_role_binding", { * scopeRbacRoleBindingId: "tf-test-scope-rbac-role-binding_4866", * scopeId: scope.scopeId, * user: "test-email@gmail.com", * role: { * customRole: "my-custom-role", * }, * labels: { * key: "value", * }, * }, { * dependsOn: [rbacrolebindingactuation], * }); * ``` * * ## Import * * ScopeRBACRoleBinding can be imported using any of these accepted formats: * * * `projects/{{project}}/locations/global/scopes/{{scope_id}}/rbacrolebindings/{{scope_rbac_role_binding_id}}` * * `{{project}}/{{scope_id}}/{{scope_rbac_role_binding_id}}` * * `{{scope_id}}/{{scope_rbac_role_binding_id}}` * * When using the `pulumi import` command, ScopeRBACRoleBinding can be imported using one of the formats above. For example: * * ```sh * $ pulumi import gcp:gkehub/scopeRbacRoleBinding:ScopeRbacRoleBinding default projects/{{project}}/locations/global/scopes/{{scope_id}}/rbacrolebindings/{{scope_rbac_role_binding_id}} * $ pulumi import gcp:gkehub/scopeRbacRoleBinding:ScopeRbacRoleBinding default {{project}}/{{scope_id}}/{{scope_rbac_role_binding_id}} * $ pulumi import gcp:gkehub/scopeRbacRoleBinding:ScopeRbacRoleBinding default {{scope_id}}/{{scope_rbac_role_binding_id}} * ``` */ export declare class ScopeRbacRoleBinding extends pulumi.CustomResource { /** * Get an existing ScopeRbacRoleBinding 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?: ScopeRbacRoleBindingState, opts?: pulumi.CustomResourceOptions): ScopeRbacRoleBinding; /** * Returns true if the given object is an instance of ScopeRbacRoleBinding. 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 ScopeRbacRoleBinding; /** * 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; /** * All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services. */ readonly effectiveLabels: pulumi.Output<{ [key: string]: string; }>; /** * Principal that is be authorized in the cluster (at least of one the oneof * is required). Updating one will unset the other automatically. * group is the group, as seen by the kubernetes cluster. */ readonly group: pulumi.Output; /** * Labels for this ScopeRBACRoleBinding. * * **Note**: This field is non-authoritative, and will only manage the labels present in your configuration. * Please refer to the field `effectiveLabels` for all of the labels present on the resource. */ readonly labels: pulumi.Output<{ [key: string]: string; } | undefined>; /** * 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; /** * The combination of labels configured directly on the resource * and default labels configured on the provider. */ readonly pulumiLabels: pulumi.Output<{ [key: string]: string; }>; /** * Role to bind to the principal. * Structure is documented below. */ readonly role: pulumi.Output; /** * Id of the scope */ readonly scopeId: pulumi.Output; /** * The client-provided identifier of the RBAC Role Binding. */ readonly scopeRbacRoleBindingId: 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 ScopeRbacRoleBinding 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: ScopeRbacRoleBindingArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering ScopeRbacRoleBinding resources. */ export interface ScopeRbacRoleBindingState { /** * Time the RBAC Role Binding was created in UTC. */ createTime?: pulumi.Input; /** * Time the RBAC Role Binding was deleted in UTC. */ deleteTime?: pulumi.Input; /** * All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services. */ effectiveLabels?: pulumi.Input<{ [key: string]: 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. * group is the group, as seen by the kubernetes cluster. */ group?: pulumi.Input; /** * Labels for this ScopeRBACRoleBinding. * * **Note**: This field is non-authoritative, and will only manage the labels present in your configuration. * Please refer to the field `effectiveLabels` for all of the labels present on the resource. */ labels?: pulumi.Input<{ [key: string]: 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; /** * The combination of labels configured directly on the resource * and default labels configured on the provider. */ pulumiLabels?: pulumi.Input<{ [key: string]: pulumi.Input; }>; /** * Role to bind to the principal. * Structure is documented below. */ role?: pulumi.Input; /** * Id of the scope */ scopeId?: pulumi.Input; /** * The client-provided identifier of the RBAC Role Binding. */ scopeRbacRoleBindingId?: 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 ScopeRbacRoleBinding resource. */ export interface ScopeRbacRoleBindingArgs { /** * Principal that is be authorized in the cluster (at least of one the oneof * is required). Updating one will unset the other automatically. * group is the group, as seen by the kubernetes cluster. */ group?: pulumi.Input; /** * Labels for this ScopeRBACRoleBinding. * * **Note**: This field is non-authoritative, and will only manage the labels present in your configuration. * Please refer to the field `effectiveLabels` for all of the labels present on the resource. */ labels?: pulumi.Input<{ [key: string]: 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; /** * Id of the scope */ scopeId: pulumi.Input; /** * The client-provided identifier of the RBAC Role Binding. */ scopeRbacRoleBindingId: 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; }