# CfnWorkteamProps

Properties for defining a `CfnWorkteam`.

Used as props by: [CfnWorkteam](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_sagemaker.CfnWorkteam.html)

- Source: Generated at build time
- Type last changed: v2.272.0 · 30 Sep 2026

## Example

TypeScript:

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_sagemaker as sagemaker } from 'aws-cdk-lib';
const cfnWorkteamProps: sagemaker.CfnWorkteamProps = {
  description: 'description',
  memberDefinitions: [{
    cognitoMemberDefinition: {
      cognitoClientId: 'cognitoClientId',
      cognitoUserGroup: 'cognitoUserGroup',
      cognitoUserPool: 'cognitoUserPool',
    },
    oidcMemberDefinition: {
      oidcGroups: ['oidcGroups'],
    },
  }],

  // the properties below are optional
  notificationConfiguration: {
    notificationTopicArn: 'notificationTopicArn',
  },
  tags: [{
    key: 'key',
    value: 'value',
  }],
  workforceName: 'workforceName',
  workteamName: 'workteamName',
};
```

Python:

```python
from aws_cdk import CfnTag
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_sagemaker as sagemaker

cfn_workteam_props = sagemaker.CfnWorkteamProps(
    description="description",
    member_definitions=[sagemaker.CfnWorkteam.MemberDefinitionProperty(
        cognito_member_definition=sagemaker.CfnWorkteam.CognitoMemberDefinitionProperty(
            cognito_client_id="cognitoClientId",
            cognito_user_group="cognitoUserGroup",
            cognito_user_pool="cognitoUserPool"
        ),
        oidc_member_definition=sagemaker.CfnWorkteam.OidcMemberDefinitionProperty(
            oidc_groups=["oidcGroups"]
        )
    )],

    # the properties below are optional
    notification_configuration=sagemaker.CfnWorkteam.NotificationConfigurationProperty(
        notification_topic_arn="notificationTopicArn"
    ),
    tags=[CfnTag(
        key="key",
        value="value"
    )],
    workforce_name="workforceName",
    workteam_name="workteamName"
)
```

Java:

```java
// 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.*;

CfnWorkteamProps cfnWorkteamProps = CfnWorkteamProps.builder()
        .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()))

        // the properties below are optional
        .notificationConfiguration(NotificationConfigurationProperty.builder()
                .notificationTopicArn("notificationTopicArn")
                .build())
        .tags(List.of(CfnTag.builder()
                .key("key")
                .value("value")
                .build()))
        .workforceName("workforceName")
        .workteamName("workteamName")
        .build();
```

C# / .NET:

```csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Sagemaker;

var cfnWorkteamProps = new CfnWorkteamProps {
    Description = "description",
    MemberDefinitions = new [] { new MemberDefinitionProperty {
        CognitoMemberDefinition = new CognitoMemberDefinitionProperty {
            CognitoClientId = "cognitoClientId",
            CognitoUserGroup = "cognitoUserGroup",
            CognitoUserPool = "cognitoUserPool"
        },
        OidcMemberDefinition = new OidcMemberDefinitionProperty {
            OidcGroups = new [] { "oidcGroups" }
        }
    } },

    // the properties below are optional
    NotificationConfiguration = new NotificationConfigurationProperty {
        NotificationTopicArn = "notificationTopicArn"
    },
    Tags = new [] { new CfnTag {
        Key = "key",
        Value = "value"
    } },
    WorkforceName = "workforceName",
    WorkteamName = "workteamName"
};
```

Golang:

```go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

cfnWorkteamProps := &CfnWorkteamProps{
	Description: jsii.String("description"),
	MemberDefinitions: []interface{}{
		&MemberDefinitionProperty{
			CognitoMemberDefinition: &CognitoMemberDefinitionProperty{
				CognitoClientId: jsii.String("cognitoClientId"),
				CognitoUserGroup: jsii.String("cognitoUserGroup"),
				CognitoUserPool: jsii.String("cognitoUserPool"),
			},
			OidcMemberDefinition: &OidcMemberDefinitionProperty{
				OidcGroups: []*string{
					jsii.String("oidcGroups"),
				},
			},
		},
	},

	// the properties below are optional
	NotificationConfiguration: &NotificationConfigurationProperty{
		NotificationTopicArn: jsii.String("notificationTopicArn"),
	},
	Tags: []CfnTag{
		&CfnTag{
			Key: jsii.String("key"),
			Value: jsii.String("value"),
		},
	},
	WorkforceName: jsii.String("workforceName"),
	WorkteamName: jsii.String("workteamName"),
}
```

## Properties

- `description`: string (required) — A description of the work team.

- `memberDefinitions`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnWorkteam.MemberDefinitionProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_sagemaker.CfnWorkteam.MemberDefinitionProperty.html)[] (required) — A list of `MemberDefinition` objects 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) use `OidcMemberDefinition` .

- `notificationConfiguration`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnWorkteam.NotificationConfigurationProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_sagemaker.CfnWorkteam.NotificationConfigurationProperty.html) — Configures SNS notifications of available or expiring work items for work teams.

- `tags`: [CfnTag](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.CfnTag.html)[] — An array of key-value pairs.

- `workforceName`: string — The name of the workforce.

- `workteamName`: string — The name of the work team.
