interface CfnWorkforceProps
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.Sagemaker.CfnWorkforceProps |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awssagemaker#CfnWorkforceProps |
Java | software.amazon.awscdk.services.sagemaker.CfnWorkforceProps |
Python | aws_cdk.aws_sagemaker.CfnWorkforceProps |
TypeScript | aws-cdk-lib » aws_sagemaker » CfnWorkforceProps |
Properties for defining a CfnWorkforce.
See also: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sagemaker-workforce.html
Example
// 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 cfnWorkforceProps: sagemaker.CfnWorkforceProps = {
workforceName: 'workforceName',
// the properties below are optional
cognitoConfig: {
clientId: 'clientId',
userPool: 'userPool',
},
ipAddressType: 'ipAddressType',
oidcConfig: {
authorizationEndpoint: 'authorizationEndpoint',
clientId: 'clientId',
issuer: 'issuer',
jwksUri: 'jwksUri',
logoutEndpoint: 'logoutEndpoint',
tokenEndpoint: 'tokenEndpoint',
userInfoEndpoint: 'userInfoEndpoint',
// the properties below are optional
authenticationRequestExtraParams: {
authenticationRequestExtraParamsKey: 'authenticationRequestExtraParams',
},
clientSecret: 'clientSecret',
scope: 'scope',
},
sourceIpConfig: {
cidrs: ['cidrs'],
},
tags: [{
key: 'key',
value: 'value',
}],
workforceVpcConfig: {
securityGroupIds: ['securityGroupIds'],
subnets: ['subnets'],
vpcId: 'vpcId',
},
};
Properties
| Name | Type | Description |
|---|---|---|
| workforce | string | The name of the private workforce. |
| cognito | IResolvable | Cognito | The configuration of an Amazon Cognito workforce. |
| ip | string | The IP address type for the workforce. |
| oidc | IResolvable | Oidc | The configuration of an OIDC Identity Provider (IdP) private workforce. |
| source | IResolvable | Source | A list of IP address ranges used to access your training data. |
| tags? | Cfn[] | An array of key-value pairs. |
| workforce | IResolvable | Workforce | The VPC configuration for the workforce. |
workforceName
Type:
string
The name of the private workforce.
cognitoConfig?
Type:
IResolvable | Cognito
(optional)
The configuration of an Amazon Cognito workforce.
A single Cognito workforce is created using and corresponds to a single Amazon Cognito user pool.
ipAddressType?
Type:
string
(optional)
The IP address type for the workforce.
IPv4 only or dualstack (IPv4 and IPv6).
oidcConfig?
Type:
IResolvable | Oidc
(optional)
The configuration of an OIDC Identity Provider (IdP) private workforce.
sourceIpConfig?
Type:
IResolvable | Source
(optional)
A list of IP address ranges used to access your training data.
tags?
Type:
Cfn[]
(optional)
An array of key-value pairs.
workforceVpcConfig?
Type:
IResolvable | Workforce
(optional)
The VPC configuration for the workforce.

.NET
Go
Java
Python
TypeScript