Class CfnWorkteam
java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.CfnElement
software.amazon.awscdk.CfnRefElement
software.amazon.awscdk.CfnResource
software.amazon.awscdk.services.sagemaker.CfnWorkteam
- All Implemented Interfaces:
IInspectable,IEnvironmentAware,IWorkteamRef,ITaggable,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.119.0 (build 1634eac)",
date="2025-12-01T16:02:29.378Z")
@Stability(Stable)
public class CfnWorkteam
extends CfnResource
implements IInspectable, IWorkteamRef, ITaggable
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.
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.sagemaker.*;
CfnWorkteam cfnWorkteam = CfnWorkteam.Builder.create(this, "MyCfnWorkteam")
.description("description")
.memberDefinitions(List.of(MemberDefinitionProperty.builder()
.cognitoMemberDefinition(CognitoMemberDefinitionProperty.builder()
.cognitoClientId("cognitoClientId")
.cognitoUserGroup("cognitoUserGroup")
.cognitoUserPool("cognitoUserPool")
.build())
.oidcMemberDefinition(OidcMemberDefinitionProperty.builder()
.oidcGroups(List.of("oidcGroups"))
.build())
.build()))
.notificationConfiguration(NotificationConfigurationProperty.builder()
.notificationTopicArn("notificationTopicArn")
.build())
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.workforceName("workforceName")
.workteamName("workteamName")
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA fluent builder forCfnWorkteam.static interfaceIdentifies a Amazon Cognito user group.static interfaceDefines an Amazon Cognito or your own OIDC IdP user group that is part of a work team.static interfaceConfigures Amazon SNS notifications of available or expiring work items for work teams.static interfaceA list of user groups that exist in your OIDC Identity Provider (IdP).Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.ITaggable
ITaggable.Jsii$Default, ITaggable.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.interfaces.sagemaker.IWorkteamRef
IWorkteamRef.Jsii$Default, IWorkteamRef.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCfnWorkteam(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnWorkteam(software.amazon.jsii.JsiiObjectRef objRef) CfnWorkteam(software.constructs.Construct scope, String id) Create a newAWS::SageMaker::Workteam.CfnWorkteam(software.constructs.Construct scope, String id, CfnWorkteamProps props) Create a newAWS::SageMaker::Workteam. -
Method Summary
Modifier and TypeMethodDescriptionstatic StringarnForWorkteam(IWorkteamRef resource) The name of the work team.A description of the work team.A list ofMemberDefinitionobjects that contains objects that identify the workers that make up the work team.Configures SNS notifications of available or expiring work items for work teams.getTags()Tag Manager which manages the tags for this resource.An array of key-value pairs.The name of the workforce.The name of the work team.A reference to a Workteam resource.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.static BooleanChecks whether the given object is a CfnWorkteam.renderProperties(Map<String, Object> props) voidsetDescription(String value) A description of the work team.voidsetMemberDefinitions(List<Object> value) A list ofMemberDefinitionobjects that contains objects that identify the workers that make up the work team.voidsetMemberDefinitions(IResolvable value) A list ofMemberDefinitionobjects that contains objects that identify the workers that make up the work team.voidConfigures SNS notifications of available or expiring work items for work teams.voidConfigures SNS notifications of available or expiring work items for work teams.voidsetTagsRaw(List<CfnTag> value) An array of key-value pairs.voidsetWorkforceName(String value) The name of the workforce.voidsetWorkteamName(String value) The name of the work team.Methods inherited from class software.amazon.awscdk.CfnResource
addDeletionOverride, addDependency, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getAtt, getCfnOptions, getCfnResourceType, getEnv, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, obtainDependencies, obtainResourceDependencies, removeDependency, replaceDependency, shouldSynthesize, toString, validatePropertiesMethods inherited from class software.amazon.awscdk.CfnRefElement
getRefMethods inherited from class software.amazon.awscdk.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdMethods inherited from class software.constructs.Construct
getNode, isConstructMethods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface software.constructs.IConstruct
getNodeMethods inherited from interface software.amazon.awscdk.interfaces.IEnvironmentAware
getEnvMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
-
-
Constructor Details
-
CfnWorkteam
protected CfnWorkteam(software.amazon.jsii.JsiiObjectRef objRef) -
CfnWorkteam
protected CfnWorkteam(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnWorkteam
@Stability(Stable) public CfnWorkteam(@NotNull software.constructs.Construct scope, @NotNull String id, @Nullable CfnWorkteamProps props) Create a newAWS::SageMaker::Workteam.- Parameters:
scope- Scope in which this resource is defined. This parameter is required.id- Construct identifier for this resource (unique in its scope). This parameter is required.props- Resource properties.
-
CfnWorkteam
@Stability(Stable) public CfnWorkteam(@NotNull software.constructs.Construct scope, @NotNull String id) Create a newAWS::SageMaker::Workteam.- Parameters:
scope- Scope in which this resource is defined. This parameter is required.id- Construct identifier for this resource (unique in its scope). This parameter is required.
-
-
Method Details
-
arnForWorkteam
- Parameters:
resource- This parameter is required.
-
isCfnWorkteam
Checks whether the given object is a CfnWorkteam.- Parameters:
x- This parameter is required.
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspectin interfaceIInspectable- Parameters:
inspector- tree inspector to collect and process attributes. This parameter is required.
-
renderProperties
@Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String, Object> props) - Overrides:
renderPropertiesin classCfnResource- Parameters:
props- This parameter is required.
-
getAttrId
-
getAttrWorkteamName
The name of the work team. -
getCfnProperties
- Overrides:
getCfnPropertiesin classCfnResource
-
getTags
Tag Manager which manages the tags for this resource. -
getWorkteamRef
A reference to a Workteam resource.- Specified by:
getWorkteamRefin interfaceIWorkteamRef
-
getDescription
A description of the work team. -
setDescription
A description of the work team. -
getMemberDefinitions
A list ofMemberDefinitionobjects that contains objects that identify the workers that make up the work team.Returns union: either
IResolvableor Listinvalid input: '<'eitherIResolvableorCfnWorkteam.MemberDefinitionProperty> -
setMemberDefinitions
A list ofMemberDefinitionobjects that contains objects that identify the workers that make up the work team. -
setMemberDefinitions
A list ofMemberDefinitionobjects that contains objects that identify the workers that make up the work team. -
getNotificationConfiguration
Configures SNS notifications of available or expiring work items for work teams.Returns union: either
IResolvableorCfnWorkteam.NotificationConfigurationProperty -
setNotificationConfiguration
Configures SNS notifications of available or expiring work items for work teams. -
setNotificationConfiguration
@Stability(Stable) public void setNotificationConfiguration(@Nullable CfnWorkteam.NotificationConfigurationProperty value) Configures SNS notifications of available or expiring work items for work teams. -
getTagsRaw
An array of key-value pairs. -
setTagsRaw
An array of key-value pairs. -
getWorkforceName
The name of the workforce. -
setWorkforceName
The name of the workforce. -
getWorkteamName
The name of the work team. -
setWorkteamName
The name of the work team.
-