Interface CfnWorkforceProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnWorkforceProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.139.0 (build 26a6b54)",
date="2026-09-02T11:03:18.847Z")
@Stability(Stable)
public interface CfnWorkforceProps
extends software.amazon.jsii.JsiiSerializable
Properties for defining a
CfnWorkforce.
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.*;
CfnWorkforceProps cfnWorkforceProps = CfnWorkforceProps.builder()
.workforceName("workforceName")
// the properties below are optional
.cognitoConfig(CognitoConfigProperty.builder()
.clientId("clientId")
.userPool("userPool")
.build())
.ipAddressType("ipAddressType")
.oidcConfig(OidcConfigProperty.builder()
.authorizationEndpoint("authorizationEndpoint")
.clientId("clientId")
.issuer("issuer")
.jwksUri("jwksUri")
.logoutEndpoint("logoutEndpoint")
.tokenEndpoint("tokenEndpoint")
.userInfoEndpoint("userInfoEndpoint")
// the properties below are optional
.authenticationRequestExtraParams(Map.of(
"authenticationRequestExtraParamsKey", "authenticationRequestExtraParams"))
.clientSecret("clientSecret")
.scope("scope")
.build())
.sourceIpConfig(SourceIpConfigProperty.builder()
.cidrs(List.of("cidrs"))
.build())
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.workforceVpcConfig(WorkforceVpcConfigRequestProperty.builder()
.securityGroupIds(List.of("securityGroupIds"))
.subnets(List.of("subnets"))
.vpcId("vpcId")
.build())
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnWorkforcePropsstatic final classAn implementation forCfnWorkforceProps -
Method Summary
Modifier and TypeMethodDescriptionstatic CfnWorkforceProps.Builderbuilder()default ObjectThe configuration of an Amazon Cognito workforce.default StringThe IP address type for the workforce.default ObjectThe configuration of an OIDC Identity Provider (IdP) private workforce.default ObjectA list of IP address ranges used to access your training data.getTags()An array of key-value pairs.The name of the private workforce.default ObjectThe VPC configuration for the workforce.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getWorkforceName
The name of the private workforce.- See Also:
-
getCognitoConfig
The configuration of an Amazon Cognito workforce.A single Cognito workforce is created using and corresponds to a single Amazon Cognito user pool.
Returns union: either
IResolvableorCfnWorkforce.CognitoConfigProperty- See Also:
-
getIpAddressType
The IP address type for the workforce.IPv4 only or dualstack (IPv4 and IPv6).
- See Also:
-
getOidcConfig
The configuration of an OIDC Identity Provider (IdP) private workforce.Returns union: either
IResolvableorCfnWorkforce.OidcConfigProperty- See Also:
-
getSourceIpConfig
A list of IP address ranges used to access your training data.Returns union: either
IResolvableorCfnWorkforce.SourceIpConfigProperty- See Also:
-
getTags
An array of key-value pairs.- See Also:
-
getWorkforceVpcConfig
The VPC configuration for the workforce.Returns union: either
IResolvableorCfnWorkforce.WorkforceVpcConfigRequestProperty- See Also:
-
builder
- Returns:
- a
CfnWorkforceProps.BuilderofCfnWorkforceProps
-