@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:41.959Z") @Stability(value=Stable) public class CfnWorkteam extends CfnResource implements IInspectable
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())
.build()))
.notificationConfiguration(NotificationConfigurationProperty.builder()
.notificationTopicArn("notificationTopicArn")
.build())
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.workteamName("workteamName")
.build();
| Modifier and Type | Class and Description |
|---|---|
static class |
CfnWorkteam.Builder
A fluent builder for
CfnWorkteam. |
static interface |
CfnWorkteam.CognitoMemberDefinitionProperty
Identifies a Amazon Cognito user group.
|
static interface |
CfnWorkteam.MemberDefinitionProperty
Defines an Amazon Cognito or your own OIDC IdP user group that is part of a work team.
|
static interface |
CfnWorkteam.NotificationConfigurationProperty
Configures Amazon SNS notifications of available or expiring work items for work teams.
|
software.amazon.jsii.JsiiObject.InitializationModeIInspectable.Jsii$Default, IInspectable.Jsii$Proxy| Modifier and Type | Field and Description |
|---|---|
static String |
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
|
| Modifier | Constructor and Description |
|---|---|
|
CfnWorkteam(software.constructs.Construct scope,
String id)
Create a new `AWS::SageMaker::Workteam`.
|
|
CfnWorkteam(software.constructs.Construct scope,
String id,
CfnWorkteamProps props)
Create a new `AWS::SageMaker::Workteam`.
|
protected |
CfnWorkteam(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
CfnWorkteam(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
String |
getAttrWorkteamName()
The name of the work team.
|
protected Map<String,Object> |
getCfnProperties() |
String |
getDescription()
A description of the work team.
|
Object |
getMemberDefinitions()
A list of `MemberDefinition` objects that contains objects that identify the workers that make up the work team.
|
Object |
getNotificationConfiguration()
Configures SNS notifications of available or expiring work items for work teams.
|
TagManager |
getTags()
An array of key-value pairs.
|
String |
getWorkteamName()
The name of the work team.
|
void |
inspect(TreeInspector inspector)
Examines the CloudFormation resource and discloses attributes.
|
protected Map<String,Object> |
renderProperties(Map<String,Object> props) |
void |
setDescription(String value)
A description of the work team.
|
void |
setMemberDefinitions(IResolvable value)
A list of `MemberDefinition` objects that contains objects that identify the workers that make up the work team.
|
void |
setMemberDefinitions(List<Object> value)
A list of `MemberDefinition` objects that contains objects that identify the workers that make up the work team.
|
void |
setNotificationConfiguration(CfnWorkteam.NotificationConfigurationProperty value)
Configures SNS notifications of available or expiring work items for work teams.
|
void |
setNotificationConfiguration(IResolvable value)
Configures SNS notifications of available or expiring work items for work teams.
|
void |
setWorkteamName(String value)
The name of the work team.
|
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, shouldSynthesize, toString, validatePropertiesgetRefgetCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdjsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet@Stability(value=Stable) public static final String CFN_RESOURCE_TYPE_NAME
protected CfnWorkteam(software.amazon.jsii.JsiiObjectRef objRef)
protected CfnWorkteam(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable)
public CfnWorkteam(@NotNull
software.constructs.Construct scope,
@NotNull
String id,
@Nullable
CfnWorkteamProps props)
scope - - scope in which this resource is defined. This parameter is required.id - - scoped id of the resource. This parameter is required.props - - resource properties.@Stability(value=Stable)
public CfnWorkteam(@NotNull
software.constructs.Construct scope,
@NotNull
String id)
scope - - scope in which this resource is defined. This parameter is required.id - - scoped id of the resource. This parameter is required.@Stability(value=Stable)
public void inspect(@NotNull
TreeInspector inspector)
inspect in interface IInspectableinspector - - tree inspector to collect and process attributes. This parameter is required.@Stability(value=Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String,Object> props)
renderProperties in class CfnResourceprops - This parameter is required.@Stability(value=Stable) @NotNull public String getAttrWorkteamName()
@Stability(value=Stable) @NotNull protected Map<String,Object> getCfnProperties()
getCfnProperties in class CfnResource@Stability(value=Stable) @NotNull public TagManager getTags()
@Stability(value=Stable) @Nullable public String getDescription()
@Stability(value=Stable)
public void setDescription(@Nullable
String value)
@Stability(value=Stable) @Nullable public Object getMemberDefinitions()
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 .
@Stability(value=Stable)
public void setMemberDefinitions(@Nullable
IResolvable value)
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 .
@Stability(value=Stable)
public void setMemberDefinitions(@Nullable
List<Object> value)
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 .
@Stability(value=Stable) @Nullable public Object getNotificationConfiguration()
@Stability(value=Stable)
public void setNotificationConfiguration(@Nullable
CfnWorkteam.NotificationConfigurationProperty value)
@Stability(value=Stable)
public void setNotificationConfiguration(@Nullable
IResolvable value)
@Stability(value=Stable) @Nullable public String getWorkteamName()
@Stability(value=Stable)
public void setWorkteamName(@Nullable
String value)
Copyright © 2022. All rights reserved.