import * as pulumi from "@pulumi/pulumi"; /** * Allows creation and management of a single member for a single binding within * the IAM policy for an existing Yandex Resource Manager folder. * * > **Note:** This resource _must not_ be used in conjunction with * `yandex.ResourcemanagerFolderIamPolicy` or they will conflict over what your policy should be. Similarly, roles controlled by `yandex.ResourcemanagerFolderIamBinding` * should not be assigned using `yandex.ResourcemanagerFolderIamMember`. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as yandex from "@pulumi/yandex"; * * const department1 = pulumi.output(yandex.getResourcemanagerFolder({ * folderId: "some_folder_id", * })); * const admin = new yandex.ResourcemanagerFolderIamMember("admin", { * folderId: yandex_resourcemanager_department1.name, * member: "userAccount:user_id", * role: "editor", * }); * ``` * * ## Import * * IAM member imports use space-delimited identifiers; the resource in question, the role, and the account. This member resource can be imported using the `folder id`, role, and account, e.g. * * ```sh * $ pulumi import yandex:index/resourcemanagerFolderIamMember:ResourcemanagerFolderIamMember my_project "folder_id viewer foo@example.com" * ``` */ export declare class ResourcemanagerFolderIamMember extends pulumi.CustomResource { /** * Get an existing ResourcemanagerFolderIamMember 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?: ResourcemanagerFolderIamMemberState, opts?: pulumi.CustomResourceOptions): ResourcemanagerFolderIamMember; /** * Returns true if the given object is an instance of ResourcemanagerFolderIamMember. 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 ResourcemanagerFolderIamMember; /** * ID of the folder to attach a policy to. */ readonly folderId: pulumi.Output; /** * The identity that will be granted the privilege that is specified in the `role` field. * This field 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. */ readonly member: pulumi.Output; /** * The role that should be assigned. */ readonly role: pulumi.Output; readonly sleepAfter: pulumi.Output; /** * Create a ResourcemanagerFolderIamMember 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: ResourcemanagerFolderIamMemberArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering ResourcemanagerFolderIamMember resources. */ export interface ResourcemanagerFolderIamMemberState { /** * ID of the folder to attach a policy to. */ folderId?: pulumi.Input; /** * The identity that will be granted the privilege that is specified in the `role` field. * This field 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. */ member?: pulumi.Input; /** * The role that should be assigned. */ role?: pulumi.Input; sleepAfter?: pulumi.Input; } /** * The set of arguments for constructing a ResourcemanagerFolderIamMember resource. */ export interface ResourcemanagerFolderIamMemberArgs { /** * ID of the folder to attach a policy to. */ folderId: pulumi.Input; /** * The identity that will be granted the privilege that is specified in the `role` field. * This field 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. */ member: pulumi.Input; /** * The role that should be assigned. */ role: pulumi.Input; sleepAfter?: pulumi.Input; }