/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the sagemaker-2017-07-24.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.SageMaker.Model { /// /// Container for the parameters to the UpdateWorkforce operation. /// 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 "10.0.0.0/16". /// /// /// /// 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 DeleteWorkteam /// 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 DescribeWorkforce /// operation. /// /// /// /// This operation only applies to private workforces. /// /// /// public partial class UpdateWorkforceRequest : AmazonSageMakerRequest { private OidcConfig _oidcConfig; private SourceIpConfig _sourceIpConfig; private string _workforceName; private WorkforceVpcConfigRequest _workforceVpcConfig; /// /// Gets and sets the property OidcConfig. /// /// Use this parameter to update your OIDC Identity Provider (IdP) configuration for a /// workforce made using your own IdP. /// /// public OidcConfig OidcConfig { get { return this._oidcConfig; } set { this._oidcConfig = value; } } // Check to see if OidcConfig property is set internal bool IsSetOidcConfig() { return this._oidcConfig != null; } /// /// Gets and sets the property 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 /// /// public SourceIpConfig SourceIpConfig { get { return this._sourceIpConfig; } set { this._sourceIpConfig = value; } } // Check to see if SourceIpConfig property is set internal bool IsSetSourceIpConfig() { return this._sourceIpConfig != null; } /// /// Gets and sets the property WorkforceName. /// /// The name of the private workforce that you want to update. You can find your workforce /// name by using the ListWorkforces /// operation. /// /// [AWSProperty(Required=true, Min=1, Max=63)] public string WorkforceName { get { return this._workforceName; } set { this._workforceName = value; } } // Check to see if WorkforceName property is set internal bool IsSetWorkforceName() { return this._workforceName != null; } /// /// Gets and sets the property WorkforceVpcConfig. /// /// Use this parameter to update your VPC configuration for a workforce. /// /// public WorkforceVpcConfigRequest WorkforceVpcConfig { get { return this._workforceVpcConfig; } set { this._workforceVpcConfig = value; } } // Check to see if WorkforceVpcConfig property is set internal bool IsSetWorkforceVpcConfig() { return this._workforceVpcConfig != null; } } }