Class CfnWorkforce
java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.CfnElement
software.amazon.awscdk.CfnRefElement
software.amazon.awscdk.CfnResource
software.amazon.awscdk.services.sagemaker.CfnWorkforce
- All Implemented Interfaces:
IInspectable,IEnvironmentAware,IWorkforceRef,ITaggableV2,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.139.0 (build 26a6b54)",
date="2026-09-02T11:03:18.844Z")
@Stability(Stable)
public class CfnWorkforce
extends CfnResource
implements IInspectable, IWorkforceRef, ITaggableV2
Resource Type definition for AWS::SageMaker::Workforce.
Use to create a private workforce that you can use to label your training data using Amazon SageMaker Ground Truth.
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.*;
CfnWorkforce cfnWorkforce = CfnWorkforce.Builder.create(this, "MyCfnWorkforce")
.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 TypeClassDescriptionstatic final classA fluent builder forCfnWorkforce.static interfaceThe configuration of an Amazon Cognito workforce.static interfaceThe configuration of an OIDC Identity Provider (IdP) private workforce.static interfaceA list of IP address ranges used to access your training data.static interfaceThe VPC configuration for the workforce.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.ITaggableV2
ITaggableV2.Jsii$Default, ITaggableV2.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.interfaces.sagemaker.IWorkforceRef
IWorkforceRef.Jsii$Default, IWorkforceRef.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCfnWorkforce(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnWorkforce(software.amazon.jsii.JsiiObjectRef objRef) CfnWorkforce(software.constructs.Construct scope, String id, CfnWorkforceProps props) Create a newAWS::SageMaker::Workforce. -
Method Summary
Modifier and TypeMethodDescriptionstatic StringarnForWorkforce(IWorkforceRef resource) The subdomain for your OIDC Identity Provider.The Amazon Resource Name (ARN) of the private workforce.Tag Manager which manages the tags for this resource.The configuration of an Amazon Cognito workforce.The IP address type for the workforce.The configuration of an OIDC Identity Provider (IdP) private workforce.A list of IP address ranges used to access your training data.getTags()An array of key-value pairs.The name of the private workforce.A reference to a Workforce resource.The VPC configuration for the workforce.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.static BooleanChecks whether the given object is a CfnWorkforce.renderProperties(Map<String, Object> props) voidsetCognitoConfig(IResolvable value) The configuration of an Amazon Cognito workforce.voidThe configuration of an Amazon Cognito workforce.voidsetIpAddressType(String value) The IP address type for the workforce.voidsetOidcConfig(IResolvable value) The configuration of an OIDC Identity Provider (IdP) private workforce.voidThe configuration of an OIDC Identity Provider (IdP) private workforce.voidsetSourceIpConfig(IResolvable value) A list of IP address ranges used to access your training data.voidA list of IP address ranges used to access your training data.voidAn array of key-value pairs.voidsetWorkforceName(String value) The name of the private workforce.voidsetWorkforceVpcConfig(IResolvable value) The VPC configuration for the workforce.voidThe VPC configuration for the workforce.Methods inherited from class software.amazon.awscdk.CfnResource
addDeletionOverride, addDependency, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, addResourceDependency, addResourceDependency, applyCrossStackReferenceStrength, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, cfnPropertyName, getAtt, getAtt, getCfnOptions, getCfnResourceType, getEnv, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, obtainDependencies, removeDependency, removeResourceDependency, replaceDependency, shouldSynthesize, toString, validatePropertiesMethods inherited from class software.amazon.awscdk.CfnRefElement
getRefMethods inherited from class software.amazon.awscdk.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalId, withMethods inherited from class software.constructs.Construct
getNode, isConstructMethods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface software.constructs.IConstruct
getNode, withMethods inherited from interface software.amazon.awscdk.interfaces.IEnvironmentAware
getEnvMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
-
-
Constructor Details
-
CfnWorkforce
protected CfnWorkforce(software.amazon.jsii.JsiiObjectRef objRef) -
CfnWorkforce
protected CfnWorkforce(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnWorkforce
@Stability(Stable) public CfnWorkforce(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CfnWorkforceProps props) Create a newAWS::SageMaker::Workforce.- Parameters:
scope- Scope in which this resource is defined. This parameter is required.id- Construct identifier for this resource (unique in its scope). This parameter is required.props- Resource properties. This parameter is required.
-
-
Method Details
-
arnForWorkforce
- Parameters:
resource- This parameter is required.
-
isCfnWorkforce
Checks whether the given object is a CfnWorkforce.- Parameters:
x- This parameter is required.
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspectin interfaceIInspectable- Parameters:
inspector- tree inspector to collect and process attributes. This parameter is required.
-
renderProperties
@Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String, Object> props) - Overrides:
renderPropertiesin classCfnResource- Parameters:
props- This parameter is required.
-
getAttrSubDomain
The subdomain for your OIDC Identity Provider. -
getAttrWorkforceArn
The Amazon Resource Name (ARN) of the private workforce. -
getCdkTagManager
Tag Manager which manages the tags for this resource.- Specified by:
getCdkTagManagerin interfaceITaggableV2
-
getCfnProperties
- Overrides:
getCfnPropertiesin classCfnResource
-
getCfnPropertyNames
- Overrides:
getCfnPropertyNamesin classCfnResource
-
getWorkforceRef
A reference to a Workforce resource.- Specified by:
getWorkforceRefin interfaceIWorkforceRef
-
getWorkforceName
The name of the private workforce. -
setWorkforceName
The name of the private workforce. -
getCognitoConfig
The configuration of an Amazon Cognito workforce.Returns union: either
IResolvableorCfnWorkforce.CognitoConfigProperty -
setCognitoConfig
The configuration of an Amazon Cognito workforce. -
setCognitoConfig
The configuration of an Amazon Cognito workforce. -
getIpAddressType
The IP address type for the workforce. -
setIpAddressType
The IP address type for the workforce. -
getOidcConfig
The configuration of an OIDC Identity Provider (IdP) private workforce.Returns union: either
IResolvableorCfnWorkforce.OidcConfigProperty -
setOidcConfig
The configuration of an OIDC Identity Provider (IdP) private workforce. -
setOidcConfig
The configuration of an OIDC Identity Provider (IdP) private workforce. -
getSourceIpConfig
A list of IP address ranges used to access your training data.Returns union: either
IResolvableorCfnWorkforce.SourceIpConfigProperty -
setSourceIpConfig
A list of IP address ranges used to access your training data. -
setSourceIpConfig
@Stability(Stable) public void setSourceIpConfig(@Nullable CfnWorkforce.SourceIpConfigProperty value) A list of IP address ranges used to access your training data. -
getTags
An array of key-value pairs. -
setTags
An array of key-value pairs. -
getWorkforceVpcConfig
The VPC configuration for the workforce.Returns union: either
IResolvableorCfnWorkforce.WorkforceVpcConfigRequestProperty -
setWorkforceVpcConfig
The VPC configuration for the workforce. -
setWorkforceVpcConfig
@Stability(Stable) public void setWorkforceVpcConfig(@Nullable CfnWorkforce.WorkforceVpcConfigRequestProperty value) The VPC configuration for the workforce.
-