GroupMembership
Create a GroupMembership Resource
new GroupMembership(name: string, args: GroupMembershipArgs, opts?: CustomResourceOptions);def GroupMembership(resource_name, opts=None, group=None, member_key=None, preferred_member_key=None, roles=None, __props__=None);func NewGroupMembership(ctx *Context, name string, args GroupMembershipArgs, opts ...ResourceOption) (*GroupMembership, error)public GroupMembership(string name, GroupMembershipArgs args, CustomResourceOptions? opts = null)- 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.
- opts ResourceOptions
- A bag of options that control this 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.
GroupMembership Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.
Inputs
The GroupMembership resource accepts the following input properties:
- Group string
The name of the Group to create this membership in.
- Roles
List<Group
Membership Role Args> The MembershipRoles that apply to the Membership. Must not contain duplicate MembershipRoles with the same name. Structure is documented below.
- Member
Key GroupMembership Member Key Args EntityKey of the member. Structure is documented below.
- Preferred
Member GroupKey Membership Preferred Member Key Args EntityKey of the member. Structure is documented below.
- Group string
The name of the Group to create this membership in.
- Roles
[]Group
Membership Role The MembershipRoles that apply to the Membership. Must not contain duplicate MembershipRoles with the same name. Structure is documented below.
- Member
Key GroupMembership Member Key EntityKey of the member. Structure is documented below.
- Preferred
Member GroupKey Membership Preferred Member Key EntityKey of the member. Structure is documented below.
- group string
The name of the Group to create this membership in.
- roles
Group
Membership Role[] The MembershipRoles that apply to the Membership. Must not contain duplicate MembershipRoles with the same name. Structure is documented below.
- member
Key GroupMembership Member Key EntityKey of the member. Structure is documented below.
- preferred
Member GroupKey Membership Preferred Member Key EntityKey of the member. Structure is documented below.
- group str
The name of the Group to create this membership in.
- roles
List[Group
Membership Role] The MembershipRoles that apply to the Membership. Must not contain duplicate MembershipRoles with the same name. Structure is documented below.
- member_
key Dict[GroupMembership Member Key] EntityKey of the member. Structure is documented below.
- preferred_
member_ Dict[Groupkey Membership Preferred Member Key] EntityKey of the member. Structure is documented below.
Outputs
All input properties are implicitly available as output properties. Additionally, the GroupMembership resource produces the following output properties:
- Create
Time string The time when the Membership was created.
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
The name of the MembershipRole. Must be one of OWNER, MANAGER, MEMBER.
- Type string
The type of the membership.
- Update
Time string The time when the Membership was last updated.
- Create
Time string The time when the Membership was created.
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
The name of the MembershipRole. Must be one of OWNER, MANAGER, MEMBER.
- Type string
The type of the membership.
- Update
Time string The time when the Membership was last updated.
- create
Time string The time when the Membership was created.
- id string
- The provider-assigned unique ID for this managed resource.
- name string
The name of the MembershipRole. Must be one of OWNER, MANAGER, MEMBER.
- type string
The type of the membership.
- update
Time string The time when the Membership was last updated.
- create_
time str The time when the Membership was created.
- id str
- The provider-assigned unique ID for this managed resource.
- name str
The name of the MembershipRole. Must be one of OWNER, MANAGER, MEMBER.
- type str
The type of the membership.
- update_
time str The time when the Membership was last updated.
Look up an 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): GroupMembershipstatic get(resource_name, id, opts=None, create_time=None, group=None, member_key=None, name=None, preferred_member_key=None, roles=None, type=None, update_time=None, __props__=None);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)- 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.
The following state arguments are supported:
- Create
Time string The time when the Membership was created.
- Group string
The name of the Group to create this membership in.
- Member
Key GroupMembership Member Key Args EntityKey of the member. Structure is documented below.
- Name string
The name of the MembershipRole. Must be one of OWNER, MANAGER, MEMBER.
- Preferred
Member GroupKey Membership Preferred Member Key Args EntityKey of the member. Structure is documented below.
- Roles
List<Group
Membership Role Args> The MembershipRoles that apply to the Membership. Must not contain duplicate MembershipRoles with the same name. Structure is documented below.
- Type string
The type of the membership.
- Update
Time string The time when the Membership was last updated.
- Create
Time string The time when the Membership was created.
- Group string
The name of the Group to create this membership in.
- Member
Key GroupMembership Member Key EntityKey of the member. Structure is documented below.
- Name string
The name of the MembershipRole. Must be one of OWNER, MANAGER, MEMBER.
- Preferred
Member GroupKey Membership Preferred Member Key EntityKey of the member. Structure is documented below.
- Roles
[]Group
Membership Role The MembershipRoles that apply to the Membership. Must not contain duplicate MembershipRoles with the same name. Structure is documented below.
- Type string
The type of the membership.
- Update
Time string The time when the Membership was last updated.
- create
Time string The time when the Membership was created.
- group string
The name of the Group to create this membership in.
- member
Key GroupMembership Member Key EntityKey of the member. Structure is documented below.
- name string
The name of the MembershipRole. Must be one of OWNER, MANAGER, MEMBER.
- preferred
Member GroupKey Membership Preferred Member Key EntityKey of the member. Structure is documented below.
- roles
Group
Membership Role[] The MembershipRoles that apply to the Membership. Must not contain duplicate MembershipRoles with the same name. Structure is documented below.
- type string
The type of the membership.
- update
Time string The time when the Membership was last updated.
- create_
time str The time when the Membership was created.
- group str
The name of the Group to create this membership in.
- member_
key Dict[GroupMembership Member Key] EntityKey of the member. Structure is documented below.
- name str
The name of the MembershipRole. Must be one of OWNER, MANAGER, MEMBER.
- preferred_
member_ Dict[Groupkey Membership Preferred Member Key] EntityKey of the member. Structure is documented below.
- roles
List[Group
Membership Role] The MembershipRoles that apply to the Membership. Must not contain duplicate MembershipRoles with the same name. Structure is documented below.
- type str
The type of the membership.
- update_
time str The time when the Membership was last updated.
Supporting Types
GroupMembershipMemberKey
- Id string
The ID of the entity. For Google-managed entities, the id must be the email address of an existing group or user. For external-identity-mapped entities, the id must be a string conforming to the Identity Source’s requirements. Must be unique within a namespace.
- Namespace string
The namespace in which the entity exists. If not specified, the EntityKey represents a Google-managed entity such as a Google user or a Google Group. If specified, the EntityKey represents an external-identity-mapped group. The namespace must correspond to an identity source created in Admin Console and must be in the form of
identitysources/{identity_source_id}.
- Id string
The ID of the entity. For Google-managed entities, the id must be the email address of an existing group or user. For external-identity-mapped entities, the id must be a string conforming to the Identity Source’s requirements. Must be unique within a namespace.
- Namespace string
The namespace in which the entity exists. If not specified, the EntityKey represents a Google-managed entity such as a Google user or a Google Group. If specified, the EntityKey represents an external-identity-mapped group. The namespace must correspond to an identity source created in Admin Console and must be in the form of
identitysources/{identity_source_id}.
- id string
The ID of the entity. For Google-managed entities, the id must be the email address of an existing group or user. For external-identity-mapped entities, the id must be a string conforming to the Identity Source’s requirements. Must be unique within a namespace.
- namespace string
The namespace in which the entity exists. If not specified, the EntityKey represents a Google-managed entity such as a Google user or a Google Group. If specified, the EntityKey represents an external-identity-mapped group. The namespace must correspond to an identity source created in Admin Console and must be in the form of
identitysources/{identity_source_id}.
- id str
The ID of the entity. For Google-managed entities, the id must be the email address of an existing group or user. For external-identity-mapped entities, the id must be a string conforming to the Identity Source’s requirements. Must be unique within a namespace.
- namespace str
The namespace in which the entity exists. If not specified, the EntityKey represents a Google-managed entity such as a Google user or a Google Group. If specified, the EntityKey represents an external-identity-mapped group. The namespace must correspond to an identity source created in Admin Console and must be in the form of
identitysources/{identity_source_id}.
GroupMembershipPreferredMemberKey
- Id string
The ID of the entity. For Google-managed entities, the id must be the email address of an existing group or user. For external-identity-mapped entities, the id must be a string conforming to the Identity Source’s requirements. Must be unique within a namespace.
- Namespace string
The namespace in which the entity exists. If not specified, the EntityKey represents a Google-managed entity such as a Google user or a Google Group. If specified, the EntityKey represents an external-identity-mapped group. The namespace must correspond to an identity source created in Admin Console and must be in the form of
identitysources/{identity_source_id}.
- Id string
The ID of the entity. For Google-managed entities, the id must be the email address of an existing group or user. For external-identity-mapped entities, the id must be a string conforming to the Identity Source’s requirements. Must be unique within a namespace.
- Namespace string
The namespace in which the entity exists. If not specified, the EntityKey represents a Google-managed entity such as a Google user or a Google Group. If specified, the EntityKey represents an external-identity-mapped group. The namespace must correspond to an identity source created in Admin Console and must be in the form of
identitysources/{identity_source_id}.
- id string
The ID of the entity. For Google-managed entities, the id must be the email address of an existing group or user. For external-identity-mapped entities, the id must be a string conforming to the Identity Source’s requirements. Must be unique within a namespace.
- namespace string
The namespace in which the entity exists. If not specified, the EntityKey represents a Google-managed entity such as a Google user or a Google Group. If specified, the EntityKey represents an external-identity-mapped group. The namespace must correspond to an identity source created in Admin Console and must be in the form of
identitysources/{identity_source_id}.
- id str
The ID of the entity. For Google-managed entities, the id must be the email address of an existing group or user. For external-identity-mapped entities, the id must be a string conforming to the Identity Source’s requirements. Must be unique within a namespace.
- namespace str
The namespace in which the entity exists. If not specified, the EntityKey represents a Google-managed entity such as a Google user or a Google Group. If specified, the EntityKey represents an external-identity-mapped group. The namespace must correspond to an identity source created in Admin Console and must be in the form of
identitysources/{identity_source_id}.
GroupMembershipRole
Package Details
- Repository
- https://github.com/pulumi/pulumi-gcp
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
google-betaTerraform Provider.