create_workteam
¶
create_workteam(
*,
config_overrides: Optional[SageMakerClientConfig] = 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/sage_maker.py
8272 8273 8274 8275 8276 8277 8278 8279 8280 8281 8282 8283 8284 8285 8286 8287 8288 8289 8290 8291 8292 8293 8294 8295 8296 8297 8298 8299 8300 8301 8302 8303 8304 8305 8306 8307 8308 8309 8310 8311 8312 8313 8314 8315 8316 8317 8318 8319 8320 8321 8322 8323 8324 8325 8326 8327 8328 8329 8330 8331 8332 8333 8334 8335 8336 8337 8338 8339 8340 8341 8342 8343 8344 8345 8346 8347 8348 8349 8350 | |