Resource: aws_sagemaker_workteam

Provides a SageMaker Workteam resource.

Example Usage

Cognito Usage

resource "aws_sagemaker_workteam" "example" {
  workteam_name  = "example"
  workforce_name = aws_sagemaker_workforce.example.id
  description    = "example"

  member_definition {
    cognito_member_definition {
      client_id  = aws_cognito_user_pool_client.example.id
      user_pool  = aws_cognito_user_pool_domain.example.user_pool_id
      user_group = aws_cognito_user_group.example.id
    }
  }
}

Oidc Usage

resource "aws_sagemaker_workteam" "example" {
  workteam_name  = "example"
  workforce_name = aws_sagemaker_workforce.example.id
  description    = "example"

  member_definition {
    oidc_member_definition {
      groups = ["example"]
    }
  }
}

Argument Reference

This resource supports the following arguments:

Member Definition

Cognito Member Definition

Oidc Member Definition

Notification Configuration

Attribute Reference

This resource exports the following attributes in addition to the arguments above:

Import

In Terraform v1.5.0 and later, use an import block to import SageMaker Workteams using the workteam_name. For example:

import {
  to = aws_sagemaker_workteam.example
  id = "example"
}

Using terraform import, import SageMaker Workteams using the workteam_name. For example:

% terraform import aws_sagemaker_workteam.example example