create_workteam
async
¶
create_workteam(
*,
config_overrides: Optional[AsyncSageMakerClientConfig] = None,
workteam_name: Optional[WorkteamName] = None,
workforce_name: Optional[WorkforceName] = None,
member_definitions: Optional[MemberDefinitions] = None,
description: Optional[String200] = None,
notification_configuration: Optional[NotificationConfiguration] = None,
worker_access_configuration: Optional[WorkerAccessConfiguration] = None,
tags: Optional[TagList] = None,
) -> CreateWorkteamResponse
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.
Parameters:
-
workteam_name(Optional[WorkteamName], default:None) –The name of the work team. Use this name to identify the work team.
-
workforce_name(Optional[WorkforceName], default:None) –The name of the workforce.
-
member_definitions(Optional[MemberDefinitions], default:None) –A list of
MemberDefinitionobjects 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) useOidcMemberDefinition. Do not provide input for both of these parameters in a single request.For workforces created using Amazon Cognito, private work teams correspond to Amazon Cognito user groups within the user pool used to create a workforce. All of the
CognitoMemberDefinitionobjects that make up the member definition must have the sameClientIdandUserPoolvalues. To add a Amazon Cognito user group to an existing worker pool, see Adding groups to a User Pool. For more information about user pools, see Amazon Cognito User Pools.For workforces created using your own OIDC IdP, specify the user groups that you want to include in your private work team in
OidcMemberDefinitionby listing those groups inGroups. -
description(Optional[String200], default:None) –A description of the work team.
-
notification_configuration(Optional[NotificationConfiguration], default:None) –Configures notification of workers regarding available or expiring work items.
-
worker_access_configuration(Optional[WorkerAccessConfiguration], default:None) –Use this optional parameter to constrain access to an Amazon S3 resource based on the IP address using supported IAM global condition keys. The Amazon S3 resource is accessed in the worker portal using a Amazon S3 presigned URL.
-
tags(Optional[TagList], default:None) –An array of key-value pairs.
For more information, see Resource Tag and Using Cost Allocation Tags in the Amazon Web Services Billing and Cost Management User Guide.
Raises:
-
ResourceInUse–Resource being accessed is in use.
-
ResourceLimitExceeded–You have exceeded an SageMaker resource limit. For example, you might have too many training jobs created.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_sagemaker/_services/async_sage_maker.py
8356 8357 8358 8359 8360 8361 8362 8363 8364 8365 8366 8367 8368 8369 8370 8371 8372 8373 8374 8375 8376 8377 8378 8379 8380 8381 8382 8383 8384 8385 8386 8387 8388 8389 8390 8391 8392 8393 8394 8395 8396 8397 8398 8399 8400 8401 8402 8403 8404 8405 8406 8407 8408 8409 8410 8411 8412 8413 8414 8415 8416 8417 8418 8419 8420 8421 8422 8423 8424 8425 8426 8427 8428 8429 8430 8431 8432 8433 8434 8435 | |