import * as pulumi from "@pulumi/pulumi"; /** * Allows creation and management of a single binding within IAM policy for * an existing Yandex Resource Manager cloud. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as yandex from "@pulumi/yandex"; * * const project1 = pulumi.output(yandex.getResourcemanagerCloud({ * name: "Project 1", * })); * const admin = new yandex.ResourcemanagerCloudIamBinding("admin", { * cloudId: project1.id, * members: ["userAccount:some_user_id"], * role: "editor", * }); * ``` * * ## Import * * IAM binding imports use space-delimited identifiers; first the resource in question and then the role. These bindings can be imported using the `cloud_id` and role, e.g. * * ```sh * $ pulumi import yandex:index/resourcemanagerCloudIamBinding:ResourcemanagerCloudIamBinding viewer "cloud_id viewer" * ``` */ export declare class ResourcemanagerCloudIamBinding extends pulumi.CustomResource { /** * Get an existing ResourcemanagerCloudIamBinding 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?: ResourcemanagerCloudIamBindingState, opts?: pulumi.CustomResourceOptions): ResourcemanagerCloudIamBinding; /** * Returns true if the given object is an instance of ResourcemanagerCloudIamBinding. 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 ResourcemanagerCloudIamBinding; /** * ID of the cloud to attach the policy to. */ readonly cloudId: pulumi.Output; /** * An array of identities that will be granted the privilege in the `role`. * Each entry can have one of the following values: * * **userAccount:{user_id}**: A unique user ID that represents a specific Yandex account. * * **serviceAccount:{service_account_id}**: A unique service account ID. * * **federatedUser:{federated_user_id}**: A unique federated user ID. */ readonly members: pulumi.Output; /** * The role that should be assigned. Only one * `yandex.ResourcemanagerCloudIamBinding` can be used per role. */ readonly role: pulumi.Output; readonly sleepAfter: pulumi.Output; /** * Create a ResourcemanagerCloudIamBinding 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: ResourcemanagerCloudIamBindingArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering ResourcemanagerCloudIamBinding resources. */ export interface ResourcemanagerCloudIamBindingState { /** * ID of the cloud to attach the policy to. */ cloudId?: pulumi.Input; /** * An array of identities that will be granted the privilege in the `role`. * Each entry can have one of the following values: * * **userAccount:{user_id}**: A unique user ID that represents a specific Yandex account. * * **serviceAccount:{service_account_id}**: A unique service account ID. * * **federatedUser:{federated_user_id}**: A unique federated user ID. */ members?: pulumi.Input[]>; /** * The role that should be assigned. Only one * `yandex.ResourcemanagerCloudIamBinding` can be used per role. */ role?: pulumi.Input; sleepAfter?: pulumi.Input; } /** * The set of arguments for constructing a ResourcemanagerCloudIamBinding resource. */ export interface ResourcemanagerCloudIamBindingArgs { /** * ID of the cloud to attach the policy to. */ cloudId: pulumi.Input; /** * An array of identities that will be granted the privilege in the `role`. * Each entry can have one of the following values: * * **userAccount:{user_id}**: A unique user ID that represents a specific Yandex account. * * **serviceAccount:{service_account_id}**: A unique service account ID. * * **federatedUser:{federated_user_id}**: A unique federated user ID. */ members: pulumi.Input[]>; /** * The role that should be assigned. Only one * `yandex.ResourcemanagerCloudIamBinding` can be used per role. */ role: pulumi.Input; sleepAfter?: pulumi.Input; }