def _internal_init(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions]=None, group_id: Optional[pulumi.Input[str]]=None, users: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]=None, __props__=None):
    if (opts is None):
        opts = pulumi.ResourceOptions()
    if (not isinstance(opts, pulumi.ResourceOptions)):
        raise TypeError('Expected resource options to be a ResourceOptions instance')
    if (opts.version is None):
        opts.version = _utilities.get_version()
    if (opts.id is None):
        if (__props__ is not None):
            raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource')
        __props__ = GroupMembershipsArgs.__new__(GroupMembershipsArgs)
        if ((group_id is None) and (not opts.urn)):
            raise TypeError("Missing required property 'group_id'")
        __props__.__dict__['group_id'] = group_id
        if ((users is None) and (not opts.urn)):
            raise TypeError("Missing required property 'users'")
        __props__.__dict__['users'] = users
    super(GroupMemberships, __self__).__init__('okta:index/groupMemberships:GroupMemberships', resource_name, __props__, opts)
def _internal_init(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions]=None, group_id: Optional[pulumi.Input[str]]=None, users: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]=None, __props__=None):
    if (opts is None):
        opts = pulumi.ResourceOptions()
    if (not isinstance(opts, pulumi.ResourceOptions)):
        raise TypeError('Expected resource options to be a ResourceOptions instance')
    if (opts.version is None):
        opts.version = _utilities.get_version()
    if (opts.id is None):
        if (__props__ is not None):
            raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource')
        __props__ = GroupMembershipsArgs.__new__(GroupMembershipsArgs)
        if ((group_id is None) and (not opts.urn)):
            raise TypeError("Missing required property 'group_id'")
        __props__.__dict__['group_id'] = group_id
        if ((users is None) and (not opts.urn)):
            raise TypeError("Missing required property 'users'")
        __props__.__dict__['users'] = users
    super(GroupMemberships, __self__).__init__('okta:index/groupMemberships:GroupMemberships', resource_name, __props__, opts)