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.UpdateWorkforce

Description

Use this operation to update your workforce. You can use this operation to require that workers use specific IP addresses to work on tasks and to update your OpenID Connect (OIDC) Identity Provider (IdP) workforce configuration.

The worker portal is now supported in VPC and public internet.

Use SourceIpConfig to restrict worker access to tasks to a specific range of IP addresses. You specify allowed IP addresses by creating a list of up to ten CIDRs. By default, a workforce isn't restricted to specific IP addresses. If you specify a range of IP addresses, workers who attempt to access tasks using any IP address outside the specified range are denied and get a Not Found error message on the worker portal.

To restrict access to all the workers in public internet, add the SourceIpConfig CIDR value as "0.0.0.0/0".

Amazon SageMaker does not support Source Ip restriction for worker portals in VPC.

Use OidcConfig to update the configuration of a workforce created using your own OIDC IdP.

You can only update your OIDC IdP configuration when there are no work teams associated with your workforce. You can delete work teams using the operation.

After restricting access to a range of IP addresses or updating your OIDC IdP configuration with this operation, you can view details about your update workforce using the operation.

This operation only applies to private workforces.

Synopsis

Creating a Request

data UpdateWorkforce Source #

See: newUpdateWorkforce smart constructor.

Constructors

UpdateWorkforce' 

Fields

Instances

Instances details
ToJSON UpdateWorkforce Source # 
Instance details

Defined in Amazonka.SageMaker.UpdateWorkforce

ToHeaders UpdateWorkforce Source # 
Instance details

Defined in Amazonka.SageMaker.UpdateWorkforce

ToPath UpdateWorkforce Source # 
Instance details

Defined in Amazonka.SageMaker.UpdateWorkforce

ToQuery UpdateWorkforce Source # 
Instance details

Defined in Amazonka.SageMaker.UpdateWorkforce

AWSRequest UpdateWorkforce Source # 
Instance details

Defined in Amazonka.SageMaker.UpdateWorkforce

Associated Types

type AWSResponse UpdateWorkforce #

Generic UpdateWorkforce Source # 
Instance details

Defined in Amazonka.SageMaker.UpdateWorkforce

Associated Types

type Rep UpdateWorkforce :: Type -> Type #

Show UpdateWorkforce Source # 
Instance details

Defined in Amazonka.SageMaker.UpdateWorkforce

NFData UpdateWorkforce Source # 
Instance details

Defined in Amazonka.SageMaker.UpdateWorkforce

Methods

rnf :: UpdateWorkforce -> () #

Eq UpdateWorkforce Source # 
Instance details

Defined in Amazonka.SageMaker.UpdateWorkforce

Hashable UpdateWorkforce Source # 
Instance details

Defined in Amazonka.SageMaker.UpdateWorkforce

type AWSResponse UpdateWorkforce Source # 
Instance details

Defined in Amazonka.SageMaker.UpdateWorkforce

type Rep UpdateWorkforce Source # 
Instance details

Defined in Amazonka.SageMaker.UpdateWorkforce

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

newUpdateWorkforce Source #

Create a value of UpdateWorkforce 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:

UpdateWorkforce, updateWorkforce_oidcConfig - Use this parameter to update your OIDC Identity Provider (IdP) configuration for a workforce made using your own IdP.

UpdateWorkforce, updateWorkforce_sourceIpConfig - A list of one to ten worker IP address ranges (CIDRs) that can be used to access tasks assigned to this workforce.

Maximum: Ten CIDR values

UpdateWorkforce, updateWorkforce_workforceVpcConfig - Use this parameter to update your VPC configuration for a workforce.

UpdateWorkforce, updateWorkforce_workforceName - The name of the private workforce that you want to update. You can find your workforce name by using the operation.

Request Lenses

updateWorkforce_oidcConfig :: Lens' UpdateWorkforce (Maybe OidcConfig) Source #

Use this parameter to update your OIDC Identity Provider (IdP) configuration for a workforce made using your own IdP.

updateWorkforce_sourceIpConfig :: Lens' UpdateWorkforce (Maybe SourceIpConfig) Source #

A list of one to ten worker IP address ranges (CIDRs) that can be used to access tasks assigned to this workforce.

Maximum: Ten CIDR values

updateWorkforce_workforceVpcConfig :: Lens' UpdateWorkforce (Maybe WorkforceVpcConfigRequest) Source #

Use this parameter to update your VPC configuration for a workforce.

updateWorkforce_workforceName :: Lens' UpdateWorkforce Text Source #

The name of the private workforce that you want to update. You can find your workforce name by using the operation.

Destructuring the Response

data UpdateWorkforceResponse Source #

See: newUpdateWorkforceResponse smart constructor.

Constructors

UpdateWorkforceResponse' 

Fields

  • httpStatus :: Int

    The response's http status code.

  • workforce :: Workforce

    A single private workforce. You can create one private work force in each Amazon Web Services Region. By default, any workforce-related API operation used in a specific region will apply to the workforce created in that region. To learn how to create a private workforce, see Create a Private Workforce.

Instances

Instances details
Generic UpdateWorkforceResponse Source # 
Instance details

Defined in Amazonka.SageMaker.UpdateWorkforce

Associated Types

type Rep UpdateWorkforceResponse :: Type -> Type #

Read UpdateWorkforceResponse Source # 
Instance details

Defined in Amazonka.SageMaker.UpdateWorkforce

Show UpdateWorkforceResponse Source # 
Instance details

Defined in Amazonka.SageMaker.UpdateWorkforce

NFData UpdateWorkforceResponse Source # 
Instance details

Defined in Amazonka.SageMaker.UpdateWorkforce

Methods

rnf :: UpdateWorkforceResponse -> () #

Eq UpdateWorkforceResponse Source # 
Instance details

Defined in Amazonka.SageMaker.UpdateWorkforce

type Rep UpdateWorkforceResponse Source # 
Instance details

Defined in Amazonka.SageMaker.UpdateWorkforce

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

newUpdateWorkforceResponse Source #

Create a value of UpdateWorkforceResponse 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:UpdateWorkforceResponse', updateWorkforceResponse_httpStatus - The response's http status code.

$sel:workforce:UpdateWorkforceResponse', updateWorkforceResponse_workforce - A single private workforce. You can create one private work force in each Amazon Web Services Region. By default, any workforce-related API operation used in a specific region will apply to the workforce created in that region. To learn how to create a private workforce, see Create a Private Workforce.

Response Lenses

updateWorkforceResponse_workforce :: Lens' UpdateWorkforceResponse Workforce Source #

A single private workforce. You can create one private work force in each Amazon Web Services Region. By default, any workforce-related API operation used in a specific region will apply to the workforce created in that region. To learn how to create a private workforce, see Create a Private Workforce.