amazonka-sagemaker-2.0: Amazon SageMaker Service SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.SageMaker.CreateWorkforce

Description

Use this operation to create a workforce. This operation will return an error if a workforce already exists in the Amazon Web Services Region that you specify. You can only create one workforce in each Amazon Web Services Region per Amazon Web Services account.

If you want to create a new workforce in an Amazon Web Services Region where a workforce already exists, use the API operation to delete the existing workforce and then use CreateWorkforce to create a new workforce.

To create a private workforce using Amazon Cognito, you must specify a Cognito user pool in CognitoConfig. You can also create an Amazon Cognito workforce using the Amazon SageMaker console. For more information, see Create a Private Workforce (Amazon Cognito).

To create a private workforce using your own OIDC Identity Provider (IdP), specify your IdP configuration in OidcConfig. Your OIDC IdP must support groups because groups are used by Ground Truth and Amazon A2I to create work teams. For more information, see Create a Private Workforce (OIDC IdP).

Synopsis

Creating a Request

data CreateWorkforce Source #

See: newCreateWorkforce smart constructor.

Constructors

CreateWorkforce' 

Fields

Instances

Instances details
ToJSON CreateWorkforce Source # 
Instance details

Defined in Amazonka.SageMaker.CreateWorkforce

ToHeaders CreateWorkforce Source # 
Instance details

Defined in Amazonka.SageMaker.CreateWorkforce

ToPath CreateWorkforce Source # 
Instance details

Defined in Amazonka.SageMaker.CreateWorkforce

ToQuery CreateWorkforce Source # 
Instance details

Defined in Amazonka.SageMaker.CreateWorkforce

AWSRequest CreateWorkforce Source # 
Instance details

Defined in Amazonka.SageMaker.CreateWorkforce

Associated Types

type AWSResponse CreateWorkforce #

Generic CreateWorkforce Source # 
Instance details

Defined in Amazonka.SageMaker.CreateWorkforce

Associated Types

type Rep CreateWorkforce :: Type -> Type #

Show CreateWorkforce Source # 
Instance details

Defined in Amazonka.SageMaker.CreateWorkforce

NFData CreateWorkforce Source # 
Instance details

Defined in Amazonka.SageMaker.CreateWorkforce

Methods

rnf :: CreateWorkforce -> () #

Eq CreateWorkforce Source # 
Instance details

Defined in Amazonka.SageMaker.CreateWorkforce

Hashable CreateWorkforce Source # 
Instance details

Defined in Amazonka.SageMaker.CreateWorkforce

type AWSResponse CreateWorkforce Source # 
Instance details

Defined in Amazonka.SageMaker.CreateWorkforce

type Rep CreateWorkforce Source # 
Instance details

Defined in Amazonka.SageMaker.CreateWorkforce

type Rep CreateWorkforce = D1 ('MetaData "CreateWorkforce" "Amazonka.SageMaker.CreateWorkforce" "amazonka-sagemaker-2.0-9SyrKZ4KqhsL1qX9u3ILA3" 'False) (C1 ('MetaCons "CreateWorkforce'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "cognitoConfig") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe CognitoConfig)) :*: (S1 ('MetaSel ('Just "oidcConfig") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe OidcConfig)) :*: S1 ('MetaSel ('Just "sourceIpConfig") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe SourceIpConfig)))) :*: (S1 ('MetaSel ('Just "tags") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Tag])) :*: (S1 ('MetaSel ('Just "workforceVpcConfig") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe WorkforceVpcConfigRequest)) :*: S1 ('MetaSel ('Just "workforceName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))))

newCreateWorkforce Source #

Create a value of CreateWorkforce with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

CreateWorkforce, createWorkforce_cognitoConfig - Use this parameter to configure an Amazon Cognito private workforce. A single Cognito workforce is created using and corresponds to a single Amazon Cognito user pool.

Do not use OidcConfig if you specify values for CognitoConfig.

CreateWorkforce, createWorkforce_oidcConfig - Use this parameter to configure a private workforce using your own OIDC Identity Provider.

Do not use CognitoConfig if you specify values for OidcConfig.

CreateWorkforce, createWorkforce_sourceIpConfig - Undocumented member.

CreateWorkforce, createWorkforce_tags - An array of key-value pairs that contain metadata to help you categorize and organize our workforce. Each tag consists of a key and a value, both of which you define.

CreateWorkforce, createWorkforce_workforceVpcConfig - Use this parameter to configure a workforce using VPC.

CreateWorkforce, createWorkforce_workforceName - The name of the private workforce.

Request Lenses

createWorkforce_cognitoConfig :: Lens' CreateWorkforce (Maybe CognitoConfig) Source #

Use this parameter to configure an Amazon Cognito private workforce. A single Cognito workforce is created using and corresponds to a single Amazon Cognito user pool.

Do not use OidcConfig if you specify values for CognitoConfig.

createWorkforce_oidcConfig :: Lens' CreateWorkforce (Maybe OidcConfig) Source #

Use this parameter to configure a private workforce using your own OIDC Identity Provider.

Do not use CognitoConfig if you specify values for OidcConfig.

createWorkforce_tags :: Lens' CreateWorkforce (Maybe [Tag]) Source #

An array of key-value pairs that contain metadata to help you categorize and organize our workforce. Each tag consists of a key and a value, both of which you define.

createWorkforce_workforceVpcConfig :: Lens' CreateWorkforce (Maybe WorkforceVpcConfigRequest) Source #

Use this parameter to configure a workforce using VPC.

createWorkforce_workforceName :: Lens' CreateWorkforce Text Source #

The name of the private workforce.

Destructuring the Response

data CreateWorkforceResponse Source #

See: newCreateWorkforceResponse smart constructor.

Constructors

CreateWorkforceResponse' 

Fields

Instances

Instances details
Generic CreateWorkforceResponse Source # 
Instance details

Defined in Amazonka.SageMaker.CreateWorkforce

Associated Types

type Rep CreateWorkforceResponse :: Type -> Type #

Read CreateWorkforceResponse Source # 
Instance details

Defined in Amazonka.SageMaker.CreateWorkforce

Show CreateWorkforceResponse Source # 
Instance details

Defined in Amazonka.SageMaker.CreateWorkforce

NFData CreateWorkforceResponse Source # 
Instance details

Defined in Amazonka.SageMaker.CreateWorkforce

Methods

rnf :: CreateWorkforceResponse -> () #

Eq CreateWorkforceResponse Source # 
Instance details

Defined in Amazonka.SageMaker.CreateWorkforce

type Rep CreateWorkforceResponse Source # 
Instance details

Defined in Amazonka.SageMaker.CreateWorkforce

type Rep CreateWorkforceResponse = D1 ('MetaData "CreateWorkforceResponse" "Amazonka.SageMaker.CreateWorkforce" "amazonka-sagemaker-2.0-9SyrKZ4KqhsL1qX9u3ILA3" 'False) (C1 ('MetaCons "CreateWorkforceResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int) :*: S1 ('MetaSel ('Just "workforceArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))

newCreateWorkforceResponse Source #

Create a value of CreateWorkforceResponse with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:httpStatus:CreateWorkforceResponse', createWorkforceResponse_httpStatus - The response's http status code.

CreateWorkforceResponse, createWorkforceResponse_workforceArn - The Amazon Resource Name (ARN) of the workforce.

Response Lenses

createWorkforceResponse_workforceArn :: Lens' CreateWorkforceResponse Text Source #

The Amazon Resource Name (ARN) of the workforce.