1. Packages
  2. Yandex
  3. API Docs
  4. OrganizationManagerOrganizationIamMember
Yandex v0.13.0 published on Tuesday, Feb 22, 2022 by Pulumi

yandex.OrganizationManagerOrganizationIamMember

Explore with Pulumi AI

yandex logo
Yandex v0.13.0 published on Tuesday, Feb 22, 2022 by 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

    using Pulumi;
    using Yandex = Pulumi.Yandex;
    
    class MyStack : Stack
    {
        public MyStack()
        {
            var editor = new Yandex.OrganizationManagerOrganizationIamMember("editor", new Yandex.OrganizationManagerOrganizationIamMemberArgs
            {
                Member = "userAccount:user_id",
                OrganizationId = "some_organization_id",
                Role = "editor",
            });
        }
    
    }
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-yandex/sdk/go/yandex"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := yandex.NewOrganizationManagerOrganizationIamMember(ctx, "editor", &yandex.OrganizationManagerOrganizationIamMemberArgs{
    			Member:         pulumi.String("userAccount:user_id"),
    			OrganizationId: pulumi.String("some_organization_id"),
    			Role:           pulumi.String("editor"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    

    Coming soon!

    import pulumi
    import pulumi_yandex as yandex
    
    editor = yandex.OrganizationManagerOrganizationIamMember("editor",
        member="userAccount:user_id",
        organization_id="some_organization_id",
        role="editor")
    
    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",
    });
    

    Coming soon!

    Create OrganizationManagerOrganizationIamMember Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new OrganizationManagerOrganizationIamMember(name: string, args: OrganizationManagerOrganizationIamMemberArgs, opts?: CustomResourceOptions);
    @overload
    def OrganizationManagerOrganizationIamMember(resource_name: str,
                                                 args: OrganizationManagerOrganizationIamMemberArgs,
                                                 opts: Optional[ResourceOptions] = None)
    
    @overload
    def OrganizationManagerOrganizationIamMember(resource_name: str,
                                                 opts: Optional[ResourceOptions] = None,
                                                 member: Optional[str] = None,
                                                 organization_id: Optional[str] = None,
                                                 role: Optional[str] = None,
                                                 sleep_after: Optional[int] = None)
    func NewOrganizationManagerOrganizationIamMember(ctx *Context, name string, args OrganizationManagerOrganizationIamMemberArgs, opts ...ResourceOption) (*OrganizationManagerOrganizationIamMember, error)
    public OrganizationManagerOrganizationIamMember(string name, OrganizationManagerOrganizationIamMemberArgs args, CustomResourceOptions? opts = null)
    public OrganizationManagerOrganizationIamMember(String name, OrganizationManagerOrganizationIamMemberArgs args)
    public OrganizationManagerOrganizationIamMember(String name, OrganizationManagerOrganizationIamMemberArgs args, CustomResourceOptions options)
    
    type: yandex:OrganizationManagerOrganizationIamMember
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args OrganizationManagerOrganizationIamMemberArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args OrganizationManagerOrganizationIamMemberArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args OrganizationManagerOrganizationIamMemberArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args OrganizationManagerOrganizationIamMemberArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args OrganizationManagerOrganizationIamMemberArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Example

    The following reference example uses placeholder values for all input properties.

    var organizationManagerOrganizationIamMemberResource = new Yandex.OrganizationManagerOrganizationIamMember("organizationManagerOrganizationIamMemberResource", new()
    {
        Member = "string",
        OrganizationId = "string",
        Role = "string",
        SleepAfter = 0,
    });
    
    example, err := yandex.NewOrganizationManagerOrganizationIamMember(ctx, "organizationManagerOrganizationIamMemberResource", &yandex.OrganizationManagerOrganizationIamMemberArgs{
    	Member:         pulumi.String("string"),
    	OrganizationId: pulumi.String("string"),
    	Role:           pulumi.String("string"),
    	SleepAfter:     pulumi.Int(0),
    })
    
    var organizationManagerOrganizationIamMemberResource = new OrganizationManagerOrganizationIamMember("organizationManagerOrganizationIamMemberResource", OrganizationManagerOrganizationIamMemberArgs.builder()        
        .member("string")
        .organizationId("string")
        .role("string")
        .sleepAfter(0)
        .build());
    
    organization_manager_organization_iam_member_resource = yandex.OrganizationManagerOrganizationIamMember("organizationManagerOrganizationIamMemberResource",
        member="string",
        organization_id="string",
        role="string",
        sleep_after=0)
    
    const organizationManagerOrganizationIamMemberResource = new yandex.OrganizationManagerOrganizationIamMember("organizationManagerOrganizationIamMemberResource", {
        member: "string",
        organizationId: "string",
        role: "string",
        sleepAfter: 0,
    });
    
    type: yandex:OrganizationManagerOrganizationIamMember
    properties:
        member: string
        organizationId: string
        role: string
        sleepAfter: 0
    

    OrganizationManagerOrganizationIamMember Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    The OrganizationManagerOrganizationIamMember resource accepts the following input properties:

    Member string
    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.
    OrganizationId string
    ID of the organization to attach a policy to.
    Role string
    The role that should be assigned.
    SleepAfter int
    Member string
    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.
    OrganizationId string
    ID of the organization to attach a policy to.
    Role string
    The role that should be assigned.
    SleepAfter int
    member String
    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.
    organizationId String
    ID of the organization to attach a policy to.
    role String
    The role that should be assigned.
    sleepAfter Integer
    member string
    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.
    organizationId string
    ID of the organization to attach a policy to.
    role string
    The role that should be assigned.
    sleepAfter number
    member str
    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.
    organization_id str
    ID of the organization to attach a policy to.
    role str
    The role that should be assigned.
    sleep_after int
    member String
    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.
    organizationId String
    ID of the organization to attach a policy to.
    role String
    The role that should be assigned.
    sleepAfter Number

    Outputs

    All input properties are implicitly available as output properties. Additionally, the OrganizationManagerOrganizationIamMember resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.
    id string
    The provider-assigned unique ID for this managed resource.
    id str
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing OrganizationManagerOrganizationIamMember Resource

    Get an existing OrganizationManagerOrganizationIamMember resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: OrganizationManagerOrganizationIamMemberState, opts?: CustomResourceOptions): OrganizationManagerOrganizationIamMember
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            member: Optional[str] = None,
            organization_id: Optional[str] = None,
            role: Optional[str] = None,
            sleep_after: Optional[int] = None) -> OrganizationManagerOrganizationIamMember
    func GetOrganizationManagerOrganizationIamMember(ctx *Context, name string, id IDInput, state *OrganizationManagerOrganizationIamMemberState, opts ...ResourceOption) (*OrganizationManagerOrganizationIamMember, error)
    public static OrganizationManagerOrganizationIamMember Get(string name, Input<string> id, OrganizationManagerOrganizationIamMemberState? state, CustomResourceOptions? opts = null)
    public static OrganizationManagerOrganizationIamMember get(String name, Output<String> id, OrganizationManagerOrganizationIamMemberState state, CustomResourceOptions options)
    Resource lookup is not supported in YAML
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    Member string
    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.
    OrganizationId string
    ID of the organization to attach a policy to.
    Role string
    The role that should be assigned.
    SleepAfter int
    Member string
    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.
    OrganizationId string
    ID of the organization to attach a policy to.
    Role string
    The role that should be assigned.
    SleepAfter int
    member String
    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.
    organizationId String
    ID of the organization to attach a policy to.
    role String
    The role that should be assigned.
    sleepAfter Integer
    member string
    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.
    organizationId string
    ID of the organization to attach a policy to.
    role string
    The role that should be assigned.
    sleepAfter number
    member str
    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.
    organization_id str
    ID of the organization to attach a policy to.
    role str
    The role that should be assigned.
    sleep_after int
    member String
    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.
    organizationId String
    ID of the organization to attach a policy to.
    role String
    The role that should be assigned.
    sleepAfter Number

    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.

     $ pulumi import yandex:index/organizationManagerOrganizationIamMember:OrganizationManagerOrganizationIamMember my_project "organization_id viewer foo@example.com"
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    Yandex pulumi/pulumi-yandex
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the yandex Terraform Provider.
    yandex logo
    Yandex v0.13.0 published on Tuesday, Feb 22, 2022 by Pulumi