@pulumi/yandex
Version:
A Pulumi package for creating and managing yandex cloud resources.
119 lines (118 loc) • 5.33 kB
TypeScript
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 Organization Manager organization.
*
* > **Note:** Roles controlled by `yandex.OrganizationManagerOrganizationIamBinding`
* should not be assigned using `yandex.OrganizationManagerOrganizationIamMember`.
*
* > **Note:** When you delete `yandex.OrganizationManagerOrganizationIamBinding` resource,
* the roles can be deleted from other users within the organization as well. Be careful!
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as yandex from "@pulumi/yandex";
*
* const editor = new yandex.OrganizationManagerOrganizationIamMember("editor", {
* member: "userAccount:user_id",
* organizationId: "some_organization_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 `organization id`, role, and account, e.g.
*
* ```sh
* $ pulumi import yandex:index/organizationManagerOrganizationIamMember:OrganizationManagerOrganizationIamMember my_project "organization_id viewer foo@example.com"
* ```
*/
export declare class OrganizationManagerOrganizationIamMember extends pulumi.CustomResource {
/**
* Get an existing OrganizationManagerOrganizationIamMember 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<pulumi.ID>, state?: OrganizationManagerOrganizationIamMemberState, opts?: pulumi.CustomResourceOptions): OrganizationManagerOrganizationIamMember;
/**
* Returns true if the given object is an instance of OrganizationManagerOrganizationIamMember. 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 OrganizationManagerOrganizationIamMember;
/**
* 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.
* * **federatedUser:{federated_user_id}**: A unique federated user ID.
*/
readonly member: pulumi.Output<string>;
/**
* ID of the organization to attach a policy to.
*/
readonly organizationId: pulumi.Output<string>;
/**
* The role that should be assigned.
*/
readonly role: pulumi.Output<string>;
readonly sleepAfter: pulumi.Output<number | undefined>;
/**
* Create a OrganizationManagerOrganizationIamMember 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: OrganizationManagerOrganizationIamMemberArgs, opts?: pulumi.CustomResourceOptions);
}
/**
* Input properties used for looking up and filtering OrganizationManagerOrganizationIamMember resources.
*/
export interface OrganizationManagerOrganizationIamMemberState {
/**
* 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.
* * **federatedUser:{federated_user_id}**: A unique federated user ID.
*/
member?: pulumi.Input<string>;
/**
* ID of the organization to attach a policy to.
*/
organizationId?: pulumi.Input<string>;
/**
* The role that should be assigned.
*/
role?: pulumi.Input<string>;
sleepAfter?: pulumi.Input<number>;
}
/**
* The set of arguments for constructing a OrganizationManagerOrganizationIamMember resource.
*/
export interface OrganizationManagerOrganizationIamMemberArgs {
/**
* 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.
* * **federatedUser:{federated_user_id}**: A unique federated user ID.
*/
member: pulumi.Input<string>;
/**
* ID of the organization to attach a policy to.
*/
organizationId: pulumi.Input<string>;
/**
* The role that should be assigned.
*/
role: pulumi.Input<string>;
sleepAfter?: pulumi.Input<number>;
}