import * as pulumi from "@pulumi/pulumi"; /** * Allows creation and management of a single binding within IAM policy for * an existing Yandex.Cloud Organization Manager organization. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as yandex from "@pulumi/yandex"; * * const editor = new yandex.OrganizationManagerOrganizationIamBinding("editor", { * members: ["userAccount:some_user_id"], * organizationId: "some_organization_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 `organization_id` and role, e.g. * * ```sh * $ pulumi import yandex:index/organizationManagerOrganizationIamBinding:OrganizationManagerOrganizationIamBinding viewer "organization_id viewer" * ``` */ export declare class OrganizationManagerOrganizationIamBinding extends pulumi.CustomResource { /** * Get an existing OrganizationManagerOrganizationIamBinding 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?: OrganizationManagerOrganizationIamBindingState, opts?: pulumi.CustomResourceOptions): OrganizationManagerOrganizationIamBinding; /** * Returns true if the given object is an instance of OrganizationManagerOrganizationIamBinding. 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 OrganizationManagerOrganizationIamBinding; /** * 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; /** * ID of the organization to attach the policy to. */ readonly organizationId: pulumi.Output; /** * The role that should be assigned. Only one * `yandex.OrganizationManagerOrganizationIamBinding` can be used per role. */ readonly role: pulumi.Output; readonly sleepAfter: pulumi.Output; /** * Create a OrganizationManagerOrganizationIamBinding 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: OrganizationManagerOrganizationIamBindingArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering OrganizationManagerOrganizationIamBinding resources. */ export interface OrganizationManagerOrganizationIamBindingState { /** * 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[]>; /** * ID of the organization to attach the policy to. */ organizationId?: pulumi.Input; /** * The role that should be assigned. Only one * `yandex.OrganizationManagerOrganizationIamBinding` can be used per role. */ role?: pulumi.Input; sleepAfter?: pulumi.Input; } /** * The set of arguments for constructing a OrganizationManagerOrganizationIamBinding resource. */ export interface OrganizationManagerOrganizationIamBindingArgs { /** * 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[]>; /** * ID of the organization to attach the policy to. */ organizationId: pulumi.Input; /** * The role that should be assigned. Only one * `yandex.OrganizationManagerOrganizationIamBinding` can be used per role. */ role: pulumi.Input; sleepAfter?: pulumi.Input; }