1. Packages
  2. AWS Classic
  3. API Docs
  4. identitystore
  5. GroupMembership

Try AWS Native preview for resources not in the classic version.

AWS Classic v6.31.1 published on Thursday, Apr 18, 2024 by Pulumi

aws.identitystore.GroupMembership

Explore with Pulumi AI

aws logo

Try AWS Native preview for resources not in the classic version.

AWS Classic v6.31.1 published on Thursday, Apr 18, 2024 by Pulumi

    Resource for managing an AWS IdentityStore Group Membership.

    Create GroupMembership Resource

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

    Constructor syntax

    new GroupMembership(name: string, args: GroupMembershipArgs, opts?: CustomResourceOptions);
    @overload
    def GroupMembership(resource_name: str,
                        args: GroupMembershipArgs,
                        opts: Optional[ResourceOptions] = None)
    
    @overload
    def GroupMembership(resource_name: str,
                        opts: Optional[ResourceOptions] = None,
                        group_id: Optional[str] = None,
                        identity_store_id: Optional[str] = None,
                        member_id: Optional[str] = None)
    func NewGroupMembership(ctx *Context, name string, args GroupMembershipArgs, opts ...ResourceOption) (*GroupMembership, error)
    public GroupMembership(string name, GroupMembershipArgs args, CustomResourceOptions? opts = null)
    public GroupMembership(String name, GroupMembershipArgs args)
    public GroupMembership(String name, GroupMembershipArgs args, CustomResourceOptions options)
    
    type: aws:identitystore:GroupMembership
    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 GroupMembershipArgs
    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 GroupMembershipArgs
    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 GroupMembershipArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args GroupMembershipArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args GroupMembershipArgs
    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 awsGroupMembershipResource = new Aws.IdentityStore.GroupMembership("awsGroupMembershipResource", new()
    {
        GroupId = "string",
        IdentityStoreId = "string",
        MemberId = "string",
    });
    
    example, err := identitystore.NewGroupMembership(ctx, "awsGroupMembershipResource", &identitystore.GroupMembershipArgs{
    	GroupId:         pulumi.String("string"),
    	IdentityStoreId: pulumi.String("string"),
    	MemberId:        pulumi.String("string"),
    })
    
    var awsGroupMembershipResource = new GroupMembership("awsGroupMembershipResource", GroupMembershipArgs.builder()        
        .groupId("string")
        .identityStoreId("string")
        .memberId("string")
        .build());
    
    aws_group_membership_resource = aws.identitystore.GroupMembership("awsGroupMembershipResource",
        group_id="string",
        identity_store_id="string",
        member_id="string")
    
    const awsGroupMembershipResource = new aws.identitystore.GroupMembership("awsGroupMembershipResource", {
        groupId: "string",
        identityStoreId: "string",
        memberId: "string",
    });
    
    type: aws:identitystore:GroupMembership
    properties:
        groupId: string
        identityStoreId: string
        memberId: string
    

    GroupMembership 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 GroupMembership resource accepts the following input properties:

    GroupId string
    The identifier for a group in the Identity Store.
    IdentityStoreId string
    Identity Store ID associated with the Single Sign-On Instance.
    MemberId string
    The identifier for a user in the Identity Store.
    GroupId string
    The identifier for a group in the Identity Store.
    IdentityStoreId string
    Identity Store ID associated with the Single Sign-On Instance.
    MemberId string
    The identifier for a user in the Identity Store.
    groupId String
    The identifier for a group in the Identity Store.
    identityStoreId String
    Identity Store ID associated with the Single Sign-On Instance.
    memberId String
    The identifier for a user in the Identity Store.
    groupId string
    The identifier for a group in the Identity Store.
    identityStoreId string
    Identity Store ID associated with the Single Sign-On Instance.
    memberId string
    The identifier for a user in the Identity Store.
    group_id str
    The identifier for a group in the Identity Store.
    identity_store_id str
    Identity Store ID associated with the Single Sign-On Instance.
    member_id str
    The identifier for a user in the Identity Store.
    groupId String
    The identifier for a group in the Identity Store.
    identityStoreId String
    Identity Store ID associated with the Single Sign-On Instance.
    memberId String
    The identifier for a user in the Identity Store.

    Outputs

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

    Id string
    The provider-assigned unique ID for this managed resource.
    MembershipId string
    The identifier of the newly created group membership in the Identity Store.
    Id string
    The provider-assigned unique ID for this managed resource.
    MembershipId string
    The identifier of the newly created group membership in the Identity Store.
    id String
    The provider-assigned unique ID for this managed resource.
    membershipId String
    The identifier of the newly created group membership in the Identity Store.
    id string
    The provider-assigned unique ID for this managed resource.
    membershipId string
    The identifier of the newly created group membership in the Identity Store.
    id str
    The provider-assigned unique ID for this managed resource.
    membership_id str
    The identifier of the newly created group membership in the Identity Store.
    id String
    The provider-assigned unique ID for this managed resource.
    membershipId String
    The identifier of the newly created group membership in the Identity Store.

    Look up Existing GroupMembership Resource

    Get an existing GroupMembership 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?: GroupMembershipState, opts?: CustomResourceOptions): GroupMembership
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            group_id: Optional[str] = None,
            identity_store_id: Optional[str] = None,
            member_id: Optional[str] = None,
            membership_id: Optional[str] = None) -> GroupMembership
    func GetGroupMembership(ctx *Context, name string, id IDInput, state *GroupMembershipState, opts ...ResourceOption) (*GroupMembership, error)
    public static GroupMembership Get(string name, Input<string> id, GroupMembershipState? state, CustomResourceOptions? opts = null)
    public static GroupMembership get(String name, Output<String> id, GroupMembershipState 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:
    GroupId string
    The identifier for a group in the Identity Store.
    IdentityStoreId string
    Identity Store ID associated with the Single Sign-On Instance.
    MemberId string
    The identifier for a user in the Identity Store.
    MembershipId string
    The identifier of the newly created group membership in the Identity Store.
    GroupId string
    The identifier for a group in the Identity Store.
    IdentityStoreId string
    Identity Store ID associated with the Single Sign-On Instance.
    MemberId string
    The identifier for a user in the Identity Store.
    MembershipId string
    The identifier of the newly created group membership in the Identity Store.
    groupId String
    The identifier for a group in the Identity Store.
    identityStoreId String
    Identity Store ID associated with the Single Sign-On Instance.
    memberId String
    The identifier for a user in the Identity Store.
    membershipId String
    The identifier of the newly created group membership in the Identity Store.
    groupId string
    The identifier for a group in the Identity Store.
    identityStoreId string
    Identity Store ID associated with the Single Sign-On Instance.
    memberId string
    The identifier for a user in the Identity Store.
    membershipId string
    The identifier of the newly created group membership in the Identity Store.
    group_id str
    The identifier for a group in the Identity Store.
    identity_store_id str
    Identity Store ID associated with the Single Sign-On Instance.
    member_id str
    The identifier for a user in the Identity Store.
    membership_id str
    The identifier of the newly created group membership in the Identity Store.
    groupId String
    The identifier for a group in the Identity Store.
    identityStoreId String
    Identity Store ID associated with the Single Sign-On Instance.
    memberId String
    The identifier for a user in the Identity Store.
    membershipId String
    The identifier of the newly created group membership in the Identity Store.

    Import

    Using pulumi import, import aws_identitystore_group_membership using the identity_store_id/membership_id. For example:

    $ pulumi import aws:identitystore/groupMembership:GroupMembership example d-0000000000/00000000-0000-0000-0000-000000000000
    

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

    Package Details

    Repository
    AWS Classic pulumi/pulumi-aws
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the aws Terraform Provider.
    aws logo

    Try AWS Native preview for resources not in the classic version.

    AWS Classic v6.31.1 published on Thursday, Apr 18, 2024 by Pulumi