Show / Hide Table of Contents

Class GroupMembership

Provides a RAM Group membership resource.

Example Usage

using Pulumi;
using AliCloud = Pulumi.AliCloud;

class MyStack : Stack
{
public MyStack()
{
    // Create a RAM Group membership.
    var @group = new AliCloud.Ram.Group("group", new AliCloud.Ram.GroupArgs
    {
        Comments = "this is a group comments.",
        Force = true,
    });
    var user = new AliCloud.Ram.User("user", new AliCloud.Ram.UserArgs
    {
        Comments = "yoyoyo",
        DisplayName = "user_display_name",
        Email = "hello.uuu@aaa.com",
        Force = true,
        Mobile = "86-18688888888",
    });
    var user1 = new AliCloud.Ram.User("user1", new AliCloud.Ram.UserArgs
    {
        Comments = "yoyoyo",
        DisplayName = "user_display_name1",
        Email = "hello.uuu@aaa.com",
        Force = true,
        Mobile = "86-18688888889",
    });
    var membership = new AliCloud.Ram.GroupMembership("membership", new AliCloud.Ram.GroupMembershipArgs
    {
        GroupName = @group.Name,
        UserNames = 
        {
            user.Name,
            user1.Name,
        },
    });
}

}
Inheritance
System.Object
Resource
CustomResource
GroupMembership
Inherited Members
CustomResource.Id
Resource.GetResourceType()
Resource.GetResourceName()
Resource.Urn
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Pulumi.AliCloud.Ram
Assembly: Pulumi.AliCloud.dll
Syntax
public class GroupMembership : CustomResource

Constructors

View Source

GroupMembership(String, GroupMembershipArgs, CustomResourceOptions)

Create a GroupMembership resource with the given unique name, arguments, and options.

Declaration
public GroupMembership(string name, GroupMembershipArgs args, CustomResourceOptions options = null)
Parameters
Type Name Description
System.String name

The unique name of the resource

GroupMembershipArgs args

The arguments used to populate this resource's properties

CustomResourceOptions options

A bag of options that control this resource's behavior

Properties

View Source

GroupName

Name of the RAM group. This name can have a string of 1 to 64 characters, must contain only alphanumeric characters or hyphen "-", and must not begin with a hyphen.

Declaration
public Output<string> GroupName { get; }
Property Value
Type Description
Output<System.String>
View Source

UserNames

Set of user name which will be added to group. Each name can have a string of 1 to 64 characters, must contain only alphanumeric characters or hyphens, such as "-",".","_", and must not begin with a hyphen.

Declaration
public Output<ImmutableArray<string>> UserNames { get; }
Property Value
Type Description
Output<System.Collections.Immutable.ImmutableArray<System.String>>

Methods

View Source

Get(String, Input<String>, GroupMembershipState, CustomResourceOptions)

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

Declaration
public static GroupMembership Get(string name, Input<string> id, GroupMembershipState state = null, CustomResourceOptions options = null)
Parameters
Type Name Description
System.String name

The unique name of the resulting resource.

Input<System.String> id

The unique provider ID of the resource to lookup.

GroupMembershipState state

Any extra arguments used during the lookup.

CustomResourceOptions options

A bag of options that control this resource's behavior

Returns
Type Description
GroupMembership
  • View Source
Back to top Copyright 2016-2020, Pulumi Corporation.