Skip to main content

workteams

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

Overview

Nameworkteams
TypeResource
Idaws.sagemaker.workteams

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
create_datestring (date-time)The date and time that the work team was created (timestamp).
descriptionstringA description of the work team. (pattern: <code>.+</code>)
last_updated_datestring (date-time)The date and time that the work team was last updated (timestamp).
member_definitionsarrayA list of MemberDefinition objects that contains objects that identify the workers that make up the work team. Workforces can be created using Amazon Cognito or your own OIDC Identity Provider (IdP). For private workforces created using Amazon Cognito use CognitoMemberDefinition. For workforces created using your own OIDC identity provider (IdP) use OidcMemberDefinition.
notification_configurationobjectConfigures SNS notifications of available or expiring work items for work teams.
product_listing_idsarrayThe Amazon Marketplace identifier for a vendor's work team.
sub_domainstringThe URI of the labeling job's user interface. Workers open this URI to start labeling your data objects.
worker_access_configurationobjectDescribes any access constraints that have been defined for Amazon S3 resources.
workforce_arnstringThe Amazon Resource Name (ARN) of the workforce. (pattern: <code>arn:aws[a-z-]:sagemaker:[a-z0-9-]:[0-9]{12}:workforce/.*</code>)
workteam_arnstringThe Amazon Resource Name (ARN) that identifies the work team. (pattern: <code>arn:aws[a-z-]:sagemaker:[a-z0-9-]:[0-9]{12}:workteam/.*</code>)
workteam_namestringThe name of the work team. (pattern: <code>[a-zA-Z0-9](-*[a-zA-Z0-9]){0,62}</code>)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
describe_workteamselectregionGets information about a specific work team. You can see information such as the creation date, the last updated date, membership information, and the work team's Amazon Resource Name (ARN).
list_workteamsselectregionGets a list of private work teams that you have defined in a region. The list may be empty if no work team satisfies the filter specified in the NameContains parameter.
create_workteaminsertregion, WorkteamName, MemberDefinitionsCreates a new work team for labeling your data. A work team is defined by one or more Amazon Cognito user pools. You must first create the user pools before you can create a work team. You cannot create more than 25 work teams in an account and region.
update_workteamupdateregion, WorkteamNameUpdates an existing work team with new member definitions or description.
delete_workteamdeleteregionDeletes an existing work team. This operation can't be undone.

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

Gets information about a specific work team. You can see information such as the creation date, the last updated date, membership information, and the work team's Amazon Resource Name (ARN).

SELECT
create_date,
description,
last_updated_date,
member_definitions,
notification_configuration,
product_listing_ids,
sub_domain,
worker_access_configuration,
workforce_arn,
workteam_arn,
workteam_name
FROM aws.sagemaker.workteams
WHERE region = '{{ region }}' -- required
;

INSERT examples

Creates a new work team for labeling your data. A work team is defined by one or more Amazon Cognito user pools. You must first create the user pools before you can create a work team. You cannot create more than 25 work teams in an account and region.

INSERT INTO aws.sagemaker.workteams (
WorkteamName,
WorkforceName,
MemberDefinitions,
Description,
NotificationConfiguration,
WorkerAccessConfiguration,
Tags,
region
)
SELECT
'{{ WorkteamName }}' /* required */,
'{{ WorkforceName }}',
'{{ MemberDefinitions }}' /* required */,
'{{ Description }}',
'{{ NotificationConfiguration }}',
'{{ WorkerAccessConfiguration }}',
'{{ Tags }}',
'{{ region }}'
RETURNING
workteam_arn
;

UPDATE examples

Updates an existing work team with new member definitions or description.

UPDATE aws.sagemaker.workteams
SET
WorkteamName = '{{ WorkteamName }}',
MemberDefinitions = '{{ MemberDefinitions }}',
Description = '{{ Description }}',
NotificationConfiguration = '{{ NotificationConfiguration }}',
WorkerAccessConfiguration = '{{ WorkerAccessConfiguration }}'
WHERE
region = '{{ region }}' --required
AND WorkteamName = '{{ WorkteamName }}' --required
RETURNING
workteam;

DELETE examples

Deletes an existing work team. This operation can't be undone.

DELETE FROM aws.sagemaker.workteams
WHERE region = '{{ region }}' --required
;