/******************************************************************************* * Copyright 2012-2019 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. * ***************************************************************************** * * AWS Tools for Windows (TM) PowerShell (TM) * */ using System; using System.Collections.Generic; using System.Linq; using System.Management.Automation; using System.Text; using Amazon.PowerShell.Common; using Amazon.Runtime; using Amazon.SageMaker; using Amazon.SageMaker.Model; namespace Amazon.PowerShell.Cmdlets.SM { /// /// Creates the definition for a model bias job. /// [Cmdlet("New", "SMModelBiasJobDefinition", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] [OutputType("System.String")] [AWSCmdlet("Calls the Amazon SageMaker Service CreateModelBiasJobDefinition API operation.", Operation = new[] {"CreateModelBiasJobDefinition"}, SelectReturnType = typeof(Amazon.SageMaker.Model.CreateModelBiasJobDefinitionResponse))] [AWSCmdletOutput("System.String or Amazon.SageMaker.Model.CreateModelBiasJobDefinitionResponse", "This cmdlet returns a System.String object.", "The service call response (type Amazon.SageMaker.Model.CreateModelBiasJobDefinitionResponse) can also be referenced from properties attached to the cmdlet entry in the $AWSHistory stack." )] public partial class NewSMModelBiasJobDefinitionCmdlet : AmazonSageMakerClientCmdlet, IExecutor { #region Parameter ModelBiasBaselineConfig_BaseliningJobName /// /// /// The name of the baseline model bias job. /// /// [System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)] public System.String ModelBiasBaselineConfig_BaseliningJobName { get; set; } #endregion #region Parameter ModelBiasAppSpecification_ConfigUri /// /// /// JSON formatted S3 file that defines bias parameters. For more information on this /// JSON configuration file, see Configure /// bias parameters. /// /// #if !MODULAR [System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)] #else [System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true, Mandatory = true)] [System.Management.Automation.AllowEmptyString] [System.Management.Automation.AllowNull] #endif [Amazon.PowerShell.Common.AWSRequiredParameter] public System.String ModelBiasAppSpecification_ConfigUri { get; set; } #endregion #region Parameter BatchTransformInput_DataCapturedDestinationS3Uri /// /// /// The Amazon S3 location being used to capture the data. /// /// [System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)] [Alias("ModelBiasJobInput_BatchTransformInput_DataCapturedDestinationS3Uri")] public System.String BatchTransformInput_DataCapturedDestinationS3Uri { get; set; } #endregion #region Parameter NetworkConfig_EnableInterContainerTrafficEncryption /// /// /// Whether to encrypt all communications between the instances used for the monitoring /// jobs. Choose True to encrypt communications. Encryption provides greater /// security for distributed jobs, but the processing might take longer. /// /// [System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)] public System.Boolean? NetworkConfig_EnableInterContainerTrafficEncryption { get; set; } #endregion #region Parameter NetworkConfig_EnableNetworkIsolation /// /// /// Whether to allow inbound and outbound network calls to and from the containers used /// for the monitoring job. /// /// [System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)] public System.Boolean? NetworkConfig_EnableNetworkIsolation { get; set; } #endregion #region Parameter EndpointInput_EndpointName /// /// /// An endpoint in customer's account which has enabled DataCaptureConfig /// enabled. /// /// [System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)] [Alias("ModelBiasJobInput_EndpointInput_EndpointName")] public System.String EndpointInput_EndpointName { get; set; } #endregion #region Parameter BatchTransformInput_EndTimeOffset /// /// /// If specified, monitoring jobs substract this time from the end time. For information /// about using offsets for scheduling monitoring jobs, see Schedule /// Model Quality Monitoring Jobs. /// /// [System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)] [Alias("ModelBiasJobInput_BatchTransformInput_EndTimeOffset")] public System.String BatchTransformInput_EndTimeOffset { get; set; } #endregion #region Parameter EndpointInput_EndTimeOffset /// /// /// If specified, monitoring jobs substract this time from the end time. For information /// about using offsets for scheduling monitoring jobs, see Schedule /// Model Quality Monitoring Jobs. /// /// [System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)] [Alias("ModelBiasJobInput_EndpointInput_EndTimeOffset")] public System.String EndpointInput_EndTimeOffset { get; set; } #endregion #region Parameter ModelBiasAppSpecification_Environment /// /// /// Sets the environment variables in the Docker container. /// /// [System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)] public System.Collections.Hashtable ModelBiasAppSpecification_Environment { get; set; } #endregion #region Parameter BatchTransformInput_FeaturesAttribute /// /// /// The attributes of the input data that are the input features. /// /// [System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)] [Alias("ModelBiasJobInput_BatchTransformInput_FeaturesAttribute")] public System.String BatchTransformInput_FeaturesAttribute { get; set; } #endregion #region Parameter EndpointInput_FeaturesAttribute /// /// /// The attributes of the input data that are the input features. /// /// [System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)] [Alias("ModelBiasJobInput_EndpointInput_FeaturesAttribute")] public System.String EndpointInput_FeaturesAttribute { get; set; } #endregion #region Parameter Csv_Header /// /// /// Indicates if the CSV data has a header. /// /// [System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)] [Alias("ModelBiasJobInput_BatchTransformInput_DatasetFormat_Csv_Header")] public System.Boolean? Csv_Header { get; set; } #endregion #region Parameter ModelBiasAppSpecification_ImageUri /// /// /// The container image to be run by the model bias job. /// /// #if !MODULAR [System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)] #else [System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true, Mandatory = true)] [System.Management.Automation.AllowEmptyString] [System.Management.Automation.AllowNull] #endif [Amazon.PowerShell.Common.AWSRequiredParameter] public System.String ModelBiasAppSpecification_ImageUri { get; set; } #endregion #region Parameter BatchTransformInput_InferenceAttribute /// /// /// The attribute of the input data that represents the ground truth label. /// /// [System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)] [Alias("ModelBiasJobInput_BatchTransformInput_InferenceAttribute")] public System.String BatchTransformInput_InferenceAttribute { get; set; } #endregion #region Parameter EndpointInput_InferenceAttribute /// /// /// The attribute of the input data that represents the ground truth label. /// /// [System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)] [Alias("ModelBiasJobInput_EndpointInput_InferenceAttribute")] public System.String EndpointInput_InferenceAttribute { get; set; } #endregion #region Parameter ClusterConfig_InstanceCount /// /// /// The number of ML compute instances to use in the model monitoring job. For distributed /// processing jobs, specify a value greater than 1. The default value is 1. /// /// #if !MODULAR [System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)] #else [System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true, Mandatory = true)] [System.Management.Automation.AllowNull] #endif [Amazon.PowerShell.Common.AWSRequiredParameter] [Alias("JobResources_ClusterConfig_InstanceCount")] public System.Int32? ClusterConfig_InstanceCount { get; set; } #endregion #region Parameter ClusterConfig_InstanceType /// /// /// The ML compute instance type for the processing job. /// /// #if !MODULAR [System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)] #else [System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true, Mandatory = true)] [System.Management.Automation.AllowNull] #endif [Amazon.PowerShell.Common.AWSRequiredParameter] [Alias("JobResources_ClusterConfig_InstanceType")] [AWSConstantClassSource("Amazon.SageMaker.ProcessingInstanceType")] public Amazon.SageMaker.ProcessingInstanceType ClusterConfig_InstanceType { get; set; } #endregion #region Parameter JobDefinitionName /// /// /// The name of the bias job definition. The name must be unique within an Amazon Web /// Services Region in the Amazon Web Services account. /// /// #if !MODULAR [System.Management.Automation.Parameter(Position = 0, ValueFromPipelineByPropertyName = true, ValueFromPipeline = true)] #else [System.Management.Automation.Parameter(Position = 0, ValueFromPipelineByPropertyName = true, ValueFromPipeline = true, Mandatory = true)] [System.Management.Automation.AllowEmptyString] [System.Management.Automation.AllowNull] #endif [Amazon.PowerShell.Common.AWSRequiredParameter] public System.String JobDefinitionName { get; set; } #endregion #region Parameter ModelBiasJobOutputConfig_KmsKeyId /// /// /// The Amazon Web Services Key Management Service (Amazon Web Services KMS) key that /// Amazon SageMaker uses to encrypt the model artifacts at rest using Amazon S3 server-side /// encryption. /// /// [System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)] public System.String ModelBiasJobOutputConfig_KmsKeyId { get; set; } #endregion #region Parameter Json_Line /// /// /// Indicates if the file should be read as a json object per line. /// /// [System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)] [Alias("ModelBiasJobInput_BatchTransformInput_DatasetFormat_Json_Line")] public System.Boolean? Json_Line { get; set; } #endregion #region Parameter BatchTransformInput_LocalPath /// /// /// Path to the filesystem where the batch transform data is available to the container. /// /// [System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)] [Alias("ModelBiasJobInput_BatchTransformInput_LocalPath")] public System.String BatchTransformInput_LocalPath { get; set; } #endregion #region Parameter EndpointInput_LocalPath /// /// /// Path to the filesystem where the endpoint data is available to the container. /// /// [System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)] [Alias("ModelBiasJobInput_EndpointInput_LocalPath")] public System.String EndpointInput_LocalPath { get; set; } #endregion #region Parameter StoppingCondition_MaxRuntimeInSecond /// /// /// The maximum runtime allowed in seconds.The MaxRuntimeInSeconds cannot exceed the frequency of the job. For data /// quality and model explainability, this can be up to 3600 seconds for an hourly schedule. /// For model bias and model quality hourly schedules, this can be up to 1800 seconds. /// /// [System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)] [Alias("StoppingCondition_MaxRuntimeInSeconds")] public System.Int32? StoppingCondition_MaxRuntimeInSecond { get; set; } #endregion #region Parameter ModelBiasJobOutputConfig_MonitoringOutput /// /// /// Monitoring outputs for monitoring jobs. This is where the output of the periodic monitoring /// jobs is uploaded. /// /// #if !MODULAR [System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)] #else [System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true, Mandatory = true)] [System.Management.Automation.AllowEmptyCollection] [System.Management.Automation.AllowNull] #endif [Amazon.PowerShell.Common.AWSRequiredParameter] [Alias("ModelBiasJobOutputConfig_MonitoringOutputs")] public Amazon.SageMaker.Model.MonitoringOutput[] ModelBiasJobOutputConfig_MonitoringOutput { get; set; } #endregion #region Parameter DatasetFormat_Parquet /// /// /// The Parquet dataset used in the monitoring job /// /// [System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)] [Alias("ModelBiasJobInput_BatchTransformInput_DatasetFormat_Parquet")] public Amazon.SageMaker.Model.MonitoringParquetDatasetFormat DatasetFormat_Parquet { get; set; } #endregion #region Parameter BatchTransformInput_ProbabilityAttribute /// /// /// In a classification problem, the attribute that represents the class probability. /// /// [System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)] [Alias("ModelBiasJobInput_BatchTransformInput_ProbabilityAttribute")] public System.String BatchTransformInput_ProbabilityAttribute { get; set; } #endregion #region Parameter EndpointInput_ProbabilityAttribute /// /// /// In a classification problem, the attribute that represents the class probability. /// /// [System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)] [Alias("ModelBiasJobInput_EndpointInput_ProbabilityAttribute")] public System.String EndpointInput_ProbabilityAttribute { get; set; } #endregion #region Parameter BatchTransformInput_ProbabilityThresholdAttribute /// /// /// The threshold for the class probability to be evaluated as a positive result. /// /// [System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)] [Alias("ModelBiasJobInput_BatchTransformInput_ProbabilityThresholdAttribute")] public System.Double? BatchTransformInput_ProbabilityThresholdAttribute { get; set; } #endregion #region Parameter EndpointInput_ProbabilityThresholdAttribute /// /// /// The threshold for the class probability to be evaluated as a positive result. /// /// [System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)] [Alias("ModelBiasJobInput_EndpointInput_ProbabilityThresholdAttribute")] public System.Double? EndpointInput_ProbabilityThresholdAttribute { get; set; } #endregion #region Parameter RoleArn /// /// /// The Amazon Resource Name (ARN) of an IAM role that Amazon SageMaker can assume to /// perform tasks on your behalf. /// /// #if !MODULAR [System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)] #else [System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true, Mandatory = true)] [System.Management.Automation.AllowEmptyString] [System.Management.Automation.AllowNull] #endif [Amazon.PowerShell.Common.AWSRequiredParameter] public System.String RoleArn { get; set; } #endregion #region Parameter BatchTransformInput_S3DataDistributionType /// /// /// Whether input data distributed in Amazon S3 is fully replicated or sharded by an S3 /// key. Defaults to FullyReplicated /// /// [System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)] [Alias("ModelBiasJobInput_BatchTransformInput_S3DataDistributionType")] [AWSConstantClassSource("Amazon.SageMaker.ProcessingS3DataDistributionType")] public Amazon.SageMaker.ProcessingS3DataDistributionType BatchTransformInput_S3DataDistributionType { get; set; } #endregion #region Parameter EndpointInput_S3DataDistributionType /// /// /// Whether input data distributed in Amazon S3 is fully replicated or sharded by an S3 /// key. Defaults to FullyReplicated /// /// [System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)] [Alias("ModelBiasJobInput_EndpointInput_S3DataDistributionType")] [AWSConstantClassSource("Amazon.SageMaker.ProcessingS3DataDistributionType")] public Amazon.SageMaker.ProcessingS3DataDistributionType EndpointInput_S3DataDistributionType { get; set; } #endregion #region Parameter BatchTransformInput_S3InputMode /// /// /// Whether the Pipe or File is used as the input mode for transferring /// data for the monitoring job. Pipe mode is recommended for large datasets. /// File mode is useful for small files that fit in memory. Defaults to File. /// /// [System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)] [Alias("ModelBiasJobInput_BatchTransformInput_S3InputMode")] [AWSConstantClassSource("Amazon.SageMaker.ProcessingS3InputMode")] public Amazon.SageMaker.ProcessingS3InputMode BatchTransformInput_S3InputMode { get; set; } #endregion #region Parameter EndpointInput_S3InputMode /// /// /// Whether the Pipe or File is used as the input mode for transferring /// data for the monitoring job. Pipe mode is recommended for large datasets. /// File mode is useful for small files that fit in memory. Defaults to File. /// /// [System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)] [Alias("ModelBiasJobInput_EndpointInput_S3InputMode")] [AWSConstantClassSource("Amazon.SageMaker.ProcessingS3InputMode")] public Amazon.SageMaker.ProcessingS3InputMode EndpointInput_S3InputMode { get; set; } #endregion #region Parameter ConstraintsResource_S3Uri /// /// /// The Amazon S3 URI for the constraints resource. /// /// [System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)] [Alias("ModelBiasBaselineConfig_ConstraintsResource_S3Uri")] public System.String ConstraintsResource_S3Uri { get; set; } #endregion #region Parameter GroundTruthS3Input_S3Uri /// /// /// The address of the Amazon S3 location of the ground truth labels. /// /// [System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)] [Alias("ModelBiasJobInput_GroundTruthS3Input_S3Uri")] public System.String GroundTruthS3Input_S3Uri { get; set; } #endregion #region Parameter VpcConfig_SecurityGroupId /// /// /// The VPC security group IDs, in the form sg-xxxxxxxx. Specify the security groups for /// the VPC that is specified in the Subnets field. /// /// [System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)] [Alias("NetworkConfig_VpcConfig_SecurityGroupIds")] public System.String[] VpcConfig_SecurityGroupId { get; set; } #endregion #region Parameter BatchTransformInput_StartTimeOffset /// /// /// If specified, monitoring jobs substract this time from the start time. For information /// about using offsets for scheduling monitoring jobs, see Schedule /// Model Quality Monitoring Jobs. /// /// [System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)] [Alias("ModelBiasJobInput_BatchTransformInput_StartTimeOffset")] public System.String BatchTransformInput_StartTimeOffset { get; set; } #endregion #region Parameter EndpointInput_StartTimeOffset /// /// /// If specified, monitoring jobs substract this time from the start time. For information /// about using offsets for scheduling monitoring jobs, see Schedule /// Model Quality Monitoring Jobs. /// /// [System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)] [Alias("ModelBiasJobInput_EndpointInput_StartTimeOffset")] public System.String EndpointInput_StartTimeOffset { get; set; } #endregion #region Parameter VpcConfig_Subnet /// /// /// The ID of the subnets in the VPC to which you want to connect your training job or /// model. For information about the availability of specific instance types, see Supported /// Instance Types and Availability Zones. /// /// [System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)] [Alias("NetworkConfig_VpcConfig_Subnets")] public System.String[] VpcConfig_Subnet { get; set; } #endregion #region Parameter Tag /// /// /// (Optional) An array of key-value pairs. For more information, see Using /// Cost Allocation Tags in the Amazon Web Services Billing and Cost Management /// User Guide. /// /// [System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)] [Alias("Tags")] public Amazon.SageMaker.Model.Tag[] Tag { get; set; } #endregion #region Parameter ClusterConfig_VolumeKmsKeyId /// /// /// The Amazon Web Services Key Management Service (Amazon Web Services KMS) key that /// Amazon SageMaker uses to encrypt data on the storage volume attached to the ML compute /// instance(s) that run the model monitoring job. /// /// [System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)] [Alias("JobResources_ClusterConfig_VolumeKmsKeyId")] public System.String ClusterConfig_VolumeKmsKeyId { get; set; } #endregion #region Parameter ClusterConfig_VolumeSizeInGB /// /// /// The size of the ML storage volume, in gigabytes, that you want to provision. You must /// specify sufficient ML storage for your scenario. /// /// #if !MODULAR [System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)] #else [System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true, Mandatory = true)] [System.Management.Automation.AllowNull] #endif [Amazon.PowerShell.Common.AWSRequiredParameter] [Alias("JobResources_ClusterConfig_VolumeSizeInGB")] public System.Int32? ClusterConfig_VolumeSizeInGB { get; set; } #endregion #region Parameter Select /// /// Use the -Select parameter to control the cmdlet output. The default value is 'JobDefinitionArn'. /// Specifying -Select '*' will result in the cmdlet returning the whole service response (Amazon.SageMaker.Model.CreateModelBiasJobDefinitionResponse). /// Specifying the name of a property of type Amazon.SageMaker.Model.CreateModelBiasJobDefinitionResponse will result in that property being returned. /// Specifying -Select '^ParameterName' will result in the cmdlet returning the selected cmdlet parameter value. /// [System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)] public string Select { get; set; } = "JobDefinitionArn"; #endregion #region Parameter PassThru /// /// Changes the cmdlet behavior to return the value passed to the JobDefinitionName parameter. /// The -PassThru parameter is deprecated, use -Select '^JobDefinitionName' instead. This parameter will be removed in a future version. /// [System.Obsolete("The -PassThru parameter is deprecated, use -Select '^JobDefinitionName' instead. This parameter will be removed in a future version.")] [System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)] public SwitchParameter PassThru { get; set; } #endregion #region Parameter Force /// /// This parameter overrides confirmation prompts to force /// the cmdlet to continue its operation. This parameter should always /// be used with caution. /// [System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)] public SwitchParameter Force { get; set; } #endregion protected override void ProcessRecord() { this._AWSSignerType = "v4"; base.ProcessRecord(); var resourceIdentifiersText = FormatParameterValuesForConfirmationMsg(nameof(this.JobDefinitionName), MyInvocation.BoundParameters); if (!ConfirmShouldProceed(this.Force.IsPresent, resourceIdentifiersText, "New-SMModelBiasJobDefinition (CreateModelBiasJobDefinition)")) { return; } var context = new CmdletContext(); // allow for manipulation of parameters prior to loading into context PreExecutionContextLoad(context); #pragma warning disable CS0618, CS0612 //A class member was marked with the Obsolete attribute if (ParameterWasBound(nameof(this.Select))) { context.Select = CreateSelectDelegate(Select) ?? throw new System.ArgumentException("Invalid value for -Select parameter.", nameof(this.Select)); if (this.PassThru.IsPresent) { throw new System.ArgumentException("-PassThru cannot be used when -Select is specified.", nameof(this.Select)); } } else if (this.PassThru.IsPresent) { context.Select = (response, cmdlet) => this.JobDefinitionName; } #pragma warning restore CS0618, CS0612 //A class member was marked with the Obsolete attribute context.JobDefinitionName = this.JobDefinitionName; #if MODULAR if (this.JobDefinitionName == null && ParameterWasBound(nameof(this.JobDefinitionName))) { WriteWarning("You are passing $null as a value for parameter JobDefinitionName which is marked as required. In case you believe this parameter was incorrectly marked as required, report this by opening an issue at https://github.com/aws/aws-tools-for-powershell/issues."); } #endif context.ClusterConfig_InstanceCount = this.ClusterConfig_InstanceCount; #if MODULAR if (this.ClusterConfig_InstanceCount == null && ParameterWasBound(nameof(this.ClusterConfig_InstanceCount))) { WriteWarning("You are passing $null as a value for parameter ClusterConfig_InstanceCount which is marked as required. In case you believe this parameter was incorrectly marked as required, report this by opening an issue at https://github.com/aws/aws-tools-for-powershell/issues."); } #endif context.ClusterConfig_InstanceType = this.ClusterConfig_InstanceType; #if MODULAR if (this.ClusterConfig_InstanceType == null && ParameterWasBound(nameof(this.ClusterConfig_InstanceType))) { WriteWarning("You are passing $null as a value for parameter ClusterConfig_InstanceType which is marked as required. In case you believe this parameter was incorrectly marked as required, report this by opening an issue at https://github.com/aws/aws-tools-for-powershell/issues."); } #endif context.ClusterConfig_VolumeKmsKeyId = this.ClusterConfig_VolumeKmsKeyId; context.ClusterConfig_VolumeSizeInGB = this.ClusterConfig_VolumeSizeInGB; #if MODULAR if (this.ClusterConfig_VolumeSizeInGB == null && ParameterWasBound(nameof(this.ClusterConfig_VolumeSizeInGB))) { WriteWarning("You are passing $null as a value for parameter ClusterConfig_VolumeSizeInGB which is marked as required. In case you believe this parameter was incorrectly marked as required, report this by opening an issue at https://github.com/aws/aws-tools-for-powershell/issues."); } #endif context.ModelBiasAppSpecification_ConfigUri = this.ModelBiasAppSpecification_ConfigUri; #if MODULAR if (this.ModelBiasAppSpecification_ConfigUri == null && ParameterWasBound(nameof(this.ModelBiasAppSpecification_ConfigUri))) { WriteWarning("You are passing $null as a value for parameter ModelBiasAppSpecification_ConfigUri which is marked as required. In case you believe this parameter was incorrectly marked as required, report this by opening an issue at https://github.com/aws/aws-tools-for-powershell/issues."); } #endif if (this.ModelBiasAppSpecification_Environment != null) { context.ModelBiasAppSpecification_Environment = new Dictionary(StringComparer.Ordinal); foreach (var hashKey in this.ModelBiasAppSpecification_Environment.Keys) { context.ModelBiasAppSpecification_Environment.Add((String)hashKey, (String)(this.ModelBiasAppSpecification_Environment[hashKey])); } } context.ModelBiasAppSpecification_ImageUri = this.ModelBiasAppSpecification_ImageUri; #if MODULAR if (this.ModelBiasAppSpecification_ImageUri == null && ParameterWasBound(nameof(this.ModelBiasAppSpecification_ImageUri))) { WriteWarning("You are passing $null as a value for parameter ModelBiasAppSpecification_ImageUri which is marked as required. In case you believe this parameter was incorrectly marked as required, report this by opening an issue at https://github.com/aws/aws-tools-for-powershell/issues."); } #endif context.ModelBiasBaselineConfig_BaseliningJobName = this.ModelBiasBaselineConfig_BaseliningJobName; context.ConstraintsResource_S3Uri = this.ConstraintsResource_S3Uri; context.BatchTransformInput_DataCapturedDestinationS3Uri = this.BatchTransformInput_DataCapturedDestinationS3Uri; context.Csv_Header = this.Csv_Header; context.Json_Line = this.Json_Line; context.DatasetFormat_Parquet = this.DatasetFormat_Parquet; context.BatchTransformInput_EndTimeOffset = this.BatchTransformInput_EndTimeOffset; context.BatchTransformInput_FeaturesAttribute = this.BatchTransformInput_FeaturesAttribute; context.BatchTransformInput_InferenceAttribute = this.BatchTransformInput_InferenceAttribute; context.BatchTransformInput_LocalPath = this.BatchTransformInput_LocalPath; context.BatchTransformInput_ProbabilityAttribute = this.BatchTransformInput_ProbabilityAttribute; context.BatchTransformInput_ProbabilityThresholdAttribute = this.BatchTransformInput_ProbabilityThresholdAttribute; context.BatchTransformInput_S3DataDistributionType = this.BatchTransformInput_S3DataDistributionType; context.BatchTransformInput_S3InputMode = this.BatchTransformInput_S3InputMode; context.BatchTransformInput_StartTimeOffset = this.BatchTransformInput_StartTimeOffset; context.EndpointInput_EndpointName = this.EndpointInput_EndpointName; context.EndpointInput_EndTimeOffset = this.EndpointInput_EndTimeOffset; context.EndpointInput_FeaturesAttribute = this.EndpointInput_FeaturesAttribute; context.EndpointInput_InferenceAttribute = this.EndpointInput_InferenceAttribute; context.EndpointInput_LocalPath = this.EndpointInput_LocalPath; context.EndpointInput_ProbabilityAttribute = this.EndpointInput_ProbabilityAttribute; context.EndpointInput_ProbabilityThresholdAttribute = this.EndpointInput_ProbabilityThresholdAttribute; context.EndpointInput_S3DataDistributionType = this.EndpointInput_S3DataDistributionType; context.EndpointInput_S3InputMode = this.EndpointInput_S3InputMode; context.EndpointInput_StartTimeOffset = this.EndpointInput_StartTimeOffset; context.GroundTruthS3Input_S3Uri = this.GroundTruthS3Input_S3Uri; context.ModelBiasJobOutputConfig_KmsKeyId = this.ModelBiasJobOutputConfig_KmsKeyId; if (this.ModelBiasJobOutputConfig_MonitoringOutput != null) { context.ModelBiasJobOutputConfig_MonitoringOutput = new List(this.ModelBiasJobOutputConfig_MonitoringOutput); } #if MODULAR if (this.ModelBiasJobOutputConfig_MonitoringOutput == null && ParameterWasBound(nameof(this.ModelBiasJobOutputConfig_MonitoringOutput))) { WriteWarning("You are passing $null as a value for parameter ModelBiasJobOutputConfig_MonitoringOutput which is marked as required. In case you believe this parameter was incorrectly marked as required, report this by opening an issue at https://github.com/aws/aws-tools-for-powershell/issues."); } #endif context.NetworkConfig_EnableInterContainerTrafficEncryption = this.NetworkConfig_EnableInterContainerTrafficEncryption; context.NetworkConfig_EnableNetworkIsolation = this.NetworkConfig_EnableNetworkIsolation; if (this.VpcConfig_SecurityGroupId != null) { context.VpcConfig_SecurityGroupId = new List(this.VpcConfig_SecurityGroupId); } if (this.VpcConfig_Subnet != null) { context.VpcConfig_Subnet = new List(this.VpcConfig_Subnet); } context.RoleArn = this.RoleArn; #if MODULAR if (this.RoleArn == null && ParameterWasBound(nameof(this.RoleArn))) { WriteWarning("You are passing $null as a value for parameter RoleArn which is marked as required. In case you believe this parameter was incorrectly marked as required, report this by opening an issue at https://github.com/aws/aws-tools-for-powershell/issues."); } #endif context.StoppingCondition_MaxRuntimeInSecond = this.StoppingCondition_MaxRuntimeInSecond; if (this.Tag != null) { context.Tag = new List(this.Tag); } // allow further manipulation of loaded context prior to processing PostExecutionContextLoad(context); var output = Execute(context) as CmdletOutput; ProcessOutput(output); } #region IExecutor Members public object Execute(ExecutorContext context) { var cmdletContext = context as CmdletContext; // create request var request = new Amazon.SageMaker.Model.CreateModelBiasJobDefinitionRequest(); if (cmdletContext.JobDefinitionName != null) { request.JobDefinitionName = cmdletContext.JobDefinitionName; } // populate JobResources var requestJobResourcesIsNull = true; request.JobResources = new Amazon.SageMaker.Model.MonitoringResources(); Amazon.SageMaker.Model.MonitoringClusterConfig requestJobResources_jobResources_ClusterConfig = null; // populate ClusterConfig var requestJobResources_jobResources_ClusterConfigIsNull = true; requestJobResources_jobResources_ClusterConfig = new Amazon.SageMaker.Model.MonitoringClusterConfig(); System.Int32? requestJobResources_jobResources_ClusterConfig_clusterConfig_InstanceCount = null; if (cmdletContext.ClusterConfig_InstanceCount != null) { requestJobResources_jobResources_ClusterConfig_clusterConfig_InstanceCount = cmdletContext.ClusterConfig_InstanceCount.Value; } if (requestJobResources_jobResources_ClusterConfig_clusterConfig_InstanceCount != null) { requestJobResources_jobResources_ClusterConfig.InstanceCount = requestJobResources_jobResources_ClusterConfig_clusterConfig_InstanceCount.Value; requestJobResources_jobResources_ClusterConfigIsNull = false; } Amazon.SageMaker.ProcessingInstanceType requestJobResources_jobResources_ClusterConfig_clusterConfig_InstanceType = null; if (cmdletContext.ClusterConfig_InstanceType != null) { requestJobResources_jobResources_ClusterConfig_clusterConfig_InstanceType = cmdletContext.ClusterConfig_InstanceType; } if (requestJobResources_jobResources_ClusterConfig_clusterConfig_InstanceType != null) { requestJobResources_jobResources_ClusterConfig.InstanceType = requestJobResources_jobResources_ClusterConfig_clusterConfig_InstanceType; requestJobResources_jobResources_ClusterConfigIsNull = false; } System.String requestJobResources_jobResources_ClusterConfig_clusterConfig_VolumeKmsKeyId = null; if (cmdletContext.ClusterConfig_VolumeKmsKeyId != null) { requestJobResources_jobResources_ClusterConfig_clusterConfig_VolumeKmsKeyId = cmdletContext.ClusterConfig_VolumeKmsKeyId; } if (requestJobResources_jobResources_ClusterConfig_clusterConfig_VolumeKmsKeyId != null) { requestJobResources_jobResources_ClusterConfig.VolumeKmsKeyId = requestJobResources_jobResources_ClusterConfig_clusterConfig_VolumeKmsKeyId; requestJobResources_jobResources_ClusterConfigIsNull = false; } System.Int32? requestJobResources_jobResources_ClusterConfig_clusterConfig_VolumeSizeInGB = null; if (cmdletContext.ClusterConfig_VolumeSizeInGB != null) { requestJobResources_jobResources_ClusterConfig_clusterConfig_VolumeSizeInGB = cmdletContext.ClusterConfig_VolumeSizeInGB.Value; } if (requestJobResources_jobResources_ClusterConfig_clusterConfig_VolumeSizeInGB != null) { requestJobResources_jobResources_ClusterConfig.VolumeSizeInGB = requestJobResources_jobResources_ClusterConfig_clusterConfig_VolumeSizeInGB.Value; requestJobResources_jobResources_ClusterConfigIsNull = false; } // determine if requestJobResources_jobResources_ClusterConfig should be set to null if (requestJobResources_jobResources_ClusterConfigIsNull) { requestJobResources_jobResources_ClusterConfig = null; } if (requestJobResources_jobResources_ClusterConfig != null) { request.JobResources.ClusterConfig = requestJobResources_jobResources_ClusterConfig; requestJobResourcesIsNull = false; } // determine if request.JobResources should be set to null if (requestJobResourcesIsNull) { request.JobResources = null; } // populate ModelBiasAppSpecification var requestModelBiasAppSpecificationIsNull = true; request.ModelBiasAppSpecification = new Amazon.SageMaker.Model.ModelBiasAppSpecification(); System.String requestModelBiasAppSpecification_modelBiasAppSpecification_ConfigUri = null; if (cmdletContext.ModelBiasAppSpecification_ConfigUri != null) { requestModelBiasAppSpecification_modelBiasAppSpecification_ConfigUri = cmdletContext.ModelBiasAppSpecification_ConfigUri; } if (requestModelBiasAppSpecification_modelBiasAppSpecification_ConfigUri != null) { request.ModelBiasAppSpecification.ConfigUri = requestModelBiasAppSpecification_modelBiasAppSpecification_ConfigUri; requestModelBiasAppSpecificationIsNull = false; } Dictionary requestModelBiasAppSpecification_modelBiasAppSpecification_Environment = null; if (cmdletContext.ModelBiasAppSpecification_Environment != null) { requestModelBiasAppSpecification_modelBiasAppSpecification_Environment = cmdletContext.ModelBiasAppSpecification_Environment; } if (requestModelBiasAppSpecification_modelBiasAppSpecification_Environment != null) { request.ModelBiasAppSpecification.Environment = requestModelBiasAppSpecification_modelBiasAppSpecification_Environment; requestModelBiasAppSpecificationIsNull = false; } System.String requestModelBiasAppSpecification_modelBiasAppSpecification_ImageUri = null; if (cmdletContext.ModelBiasAppSpecification_ImageUri != null) { requestModelBiasAppSpecification_modelBiasAppSpecification_ImageUri = cmdletContext.ModelBiasAppSpecification_ImageUri; } if (requestModelBiasAppSpecification_modelBiasAppSpecification_ImageUri != null) { request.ModelBiasAppSpecification.ImageUri = requestModelBiasAppSpecification_modelBiasAppSpecification_ImageUri; requestModelBiasAppSpecificationIsNull = false; } // determine if request.ModelBiasAppSpecification should be set to null if (requestModelBiasAppSpecificationIsNull) { request.ModelBiasAppSpecification = null; } // populate ModelBiasBaselineConfig var requestModelBiasBaselineConfigIsNull = true; request.ModelBiasBaselineConfig = new Amazon.SageMaker.Model.ModelBiasBaselineConfig(); System.String requestModelBiasBaselineConfig_modelBiasBaselineConfig_BaseliningJobName = null; if (cmdletContext.ModelBiasBaselineConfig_BaseliningJobName != null) { requestModelBiasBaselineConfig_modelBiasBaselineConfig_BaseliningJobName = cmdletContext.ModelBiasBaselineConfig_BaseliningJobName; } if (requestModelBiasBaselineConfig_modelBiasBaselineConfig_BaseliningJobName != null) { request.ModelBiasBaselineConfig.BaseliningJobName = requestModelBiasBaselineConfig_modelBiasBaselineConfig_BaseliningJobName; requestModelBiasBaselineConfigIsNull = false; } Amazon.SageMaker.Model.MonitoringConstraintsResource requestModelBiasBaselineConfig_modelBiasBaselineConfig_ConstraintsResource = null; // populate ConstraintsResource var requestModelBiasBaselineConfig_modelBiasBaselineConfig_ConstraintsResourceIsNull = true; requestModelBiasBaselineConfig_modelBiasBaselineConfig_ConstraintsResource = new Amazon.SageMaker.Model.MonitoringConstraintsResource(); System.String requestModelBiasBaselineConfig_modelBiasBaselineConfig_ConstraintsResource_constraintsResource_S3Uri = null; if (cmdletContext.ConstraintsResource_S3Uri != null) { requestModelBiasBaselineConfig_modelBiasBaselineConfig_ConstraintsResource_constraintsResource_S3Uri = cmdletContext.ConstraintsResource_S3Uri; } if (requestModelBiasBaselineConfig_modelBiasBaselineConfig_ConstraintsResource_constraintsResource_S3Uri != null) { requestModelBiasBaselineConfig_modelBiasBaselineConfig_ConstraintsResource.S3Uri = requestModelBiasBaselineConfig_modelBiasBaselineConfig_ConstraintsResource_constraintsResource_S3Uri; requestModelBiasBaselineConfig_modelBiasBaselineConfig_ConstraintsResourceIsNull = false; } // determine if requestModelBiasBaselineConfig_modelBiasBaselineConfig_ConstraintsResource should be set to null if (requestModelBiasBaselineConfig_modelBiasBaselineConfig_ConstraintsResourceIsNull) { requestModelBiasBaselineConfig_modelBiasBaselineConfig_ConstraintsResource = null; } if (requestModelBiasBaselineConfig_modelBiasBaselineConfig_ConstraintsResource != null) { request.ModelBiasBaselineConfig.ConstraintsResource = requestModelBiasBaselineConfig_modelBiasBaselineConfig_ConstraintsResource; requestModelBiasBaselineConfigIsNull = false; } // determine if request.ModelBiasBaselineConfig should be set to null if (requestModelBiasBaselineConfigIsNull) { request.ModelBiasBaselineConfig = null; } // populate ModelBiasJobInput var requestModelBiasJobInputIsNull = true; request.ModelBiasJobInput = new Amazon.SageMaker.Model.ModelBiasJobInput(); Amazon.SageMaker.Model.MonitoringGroundTruthS3Input requestModelBiasJobInput_modelBiasJobInput_GroundTruthS3Input = null; // populate GroundTruthS3Input var requestModelBiasJobInput_modelBiasJobInput_GroundTruthS3InputIsNull = true; requestModelBiasJobInput_modelBiasJobInput_GroundTruthS3Input = new Amazon.SageMaker.Model.MonitoringGroundTruthS3Input(); System.String requestModelBiasJobInput_modelBiasJobInput_GroundTruthS3Input_groundTruthS3Input_S3Uri = null; if (cmdletContext.GroundTruthS3Input_S3Uri != null) { requestModelBiasJobInput_modelBiasJobInput_GroundTruthS3Input_groundTruthS3Input_S3Uri = cmdletContext.GroundTruthS3Input_S3Uri; } if (requestModelBiasJobInput_modelBiasJobInput_GroundTruthS3Input_groundTruthS3Input_S3Uri != null) { requestModelBiasJobInput_modelBiasJobInput_GroundTruthS3Input.S3Uri = requestModelBiasJobInput_modelBiasJobInput_GroundTruthS3Input_groundTruthS3Input_S3Uri; requestModelBiasJobInput_modelBiasJobInput_GroundTruthS3InputIsNull = false; } // determine if requestModelBiasJobInput_modelBiasJobInput_GroundTruthS3Input should be set to null if (requestModelBiasJobInput_modelBiasJobInput_GroundTruthS3InputIsNull) { requestModelBiasJobInput_modelBiasJobInput_GroundTruthS3Input = null; } if (requestModelBiasJobInput_modelBiasJobInput_GroundTruthS3Input != null) { request.ModelBiasJobInput.GroundTruthS3Input = requestModelBiasJobInput_modelBiasJobInput_GroundTruthS3Input; requestModelBiasJobInputIsNull = false; } Amazon.SageMaker.Model.EndpointInput requestModelBiasJobInput_modelBiasJobInput_EndpointInput = null; // populate EndpointInput var requestModelBiasJobInput_modelBiasJobInput_EndpointInputIsNull = true; requestModelBiasJobInput_modelBiasJobInput_EndpointInput = new Amazon.SageMaker.Model.EndpointInput(); System.String requestModelBiasJobInput_modelBiasJobInput_EndpointInput_endpointInput_EndpointName = null; if (cmdletContext.EndpointInput_EndpointName != null) { requestModelBiasJobInput_modelBiasJobInput_EndpointInput_endpointInput_EndpointName = cmdletContext.EndpointInput_EndpointName; } if (requestModelBiasJobInput_modelBiasJobInput_EndpointInput_endpointInput_EndpointName != null) { requestModelBiasJobInput_modelBiasJobInput_EndpointInput.EndpointName = requestModelBiasJobInput_modelBiasJobInput_EndpointInput_endpointInput_EndpointName; requestModelBiasJobInput_modelBiasJobInput_EndpointInputIsNull = false; } System.String requestModelBiasJobInput_modelBiasJobInput_EndpointInput_endpointInput_EndTimeOffset = null; if (cmdletContext.EndpointInput_EndTimeOffset != null) { requestModelBiasJobInput_modelBiasJobInput_EndpointInput_endpointInput_EndTimeOffset = cmdletContext.EndpointInput_EndTimeOffset; } if (requestModelBiasJobInput_modelBiasJobInput_EndpointInput_endpointInput_EndTimeOffset != null) { requestModelBiasJobInput_modelBiasJobInput_EndpointInput.EndTimeOffset = requestModelBiasJobInput_modelBiasJobInput_EndpointInput_endpointInput_EndTimeOffset; requestModelBiasJobInput_modelBiasJobInput_EndpointInputIsNull = false; } System.String requestModelBiasJobInput_modelBiasJobInput_EndpointInput_endpointInput_FeaturesAttribute = null; if (cmdletContext.EndpointInput_FeaturesAttribute != null) { requestModelBiasJobInput_modelBiasJobInput_EndpointInput_endpointInput_FeaturesAttribute = cmdletContext.EndpointInput_FeaturesAttribute; } if (requestModelBiasJobInput_modelBiasJobInput_EndpointInput_endpointInput_FeaturesAttribute != null) { requestModelBiasJobInput_modelBiasJobInput_EndpointInput.FeaturesAttribute = requestModelBiasJobInput_modelBiasJobInput_EndpointInput_endpointInput_FeaturesAttribute; requestModelBiasJobInput_modelBiasJobInput_EndpointInputIsNull = false; } System.String requestModelBiasJobInput_modelBiasJobInput_EndpointInput_endpointInput_InferenceAttribute = null; if (cmdletContext.EndpointInput_InferenceAttribute != null) { requestModelBiasJobInput_modelBiasJobInput_EndpointInput_endpointInput_InferenceAttribute = cmdletContext.EndpointInput_InferenceAttribute; } if (requestModelBiasJobInput_modelBiasJobInput_EndpointInput_endpointInput_InferenceAttribute != null) { requestModelBiasJobInput_modelBiasJobInput_EndpointInput.InferenceAttribute = requestModelBiasJobInput_modelBiasJobInput_EndpointInput_endpointInput_InferenceAttribute; requestModelBiasJobInput_modelBiasJobInput_EndpointInputIsNull = false; } System.String requestModelBiasJobInput_modelBiasJobInput_EndpointInput_endpointInput_LocalPath = null; if (cmdletContext.EndpointInput_LocalPath != null) { requestModelBiasJobInput_modelBiasJobInput_EndpointInput_endpointInput_LocalPath = cmdletContext.EndpointInput_LocalPath; } if (requestModelBiasJobInput_modelBiasJobInput_EndpointInput_endpointInput_LocalPath != null) { requestModelBiasJobInput_modelBiasJobInput_EndpointInput.LocalPath = requestModelBiasJobInput_modelBiasJobInput_EndpointInput_endpointInput_LocalPath; requestModelBiasJobInput_modelBiasJobInput_EndpointInputIsNull = false; } System.String requestModelBiasJobInput_modelBiasJobInput_EndpointInput_endpointInput_ProbabilityAttribute = null; if (cmdletContext.EndpointInput_ProbabilityAttribute != null) { requestModelBiasJobInput_modelBiasJobInput_EndpointInput_endpointInput_ProbabilityAttribute = cmdletContext.EndpointInput_ProbabilityAttribute; } if (requestModelBiasJobInput_modelBiasJobInput_EndpointInput_endpointInput_ProbabilityAttribute != null) { requestModelBiasJobInput_modelBiasJobInput_EndpointInput.ProbabilityAttribute = requestModelBiasJobInput_modelBiasJobInput_EndpointInput_endpointInput_ProbabilityAttribute; requestModelBiasJobInput_modelBiasJobInput_EndpointInputIsNull = false; } System.Double? requestModelBiasJobInput_modelBiasJobInput_EndpointInput_endpointInput_ProbabilityThresholdAttribute = null; if (cmdletContext.EndpointInput_ProbabilityThresholdAttribute != null) { requestModelBiasJobInput_modelBiasJobInput_EndpointInput_endpointInput_ProbabilityThresholdAttribute = cmdletContext.EndpointInput_ProbabilityThresholdAttribute.Value; } if (requestModelBiasJobInput_modelBiasJobInput_EndpointInput_endpointInput_ProbabilityThresholdAttribute != null) { requestModelBiasJobInput_modelBiasJobInput_EndpointInput.ProbabilityThresholdAttribute = requestModelBiasJobInput_modelBiasJobInput_EndpointInput_endpointInput_ProbabilityThresholdAttribute.Value; requestModelBiasJobInput_modelBiasJobInput_EndpointInputIsNull = false; } Amazon.SageMaker.ProcessingS3DataDistributionType requestModelBiasJobInput_modelBiasJobInput_EndpointInput_endpointInput_S3DataDistributionType = null; if (cmdletContext.EndpointInput_S3DataDistributionType != null) { requestModelBiasJobInput_modelBiasJobInput_EndpointInput_endpointInput_S3DataDistributionType = cmdletContext.EndpointInput_S3DataDistributionType; } if (requestModelBiasJobInput_modelBiasJobInput_EndpointInput_endpointInput_S3DataDistributionType != null) { requestModelBiasJobInput_modelBiasJobInput_EndpointInput.S3DataDistributionType = requestModelBiasJobInput_modelBiasJobInput_EndpointInput_endpointInput_S3DataDistributionType; requestModelBiasJobInput_modelBiasJobInput_EndpointInputIsNull = false; } Amazon.SageMaker.ProcessingS3InputMode requestModelBiasJobInput_modelBiasJobInput_EndpointInput_endpointInput_S3InputMode = null; if (cmdletContext.EndpointInput_S3InputMode != null) { requestModelBiasJobInput_modelBiasJobInput_EndpointInput_endpointInput_S3InputMode = cmdletContext.EndpointInput_S3InputMode; } if (requestModelBiasJobInput_modelBiasJobInput_EndpointInput_endpointInput_S3InputMode != null) { requestModelBiasJobInput_modelBiasJobInput_EndpointInput.S3InputMode = requestModelBiasJobInput_modelBiasJobInput_EndpointInput_endpointInput_S3InputMode; requestModelBiasJobInput_modelBiasJobInput_EndpointInputIsNull = false; } System.String requestModelBiasJobInput_modelBiasJobInput_EndpointInput_endpointInput_StartTimeOffset = null; if (cmdletContext.EndpointInput_StartTimeOffset != null) { requestModelBiasJobInput_modelBiasJobInput_EndpointInput_endpointInput_StartTimeOffset = cmdletContext.EndpointInput_StartTimeOffset; } if (requestModelBiasJobInput_modelBiasJobInput_EndpointInput_endpointInput_StartTimeOffset != null) { requestModelBiasJobInput_modelBiasJobInput_EndpointInput.StartTimeOffset = requestModelBiasJobInput_modelBiasJobInput_EndpointInput_endpointInput_StartTimeOffset; requestModelBiasJobInput_modelBiasJobInput_EndpointInputIsNull = false; } // determine if requestModelBiasJobInput_modelBiasJobInput_EndpointInput should be set to null if (requestModelBiasJobInput_modelBiasJobInput_EndpointInputIsNull) { requestModelBiasJobInput_modelBiasJobInput_EndpointInput = null; } if (requestModelBiasJobInput_modelBiasJobInput_EndpointInput != null) { request.ModelBiasJobInput.EndpointInput = requestModelBiasJobInput_modelBiasJobInput_EndpointInput; requestModelBiasJobInputIsNull = false; } Amazon.SageMaker.Model.BatchTransformInput requestModelBiasJobInput_modelBiasJobInput_BatchTransformInput = null; // populate BatchTransformInput var requestModelBiasJobInput_modelBiasJobInput_BatchTransformInputIsNull = true; requestModelBiasJobInput_modelBiasJobInput_BatchTransformInput = new Amazon.SageMaker.Model.BatchTransformInput(); System.String requestModelBiasJobInput_modelBiasJobInput_BatchTransformInput_batchTransformInput_DataCapturedDestinationS3Uri = null; if (cmdletContext.BatchTransformInput_DataCapturedDestinationS3Uri != null) { requestModelBiasJobInput_modelBiasJobInput_BatchTransformInput_batchTransformInput_DataCapturedDestinationS3Uri = cmdletContext.BatchTransformInput_DataCapturedDestinationS3Uri; } if (requestModelBiasJobInput_modelBiasJobInput_BatchTransformInput_batchTransformInput_DataCapturedDestinationS3Uri != null) { requestModelBiasJobInput_modelBiasJobInput_BatchTransformInput.DataCapturedDestinationS3Uri = requestModelBiasJobInput_modelBiasJobInput_BatchTransformInput_batchTransformInput_DataCapturedDestinationS3Uri; requestModelBiasJobInput_modelBiasJobInput_BatchTransformInputIsNull = false; } System.String requestModelBiasJobInput_modelBiasJobInput_BatchTransformInput_batchTransformInput_EndTimeOffset = null; if (cmdletContext.BatchTransformInput_EndTimeOffset != null) { requestModelBiasJobInput_modelBiasJobInput_BatchTransformInput_batchTransformInput_EndTimeOffset = cmdletContext.BatchTransformInput_EndTimeOffset; } if (requestModelBiasJobInput_modelBiasJobInput_BatchTransformInput_batchTransformInput_EndTimeOffset != null) { requestModelBiasJobInput_modelBiasJobInput_BatchTransformInput.EndTimeOffset = requestModelBiasJobInput_modelBiasJobInput_BatchTransformInput_batchTransformInput_EndTimeOffset; requestModelBiasJobInput_modelBiasJobInput_BatchTransformInputIsNull = false; } System.String requestModelBiasJobInput_modelBiasJobInput_BatchTransformInput_batchTransformInput_FeaturesAttribute = null; if (cmdletContext.BatchTransformInput_FeaturesAttribute != null) { requestModelBiasJobInput_modelBiasJobInput_BatchTransformInput_batchTransformInput_FeaturesAttribute = cmdletContext.BatchTransformInput_FeaturesAttribute; } if (requestModelBiasJobInput_modelBiasJobInput_BatchTransformInput_batchTransformInput_FeaturesAttribute != null) { requestModelBiasJobInput_modelBiasJobInput_BatchTransformInput.FeaturesAttribute = requestModelBiasJobInput_modelBiasJobInput_BatchTransformInput_batchTransformInput_FeaturesAttribute; requestModelBiasJobInput_modelBiasJobInput_BatchTransformInputIsNull = false; } System.String requestModelBiasJobInput_modelBiasJobInput_BatchTransformInput_batchTransformInput_InferenceAttribute = null; if (cmdletContext.BatchTransformInput_InferenceAttribute != null) { requestModelBiasJobInput_modelBiasJobInput_BatchTransformInput_batchTransformInput_InferenceAttribute = cmdletContext.BatchTransformInput_InferenceAttribute; } if (requestModelBiasJobInput_modelBiasJobInput_BatchTransformInput_batchTransformInput_InferenceAttribute != null) { requestModelBiasJobInput_modelBiasJobInput_BatchTransformInput.InferenceAttribute = requestModelBiasJobInput_modelBiasJobInput_BatchTransformInput_batchTransformInput_InferenceAttribute; requestModelBiasJobInput_modelBiasJobInput_BatchTransformInputIsNull = false; } System.String requestModelBiasJobInput_modelBiasJobInput_BatchTransformInput_batchTransformInput_LocalPath = null; if (cmdletContext.BatchTransformInput_LocalPath != null) { requestModelBiasJobInput_modelBiasJobInput_BatchTransformInput_batchTransformInput_LocalPath = cmdletContext.BatchTransformInput_LocalPath; } if (requestModelBiasJobInput_modelBiasJobInput_BatchTransformInput_batchTransformInput_LocalPath != null) { requestModelBiasJobInput_modelBiasJobInput_BatchTransformInput.LocalPath = requestModelBiasJobInput_modelBiasJobInput_BatchTransformInput_batchTransformInput_LocalPath; requestModelBiasJobInput_modelBiasJobInput_BatchTransformInputIsNull = false; } System.String requestModelBiasJobInput_modelBiasJobInput_BatchTransformInput_batchTransformInput_ProbabilityAttribute = null; if (cmdletContext.BatchTransformInput_ProbabilityAttribute != null) { requestModelBiasJobInput_modelBiasJobInput_BatchTransformInput_batchTransformInput_ProbabilityAttribute = cmdletContext.BatchTransformInput_ProbabilityAttribute; } if (requestModelBiasJobInput_modelBiasJobInput_BatchTransformInput_batchTransformInput_ProbabilityAttribute != null) { requestModelBiasJobInput_modelBiasJobInput_BatchTransformInput.ProbabilityAttribute = requestModelBiasJobInput_modelBiasJobInput_BatchTransformInput_batchTransformInput_ProbabilityAttribute; requestModelBiasJobInput_modelBiasJobInput_BatchTransformInputIsNull = false; } System.Double? requestModelBiasJobInput_modelBiasJobInput_BatchTransformInput_batchTransformInput_ProbabilityThresholdAttribute = null; if (cmdletContext.BatchTransformInput_ProbabilityThresholdAttribute != null) { requestModelBiasJobInput_modelBiasJobInput_BatchTransformInput_batchTransformInput_ProbabilityThresholdAttribute = cmdletContext.BatchTransformInput_ProbabilityThresholdAttribute.Value; } if (requestModelBiasJobInput_modelBiasJobInput_BatchTransformInput_batchTransformInput_ProbabilityThresholdAttribute != null) { requestModelBiasJobInput_modelBiasJobInput_BatchTransformInput.ProbabilityThresholdAttribute = requestModelBiasJobInput_modelBiasJobInput_BatchTransformInput_batchTransformInput_ProbabilityThresholdAttribute.Value; requestModelBiasJobInput_modelBiasJobInput_BatchTransformInputIsNull = false; } Amazon.SageMaker.ProcessingS3DataDistributionType requestModelBiasJobInput_modelBiasJobInput_BatchTransformInput_batchTransformInput_S3DataDistributionType = null; if (cmdletContext.BatchTransformInput_S3DataDistributionType != null) { requestModelBiasJobInput_modelBiasJobInput_BatchTransformInput_batchTransformInput_S3DataDistributionType = cmdletContext.BatchTransformInput_S3DataDistributionType; } if (requestModelBiasJobInput_modelBiasJobInput_BatchTransformInput_batchTransformInput_S3DataDistributionType != null) { requestModelBiasJobInput_modelBiasJobInput_BatchTransformInput.S3DataDistributionType = requestModelBiasJobInput_modelBiasJobInput_BatchTransformInput_batchTransformInput_S3DataDistributionType; requestModelBiasJobInput_modelBiasJobInput_BatchTransformInputIsNull = false; } Amazon.SageMaker.ProcessingS3InputMode requestModelBiasJobInput_modelBiasJobInput_BatchTransformInput_batchTransformInput_S3InputMode = null; if (cmdletContext.BatchTransformInput_S3InputMode != null) { requestModelBiasJobInput_modelBiasJobInput_BatchTransformInput_batchTransformInput_S3InputMode = cmdletContext.BatchTransformInput_S3InputMode; } if (requestModelBiasJobInput_modelBiasJobInput_BatchTransformInput_batchTransformInput_S3InputMode != null) { requestModelBiasJobInput_modelBiasJobInput_BatchTransformInput.S3InputMode = requestModelBiasJobInput_modelBiasJobInput_BatchTransformInput_batchTransformInput_S3InputMode; requestModelBiasJobInput_modelBiasJobInput_BatchTransformInputIsNull = false; } System.String requestModelBiasJobInput_modelBiasJobInput_BatchTransformInput_batchTransformInput_StartTimeOffset = null; if (cmdletContext.BatchTransformInput_StartTimeOffset != null) { requestModelBiasJobInput_modelBiasJobInput_BatchTransformInput_batchTransformInput_StartTimeOffset = cmdletContext.BatchTransformInput_StartTimeOffset; } if (requestModelBiasJobInput_modelBiasJobInput_BatchTransformInput_batchTransformInput_StartTimeOffset != null) { requestModelBiasJobInput_modelBiasJobInput_BatchTransformInput.StartTimeOffset = requestModelBiasJobInput_modelBiasJobInput_BatchTransformInput_batchTransformInput_StartTimeOffset; requestModelBiasJobInput_modelBiasJobInput_BatchTransformInputIsNull = false; } Amazon.SageMaker.Model.MonitoringDatasetFormat requestModelBiasJobInput_modelBiasJobInput_BatchTransformInput_modelBiasJobInput_BatchTransformInput_DatasetFormat = null; // populate DatasetFormat var requestModelBiasJobInput_modelBiasJobInput_BatchTransformInput_modelBiasJobInput_BatchTransformInput_DatasetFormatIsNull = true; requestModelBiasJobInput_modelBiasJobInput_BatchTransformInput_modelBiasJobInput_BatchTransformInput_DatasetFormat = new Amazon.SageMaker.Model.MonitoringDatasetFormat(); Amazon.SageMaker.Model.MonitoringParquetDatasetFormat requestModelBiasJobInput_modelBiasJobInput_BatchTransformInput_modelBiasJobInput_BatchTransformInput_DatasetFormat_datasetFormat_Parquet = null; if (cmdletContext.DatasetFormat_Parquet != null) { requestModelBiasJobInput_modelBiasJobInput_BatchTransformInput_modelBiasJobInput_BatchTransformInput_DatasetFormat_datasetFormat_Parquet = cmdletContext.DatasetFormat_Parquet; } if (requestModelBiasJobInput_modelBiasJobInput_BatchTransformInput_modelBiasJobInput_BatchTransformInput_DatasetFormat_datasetFormat_Parquet != null) { requestModelBiasJobInput_modelBiasJobInput_BatchTransformInput_modelBiasJobInput_BatchTransformInput_DatasetFormat.Parquet = requestModelBiasJobInput_modelBiasJobInput_BatchTransformInput_modelBiasJobInput_BatchTransformInput_DatasetFormat_datasetFormat_Parquet; requestModelBiasJobInput_modelBiasJobInput_BatchTransformInput_modelBiasJobInput_BatchTransformInput_DatasetFormatIsNull = false; } Amazon.SageMaker.Model.MonitoringCsvDatasetFormat requestModelBiasJobInput_modelBiasJobInput_BatchTransformInput_modelBiasJobInput_BatchTransformInput_DatasetFormat_modelBiasJobInput_BatchTransformInput_DatasetFormat_Csv = null; // populate Csv var requestModelBiasJobInput_modelBiasJobInput_BatchTransformInput_modelBiasJobInput_BatchTransformInput_DatasetFormat_modelBiasJobInput_BatchTransformInput_DatasetFormat_CsvIsNull = true; requestModelBiasJobInput_modelBiasJobInput_BatchTransformInput_modelBiasJobInput_BatchTransformInput_DatasetFormat_modelBiasJobInput_BatchTransformInput_DatasetFormat_Csv = new Amazon.SageMaker.Model.MonitoringCsvDatasetFormat(); System.Boolean? requestModelBiasJobInput_modelBiasJobInput_BatchTransformInput_modelBiasJobInput_BatchTransformInput_DatasetFormat_modelBiasJobInput_BatchTransformInput_DatasetFormat_Csv_csv_Header = null; if (cmdletContext.Csv_Header != null) { requestModelBiasJobInput_modelBiasJobInput_BatchTransformInput_modelBiasJobInput_BatchTransformInput_DatasetFormat_modelBiasJobInput_BatchTransformInput_DatasetFormat_Csv_csv_Header = cmdletContext.Csv_Header.Value; } if (requestModelBiasJobInput_modelBiasJobInput_BatchTransformInput_modelBiasJobInput_BatchTransformInput_DatasetFormat_modelBiasJobInput_BatchTransformInput_DatasetFormat_Csv_csv_Header != null) { requestModelBiasJobInput_modelBiasJobInput_BatchTransformInput_modelBiasJobInput_BatchTransformInput_DatasetFormat_modelBiasJobInput_BatchTransformInput_DatasetFormat_Csv.Header = requestModelBiasJobInput_modelBiasJobInput_BatchTransformInput_modelBiasJobInput_BatchTransformInput_DatasetFormat_modelBiasJobInput_BatchTransformInput_DatasetFormat_Csv_csv_Header.Value; requestModelBiasJobInput_modelBiasJobInput_BatchTransformInput_modelBiasJobInput_BatchTransformInput_DatasetFormat_modelBiasJobInput_BatchTransformInput_DatasetFormat_CsvIsNull = false; } // determine if requestModelBiasJobInput_modelBiasJobInput_BatchTransformInput_modelBiasJobInput_BatchTransformInput_DatasetFormat_modelBiasJobInput_BatchTransformInput_DatasetFormat_Csv should be set to null if (requestModelBiasJobInput_modelBiasJobInput_BatchTransformInput_modelBiasJobInput_BatchTransformInput_DatasetFormat_modelBiasJobInput_BatchTransformInput_DatasetFormat_CsvIsNull) { requestModelBiasJobInput_modelBiasJobInput_BatchTransformInput_modelBiasJobInput_BatchTransformInput_DatasetFormat_modelBiasJobInput_BatchTransformInput_DatasetFormat_Csv = null; } if (requestModelBiasJobInput_modelBiasJobInput_BatchTransformInput_modelBiasJobInput_BatchTransformInput_DatasetFormat_modelBiasJobInput_BatchTransformInput_DatasetFormat_Csv != null) { requestModelBiasJobInput_modelBiasJobInput_BatchTransformInput_modelBiasJobInput_BatchTransformInput_DatasetFormat.Csv = requestModelBiasJobInput_modelBiasJobInput_BatchTransformInput_modelBiasJobInput_BatchTransformInput_DatasetFormat_modelBiasJobInput_BatchTransformInput_DatasetFormat_Csv; requestModelBiasJobInput_modelBiasJobInput_BatchTransformInput_modelBiasJobInput_BatchTransformInput_DatasetFormatIsNull = false; } Amazon.SageMaker.Model.MonitoringJsonDatasetFormat requestModelBiasJobInput_modelBiasJobInput_BatchTransformInput_modelBiasJobInput_BatchTransformInput_DatasetFormat_modelBiasJobInput_BatchTransformInput_DatasetFormat_Json = null; // populate Json var requestModelBiasJobInput_modelBiasJobInput_BatchTransformInput_modelBiasJobInput_BatchTransformInput_DatasetFormat_modelBiasJobInput_BatchTransformInput_DatasetFormat_JsonIsNull = true; requestModelBiasJobInput_modelBiasJobInput_BatchTransformInput_modelBiasJobInput_BatchTransformInput_DatasetFormat_modelBiasJobInput_BatchTransformInput_DatasetFormat_Json = new Amazon.SageMaker.Model.MonitoringJsonDatasetFormat(); System.Boolean? requestModelBiasJobInput_modelBiasJobInput_BatchTransformInput_modelBiasJobInput_BatchTransformInput_DatasetFormat_modelBiasJobInput_BatchTransformInput_DatasetFormat_Json_json_Line = null; if (cmdletContext.Json_Line != null) { requestModelBiasJobInput_modelBiasJobInput_BatchTransformInput_modelBiasJobInput_BatchTransformInput_DatasetFormat_modelBiasJobInput_BatchTransformInput_DatasetFormat_Json_json_Line = cmdletContext.Json_Line.Value; } if (requestModelBiasJobInput_modelBiasJobInput_BatchTransformInput_modelBiasJobInput_BatchTransformInput_DatasetFormat_modelBiasJobInput_BatchTransformInput_DatasetFormat_Json_json_Line != null) { requestModelBiasJobInput_modelBiasJobInput_BatchTransformInput_modelBiasJobInput_BatchTransformInput_DatasetFormat_modelBiasJobInput_BatchTransformInput_DatasetFormat_Json.Line = requestModelBiasJobInput_modelBiasJobInput_BatchTransformInput_modelBiasJobInput_BatchTransformInput_DatasetFormat_modelBiasJobInput_BatchTransformInput_DatasetFormat_Json_json_Line.Value; requestModelBiasJobInput_modelBiasJobInput_BatchTransformInput_modelBiasJobInput_BatchTransformInput_DatasetFormat_modelBiasJobInput_BatchTransformInput_DatasetFormat_JsonIsNull = false; } // determine if requestModelBiasJobInput_modelBiasJobInput_BatchTransformInput_modelBiasJobInput_BatchTransformInput_DatasetFormat_modelBiasJobInput_BatchTransformInput_DatasetFormat_Json should be set to null if (requestModelBiasJobInput_modelBiasJobInput_BatchTransformInput_modelBiasJobInput_BatchTransformInput_DatasetFormat_modelBiasJobInput_BatchTransformInput_DatasetFormat_JsonIsNull) { requestModelBiasJobInput_modelBiasJobInput_BatchTransformInput_modelBiasJobInput_BatchTransformInput_DatasetFormat_modelBiasJobInput_BatchTransformInput_DatasetFormat_Json = null; } if (requestModelBiasJobInput_modelBiasJobInput_BatchTransformInput_modelBiasJobInput_BatchTransformInput_DatasetFormat_modelBiasJobInput_BatchTransformInput_DatasetFormat_Json != null) { requestModelBiasJobInput_modelBiasJobInput_BatchTransformInput_modelBiasJobInput_BatchTransformInput_DatasetFormat.Json = requestModelBiasJobInput_modelBiasJobInput_BatchTransformInput_modelBiasJobInput_BatchTransformInput_DatasetFormat_modelBiasJobInput_BatchTransformInput_DatasetFormat_Json; requestModelBiasJobInput_modelBiasJobInput_BatchTransformInput_modelBiasJobInput_BatchTransformInput_DatasetFormatIsNull = false; } // determine if requestModelBiasJobInput_modelBiasJobInput_BatchTransformInput_modelBiasJobInput_BatchTransformInput_DatasetFormat should be set to null if (requestModelBiasJobInput_modelBiasJobInput_BatchTransformInput_modelBiasJobInput_BatchTransformInput_DatasetFormatIsNull) { requestModelBiasJobInput_modelBiasJobInput_BatchTransformInput_modelBiasJobInput_BatchTransformInput_DatasetFormat = null; } if (requestModelBiasJobInput_modelBiasJobInput_BatchTransformInput_modelBiasJobInput_BatchTransformInput_DatasetFormat != null) { requestModelBiasJobInput_modelBiasJobInput_BatchTransformInput.DatasetFormat = requestModelBiasJobInput_modelBiasJobInput_BatchTransformInput_modelBiasJobInput_BatchTransformInput_DatasetFormat; requestModelBiasJobInput_modelBiasJobInput_BatchTransformInputIsNull = false; } // determine if requestModelBiasJobInput_modelBiasJobInput_BatchTransformInput should be set to null if (requestModelBiasJobInput_modelBiasJobInput_BatchTransformInputIsNull) { requestModelBiasJobInput_modelBiasJobInput_BatchTransformInput = null; } if (requestModelBiasJobInput_modelBiasJobInput_BatchTransformInput != null) { request.ModelBiasJobInput.BatchTransformInput = requestModelBiasJobInput_modelBiasJobInput_BatchTransformInput; requestModelBiasJobInputIsNull = false; } // determine if request.ModelBiasJobInput should be set to null if (requestModelBiasJobInputIsNull) { request.ModelBiasJobInput = null; } // populate ModelBiasJobOutputConfig var requestModelBiasJobOutputConfigIsNull = true; request.ModelBiasJobOutputConfig = new Amazon.SageMaker.Model.MonitoringOutputConfig(); System.String requestModelBiasJobOutputConfig_modelBiasJobOutputConfig_KmsKeyId = null; if (cmdletContext.ModelBiasJobOutputConfig_KmsKeyId != null) { requestModelBiasJobOutputConfig_modelBiasJobOutputConfig_KmsKeyId = cmdletContext.ModelBiasJobOutputConfig_KmsKeyId; } if (requestModelBiasJobOutputConfig_modelBiasJobOutputConfig_KmsKeyId != null) { request.ModelBiasJobOutputConfig.KmsKeyId = requestModelBiasJobOutputConfig_modelBiasJobOutputConfig_KmsKeyId; requestModelBiasJobOutputConfigIsNull = false; } List requestModelBiasJobOutputConfig_modelBiasJobOutputConfig_MonitoringOutput = null; if (cmdletContext.ModelBiasJobOutputConfig_MonitoringOutput != null) { requestModelBiasJobOutputConfig_modelBiasJobOutputConfig_MonitoringOutput = cmdletContext.ModelBiasJobOutputConfig_MonitoringOutput; } if (requestModelBiasJobOutputConfig_modelBiasJobOutputConfig_MonitoringOutput != null) { request.ModelBiasJobOutputConfig.MonitoringOutputs = requestModelBiasJobOutputConfig_modelBiasJobOutputConfig_MonitoringOutput; requestModelBiasJobOutputConfigIsNull = false; } // determine if request.ModelBiasJobOutputConfig should be set to null if (requestModelBiasJobOutputConfigIsNull) { request.ModelBiasJobOutputConfig = null; } // populate NetworkConfig var requestNetworkConfigIsNull = true; request.NetworkConfig = new Amazon.SageMaker.Model.MonitoringNetworkConfig(); System.Boolean? requestNetworkConfig_networkConfig_EnableInterContainerTrafficEncryption = null; if (cmdletContext.NetworkConfig_EnableInterContainerTrafficEncryption != null) { requestNetworkConfig_networkConfig_EnableInterContainerTrafficEncryption = cmdletContext.NetworkConfig_EnableInterContainerTrafficEncryption.Value; } if (requestNetworkConfig_networkConfig_EnableInterContainerTrafficEncryption != null) { request.NetworkConfig.EnableInterContainerTrafficEncryption = requestNetworkConfig_networkConfig_EnableInterContainerTrafficEncryption.Value; requestNetworkConfigIsNull = false; } System.Boolean? requestNetworkConfig_networkConfig_EnableNetworkIsolation = null; if (cmdletContext.NetworkConfig_EnableNetworkIsolation != null) { requestNetworkConfig_networkConfig_EnableNetworkIsolation = cmdletContext.NetworkConfig_EnableNetworkIsolation.Value; } if (requestNetworkConfig_networkConfig_EnableNetworkIsolation != null) { request.NetworkConfig.EnableNetworkIsolation = requestNetworkConfig_networkConfig_EnableNetworkIsolation.Value; requestNetworkConfigIsNull = false; } Amazon.SageMaker.Model.VpcConfig requestNetworkConfig_networkConfig_VpcConfig = null; // populate VpcConfig var requestNetworkConfig_networkConfig_VpcConfigIsNull = true; requestNetworkConfig_networkConfig_VpcConfig = new Amazon.SageMaker.Model.VpcConfig(); List requestNetworkConfig_networkConfig_VpcConfig_vpcConfig_SecurityGroupId = null; if (cmdletContext.VpcConfig_SecurityGroupId != null) { requestNetworkConfig_networkConfig_VpcConfig_vpcConfig_SecurityGroupId = cmdletContext.VpcConfig_SecurityGroupId; } if (requestNetworkConfig_networkConfig_VpcConfig_vpcConfig_SecurityGroupId != null) { requestNetworkConfig_networkConfig_VpcConfig.SecurityGroupIds = requestNetworkConfig_networkConfig_VpcConfig_vpcConfig_SecurityGroupId; requestNetworkConfig_networkConfig_VpcConfigIsNull = false; } List requestNetworkConfig_networkConfig_VpcConfig_vpcConfig_Subnet = null; if (cmdletContext.VpcConfig_Subnet != null) { requestNetworkConfig_networkConfig_VpcConfig_vpcConfig_Subnet = cmdletContext.VpcConfig_Subnet; } if (requestNetworkConfig_networkConfig_VpcConfig_vpcConfig_Subnet != null) { requestNetworkConfig_networkConfig_VpcConfig.Subnets = requestNetworkConfig_networkConfig_VpcConfig_vpcConfig_Subnet; requestNetworkConfig_networkConfig_VpcConfigIsNull = false; } // determine if requestNetworkConfig_networkConfig_VpcConfig should be set to null if (requestNetworkConfig_networkConfig_VpcConfigIsNull) { requestNetworkConfig_networkConfig_VpcConfig = null; } if (requestNetworkConfig_networkConfig_VpcConfig != null) { request.NetworkConfig.VpcConfig = requestNetworkConfig_networkConfig_VpcConfig; requestNetworkConfigIsNull = false; } // determine if request.NetworkConfig should be set to null if (requestNetworkConfigIsNull) { request.NetworkConfig = null; } if (cmdletContext.RoleArn != null) { request.RoleArn = cmdletContext.RoleArn; } // populate StoppingCondition var requestStoppingConditionIsNull = true; request.StoppingCondition = new Amazon.SageMaker.Model.MonitoringStoppingCondition(); System.Int32? requestStoppingCondition_stoppingCondition_MaxRuntimeInSecond = null; if (cmdletContext.StoppingCondition_MaxRuntimeInSecond != null) { requestStoppingCondition_stoppingCondition_MaxRuntimeInSecond = cmdletContext.StoppingCondition_MaxRuntimeInSecond.Value; } if (requestStoppingCondition_stoppingCondition_MaxRuntimeInSecond != null) { request.StoppingCondition.MaxRuntimeInSeconds = requestStoppingCondition_stoppingCondition_MaxRuntimeInSecond.Value; requestStoppingConditionIsNull = false; } // determine if request.StoppingCondition should be set to null if (requestStoppingConditionIsNull) { request.StoppingCondition = null; } if (cmdletContext.Tag != null) { request.Tags = cmdletContext.Tag; } CmdletOutput output; // issue call var client = Client ?? CreateClient(_CurrentCredentials, _RegionEndpoint); try { var response = CallAWSServiceOperation(client, request); object pipelineOutput = null; pipelineOutput = cmdletContext.Select(response, this); output = new CmdletOutput { PipelineOutput = pipelineOutput, ServiceResponse = response }; } catch (Exception e) { output = new CmdletOutput { ErrorResponse = e }; } return output; } public ExecutorContext CreateContext() { return new CmdletContext(); } #endregion #region AWS Service Operation Call private Amazon.SageMaker.Model.CreateModelBiasJobDefinitionResponse CallAWSServiceOperation(IAmazonSageMaker client, Amazon.SageMaker.Model.CreateModelBiasJobDefinitionRequest request) { Utils.Common.WriteVerboseEndpointMessage(this, client.Config, "Amazon SageMaker Service", "CreateModelBiasJobDefinition"); try { #if DESKTOP return client.CreateModelBiasJobDefinition(request); #elif CORECLR return client.CreateModelBiasJobDefinitionAsync(request).GetAwaiter().GetResult(); #else #error "Unknown build edition" #endif } catch (AmazonServiceException exc) { var webException = exc.InnerException as System.Net.WebException; if (webException != null) { throw new Exception(Utils.Common.FormatNameResolutionFailureMessage(client.Config, webException.Message), webException); } throw; } } #endregion internal partial class CmdletContext : ExecutorContext { public System.String JobDefinitionName { get; set; } public System.Int32? ClusterConfig_InstanceCount { get; set; } public Amazon.SageMaker.ProcessingInstanceType ClusterConfig_InstanceType { get; set; } public System.String ClusterConfig_VolumeKmsKeyId { get; set; } public System.Int32? ClusterConfig_VolumeSizeInGB { get; set; } public System.String ModelBiasAppSpecification_ConfigUri { get; set; } public Dictionary ModelBiasAppSpecification_Environment { get; set; } public System.String ModelBiasAppSpecification_ImageUri { get; set; } public System.String ModelBiasBaselineConfig_BaseliningJobName { get; set; } public System.String ConstraintsResource_S3Uri { get; set; } public System.String BatchTransformInput_DataCapturedDestinationS3Uri { get; set; } public System.Boolean? Csv_Header { get; set; } public System.Boolean? Json_Line { get; set; } public Amazon.SageMaker.Model.MonitoringParquetDatasetFormat DatasetFormat_Parquet { get; set; } public System.String BatchTransformInput_EndTimeOffset { get; set; } public System.String BatchTransformInput_FeaturesAttribute { get; set; } public System.String BatchTransformInput_InferenceAttribute { get; set; } public System.String BatchTransformInput_LocalPath { get; set; } public System.String BatchTransformInput_ProbabilityAttribute { get; set; } public System.Double? BatchTransformInput_ProbabilityThresholdAttribute { get; set; } public Amazon.SageMaker.ProcessingS3DataDistributionType BatchTransformInput_S3DataDistributionType { get; set; } public Amazon.SageMaker.ProcessingS3InputMode BatchTransformInput_S3InputMode { get; set; } public System.String BatchTransformInput_StartTimeOffset { get; set; } public System.String EndpointInput_EndpointName { get; set; } public System.String EndpointInput_EndTimeOffset { get; set; } public System.String EndpointInput_FeaturesAttribute { get; set; } public System.String EndpointInput_InferenceAttribute { get; set; } public System.String EndpointInput_LocalPath { get; set; } public System.String EndpointInput_ProbabilityAttribute { get; set; } public System.Double? EndpointInput_ProbabilityThresholdAttribute { get; set; } public Amazon.SageMaker.ProcessingS3DataDistributionType EndpointInput_S3DataDistributionType { get; set; } public Amazon.SageMaker.ProcessingS3InputMode EndpointInput_S3InputMode { get; set; } public System.String EndpointInput_StartTimeOffset { get; set; } public System.String GroundTruthS3Input_S3Uri { get; set; } public System.String ModelBiasJobOutputConfig_KmsKeyId { get; set; } public List ModelBiasJobOutputConfig_MonitoringOutput { get; set; } public System.Boolean? NetworkConfig_EnableInterContainerTrafficEncryption { get; set; } public System.Boolean? NetworkConfig_EnableNetworkIsolation { get; set; } public List VpcConfig_SecurityGroupId { get; set; } public List VpcConfig_Subnet { get; set; } public System.String RoleArn { get; set; } public System.Int32? StoppingCondition_MaxRuntimeInSecond { get; set; } public List Tag { get; set; } public System.Func Select { get; set; } = (response, cmdlet) => response.JobDefinitionArn; } } }