Workteam

class Workteam : KotlinCustomResource

Provides a SageMaker Workteam resource.

Example Usage

Cognito Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.sagemaker.Workteam;
import com.pulumi.aws.sagemaker.WorkteamArgs;
import com.pulumi.aws.sagemaker.inputs.WorkteamMemberDefinitionArgs;
import com.pulumi.aws.sagemaker.inputs.WorkteamMemberDefinitionCognitoMemberDefinitionArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var example = new Workteam("example", WorkteamArgs.builder()
.workteamName("example")
.workforceName(aws_sagemaker_workforce.example().id())
.description("example")
.memberDefinitions(WorkteamMemberDefinitionArgs.builder()
.cognitoMemberDefinition(WorkteamMemberDefinitionCognitoMemberDefinitionArgs.builder()
.clientId(aws_cognito_user_pool_client.example().id())
.userPool(aws_cognito_user_pool_domain.example().user_pool_id())
.userGroup(aws_cognito_user_group.example().id())
.build())
.build())
.build());
}
}

Oidc Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.sagemaker.Workteam;
import com.pulumi.aws.sagemaker.WorkteamArgs;
import com.pulumi.aws.sagemaker.inputs.WorkteamMemberDefinitionArgs;
import com.pulumi.aws.sagemaker.inputs.WorkteamMemberDefinitionOidcMemberDefinitionArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var example = new Workteam("example", WorkteamArgs.builder()
.workteamName("example")
.workforceName(aws_sagemaker_workforce.example().id())
.description("example")
.memberDefinitions(WorkteamMemberDefinitionArgs.builder()
.oidcMemberDefinition(WorkteamMemberDefinitionOidcMemberDefinitionArgs.builder()
.groups("example")
.build())
.build())
.build());
}
}

Import

SageMaker Workteams can be imported using the workteam_name, e.g.,

$ pulumi import aws:sagemaker/workteam:Workteam example example

Properties

Link copied to clipboard
val arn: Output<String>

The Amazon Resource Name (ARN) assigned by AWS to this Workteam.

Link copied to clipboard
val description: Output<String>

A description of the work team.

Link copied to clipboard
val id: Output<String>
Link copied to clipboard

A list of Member Definitions 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 cognito_member_definition. For workforces created using your own OIDC identity provider (IdP) use oidc_member_definition. Do not provide input for both of these parameters in a single request. see Member Definition details below.

Link copied to clipboard

Configures notification of workers regarding available or expiring work items. see Notification Configuration details below.

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val subdomain: Output<String>

The subdomain for your OIDC Identity Provider.

Link copied to clipboard
val tags: Output<Map<String, String>>?

A map of tags to assign to the resource. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

Link copied to clipboard
val tagsAll: Output<Map<String, String>>

A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

Link copied to clipboard
val urn: Output<String>
Link copied to clipboard
val workforceName: Output<String>

The name of the Workteam (must be unique).

Link copied to clipboard
val workteamName: Output<String>

The name of the workforce.