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
9001 9002 9003 9004 9005 9006 9007 9008 9009 9010 9011 9012 9013 9014 9015 9016 9017 9018 9019 9020 9021 9022 9023 9024 9025 9026 9027 9028 9029 9030 9031 9032 9033 9034 9035 9036 9037 9038 9039 9040 9041 9042 9043 9044 9045 9046 9047 9048 9049 9050 9051 9052 9053 9054 9055 9056 9057 9058 9059 9060 9061 9062 9063 9064 9065 9066 9067 9068 9069 9070 9071 9072 9073 9074 9075 9076 9077 9078 9079 | |