Skip to main content

memberships

Creates, updates, deletes, gets or lists a memberships resource.

Overview

Namememberships
TypeResource
Idaws.securityagent.memberships

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
agent_space_idstringUnique identifier of the agent space.
application_idstringApplication identifier.
configobjectThe configuration for a membership. This is a union type that contains member-type-specific configuration.
created_atstring (date-time)The date and time the membership was created, in UTC format.
created_bystringThe identifier of the entity that created the membership.
member_typestringType of membership. (USER)
membership_idstringMember identifier.
metadataobjectThe metadata for the member.
updated_atstring (date-time)The date and time the membership was last updated, in UTC format.
updated_bystringThe identifier of the entity that last updated the membership.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_membershipsselectregionReturns a paginated list of membership summaries for the specified agent space within an application.
create_membershipinsertregion, applicationId, agentSpaceId, membershipId, memberTypeCreates a new membership, granting a user access to an agent space within an application.
delete_membershipdeleteregionDeletes a membership, revoking a user's access to an agent space.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
regionstringAWS region (default: us-east-1)

SELECT examples

Returns a paginated list of membership summaries for the specified agent space within an application.

SELECT
agent_space_id,
application_id,
config,
created_at,
created_by,
member_type,
membership_id,
metadata,
updated_at,
updated_by
FROM aws.securityagent.memberships
WHERE region = '{{ region }}' -- required
;

INSERT examples

Creates a new membership, granting a user access to an agent space within an application.

INSERT INTO aws.securityagent.memberships (
applicationId,
agentSpaceId,
membershipId,
memberType,
config,
region
)
SELECT
'{{ applicationId }}' /* required */,
'{{ agentSpaceId }}' /* required */,
'{{ membershipId }}' /* required */,
'{{ memberType }}' /* required */,
'{{ config }}',
'{{ region }}'
;

DELETE examples

Deletes a membership, revoking a user's access to an agent space.

DELETE FROM aws.securityagent.memberships
WHERE region = '{{ region }}' --required
;