@aws-sdk/client-machine-learning 3.121.0 → 3.130.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +27 -0
- package/dist-cjs/protocols/Aws_json1_1.js +201 -312
- package/dist-es/protocols/Aws_json1_1.js +104 -215
- package/package.json +28 -28
|
@@ -2040,83 +2040,63 @@ var deserializeAws_json1_1TagLimitExceededExceptionResponse = function (parsedOu
|
|
|
2040
2040
|
});
|
|
2041
2041
|
}); };
|
|
2042
2042
|
var serializeAws_json1_1AddTagsInput = function (input, context) {
|
|
2043
|
-
return __assign(__assign(__assign({}, (input.ResourceId
|
|
2043
|
+
return __assign(__assign(__assign({}, (input.ResourceId != null && { ResourceId: input.ResourceId })), (input.ResourceType != null && { ResourceType: input.ResourceType })), (input.Tags != null && { Tags: serializeAws_json1_1TagList(input.Tags, context) }));
|
|
2044
2044
|
};
|
|
2045
2045
|
var serializeAws_json1_1CreateBatchPredictionInput = function (input, context) {
|
|
2046
|
-
return __assign(__assign(__assign(__assign(__assign({}, (input.BatchPredictionDataSourceId
|
|
2047
|
-
|
|
2048
|
-
|
|
2049
|
-
input.BatchPredictionName !== null && { BatchPredictionName: input.BatchPredictionName })), (input.MLModelId !== undefined && input.MLModelId !== null && { MLModelId: input.MLModelId })), (input.OutputUri !== undefined && input.OutputUri !== null && { OutputUri: input.OutputUri }));
|
|
2046
|
+
return __assign(__assign(__assign(__assign(__assign({}, (input.BatchPredictionDataSourceId != null && {
|
|
2047
|
+
BatchPredictionDataSourceId: input.BatchPredictionDataSourceId,
|
|
2048
|
+
})), (input.BatchPredictionId != null && { BatchPredictionId: input.BatchPredictionId })), (input.BatchPredictionName != null && { BatchPredictionName: input.BatchPredictionName })), (input.MLModelId != null && { MLModelId: input.MLModelId })), (input.OutputUri != null && { OutputUri: input.OutputUri }));
|
|
2050
2049
|
};
|
|
2051
2050
|
var serializeAws_json1_1CreateDataSourceFromRDSInput = function (input, context) {
|
|
2052
|
-
return __assign(__assign(__assign(__assign(__assign({}, (input.ComputeStatistics
|
|
2053
|
-
input.ComputeStatistics !== null && { ComputeStatistics: input.ComputeStatistics })), (input.DataSourceId !== undefined && input.DataSourceId !== null && { DataSourceId: input.DataSourceId })), (input.DataSourceName !== undefined &&
|
|
2054
|
-
input.DataSourceName !== null && { DataSourceName: input.DataSourceName })), (input.RDSData !== undefined &&
|
|
2055
|
-
input.RDSData !== null && { RDSData: serializeAws_json1_1RDSDataSpec(input.RDSData, context) })), (input.RoleARN !== undefined && input.RoleARN !== null && { RoleARN: input.RoleARN }));
|
|
2051
|
+
return __assign(__assign(__assign(__assign(__assign({}, (input.ComputeStatistics != null && { ComputeStatistics: input.ComputeStatistics })), (input.DataSourceId != null && { DataSourceId: input.DataSourceId })), (input.DataSourceName != null && { DataSourceName: input.DataSourceName })), (input.RDSData != null && { RDSData: serializeAws_json1_1RDSDataSpec(input.RDSData, context) })), (input.RoleARN != null && { RoleARN: input.RoleARN }));
|
|
2056
2052
|
};
|
|
2057
2053
|
var serializeAws_json1_1CreateDataSourceFromRedshiftInput = function (input, context) {
|
|
2058
|
-
return __assign(__assign(__assign(__assign(__assign({}, (input.ComputeStatistics
|
|
2059
|
-
input.ComputeStatistics !== null && { ComputeStatistics: input.ComputeStatistics })), (input.DataSourceId !== undefined && input.DataSourceId !== null && { DataSourceId: input.DataSourceId })), (input.DataSourceName !== undefined &&
|
|
2060
|
-
input.DataSourceName !== null && { DataSourceName: input.DataSourceName })), (input.DataSpec !== undefined &&
|
|
2061
|
-
input.DataSpec !== null && { DataSpec: serializeAws_json1_1RedshiftDataSpec(input.DataSpec, context) })), (input.RoleARN !== undefined && input.RoleARN !== null && { RoleARN: input.RoleARN }));
|
|
2054
|
+
return __assign(__assign(__assign(__assign(__assign({}, (input.ComputeStatistics != null && { ComputeStatistics: input.ComputeStatistics })), (input.DataSourceId != null && { DataSourceId: input.DataSourceId })), (input.DataSourceName != null && { DataSourceName: input.DataSourceName })), (input.DataSpec != null && { DataSpec: serializeAws_json1_1RedshiftDataSpec(input.DataSpec, context) })), (input.RoleARN != null && { RoleARN: input.RoleARN }));
|
|
2062
2055
|
};
|
|
2063
2056
|
var serializeAws_json1_1CreateDataSourceFromS3Input = function (input, context) {
|
|
2064
|
-
return __assign(__assign(__assign(__assign({}, (input.ComputeStatistics
|
|
2065
|
-
input.ComputeStatistics !== null && { ComputeStatistics: input.ComputeStatistics })), (input.DataSourceId !== undefined && input.DataSourceId !== null && { DataSourceId: input.DataSourceId })), (input.DataSourceName !== undefined &&
|
|
2066
|
-
input.DataSourceName !== null && { DataSourceName: input.DataSourceName })), (input.DataSpec !== undefined &&
|
|
2067
|
-
input.DataSpec !== null && { DataSpec: serializeAws_json1_1S3DataSpec(input.DataSpec, context) }));
|
|
2057
|
+
return __assign(__assign(__assign(__assign({}, (input.ComputeStatistics != null && { ComputeStatistics: input.ComputeStatistics })), (input.DataSourceId != null && { DataSourceId: input.DataSourceId })), (input.DataSourceName != null && { DataSourceName: input.DataSourceName })), (input.DataSpec != null && { DataSpec: serializeAws_json1_1S3DataSpec(input.DataSpec, context) }));
|
|
2068
2058
|
};
|
|
2069
2059
|
var serializeAws_json1_1CreateEvaluationInput = function (input, context) {
|
|
2070
|
-
return __assign(__assign(__assign(__assign({}, (input.EvaluationDataSourceId
|
|
2071
|
-
input.EvaluationDataSourceId !== null && { EvaluationDataSourceId: input.EvaluationDataSourceId })), (input.EvaluationId !== undefined && input.EvaluationId !== null && { EvaluationId: input.EvaluationId })), (input.EvaluationName !== undefined &&
|
|
2072
|
-
input.EvaluationName !== null && { EvaluationName: input.EvaluationName })), (input.MLModelId !== undefined && input.MLModelId !== null && { MLModelId: input.MLModelId }));
|
|
2060
|
+
return __assign(__assign(__assign(__assign({}, (input.EvaluationDataSourceId != null && { EvaluationDataSourceId: input.EvaluationDataSourceId })), (input.EvaluationId != null && { EvaluationId: input.EvaluationId })), (input.EvaluationName != null && { EvaluationName: input.EvaluationName })), (input.MLModelId != null && { MLModelId: input.MLModelId }));
|
|
2073
2061
|
};
|
|
2074
2062
|
var serializeAws_json1_1CreateMLModelInput = function (input, context) {
|
|
2075
|
-
return __assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.MLModelId
|
|
2076
|
-
input.Parameters !== null && { Parameters: serializeAws_json1_1TrainingParameters(input.Parameters, context) })), (input.Recipe !== undefined && input.Recipe !== null && { Recipe: input.Recipe })), (input.RecipeUri !== undefined && input.RecipeUri !== null && { RecipeUri: input.RecipeUri })), (input.TrainingDataSourceId !== undefined &&
|
|
2077
|
-
input.TrainingDataSourceId !== null && { TrainingDataSourceId: input.TrainingDataSourceId }));
|
|
2063
|
+
return __assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.MLModelId != null && { MLModelId: input.MLModelId })), (input.MLModelName != null && { MLModelName: input.MLModelName })), (input.MLModelType != null && { MLModelType: input.MLModelType })), (input.Parameters != null && { Parameters: serializeAws_json1_1TrainingParameters(input.Parameters, context) })), (input.Recipe != null && { Recipe: input.Recipe })), (input.RecipeUri != null && { RecipeUri: input.RecipeUri })), (input.TrainingDataSourceId != null && { TrainingDataSourceId: input.TrainingDataSourceId }));
|
|
2078
2064
|
};
|
|
2079
2065
|
var serializeAws_json1_1CreateRealtimeEndpointInput = function (input, context) {
|
|
2080
|
-
return __assign({}, (input.MLModelId
|
|
2066
|
+
return __assign({}, (input.MLModelId != null && { MLModelId: input.MLModelId }));
|
|
2081
2067
|
};
|
|
2082
2068
|
var serializeAws_json1_1DeleteBatchPredictionInput = function (input, context) {
|
|
2083
|
-
return __assign({}, (input.BatchPredictionId
|
|
2084
|
-
input.BatchPredictionId !== null && { BatchPredictionId: input.BatchPredictionId }));
|
|
2069
|
+
return __assign({}, (input.BatchPredictionId != null && { BatchPredictionId: input.BatchPredictionId }));
|
|
2085
2070
|
};
|
|
2086
2071
|
var serializeAws_json1_1DeleteDataSourceInput = function (input, context) {
|
|
2087
|
-
return __assign({}, (input.DataSourceId
|
|
2072
|
+
return __assign({}, (input.DataSourceId != null && { DataSourceId: input.DataSourceId }));
|
|
2088
2073
|
};
|
|
2089
2074
|
var serializeAws_json1_1DeleteEvaluationInput = function (input, context) {
|
|
2090
|
-
return __assign({}, (input.EvaluationId
|
|
2075
|
+
return __assign({}, (input.EvaluationId != null && { EvaluationId: input.EvaluationId }));
|
|
2091
2076
|
};
|
|
2092
2077
|
var serializeAws_json1_1DeleteMLModelInput = function (input, context) {
|
|
2093
|
-
return __assign({}, (input.MLModelId
|
|
2078
|
+
return __assign({}, (input.MLModelId != null && { MLModelId: input.MLModelId }));
|
|
2094
2079
|
};
|
|
2095
2080
|
var serializeAws_json1_1DeleteRealtimeEndpointInput = function (input, context) {
|
|
2096
|
-
return __assign({}, (input.MLModelId
|
|
2081
|
+
return __assign({}, (input.MLModelId != null && { MLModelId: input.MLModelId }));
|
|
2097
2082
|
};
|
|
2098
2083
|
var serializeAws_json1_1DeleteTagsInput = function (input, context) {
|
|
2099
|
-
return __assign(__assign(__assign({}, (input.ResourceId
|
|
2100
|
-
input.TagKeys !== null && { TagKeys: serializeAws_json1_1TagKeyList(input.TagKeys, context) }));
|
|
2084
|
+
return __assign(__assign(__assign({}, (input.ResourceId != null && { ResourceId: input.ResourceId })), (input.ResourceType != null && { ResourceType: input.ResourceType })), (input.TagKeys != null && { TagKeys: serializeAws_json1_1TagKeyList(input.TagKeys, context) }));
|
|
2101
2085
|
};
|
|
2102
2086
|
var serializeAws_json1_1DescribeBatchPredictionsInput = function (input, context) {
|
|
2103
|
-
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.EQ
|
|
2104
|
-
input.FilterVariable !== null && { FilterVariable: input.FilterVariable })), (input.GE !== undefined && input.GE !== null && { GE: input.GE })), (input.GT !== undefined && input.GT !== null && { GT: input.GT })), (input.LE !== undefined && input.LE !== null && { LE: input.LE })), (input.LT !== undefined && input.LT !== null && { LT: input.LT })), (input.Limit !== undefined && input.Limit !== null && { Limit: input.Limit })), (input.NE !== undefined && input.NE !== null && { NE: input.NE })), (input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken })), (input.Prefix !== undefined && input.Prefix !== null && { Prefix: input.Prefix })), (input.SortOrder !== undefined && input.SortOrder !== null && { SortOrder: input.SortOrder }));
|
|
2087
|
+
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.EQ != null && { EQ: input.EQ })), (input.FilterVariable != null && { FilterVariable: input.FilterVariable })), (input.GE != null && { GE: input.GE })), (input.GT != null && { GT: input.GT })), (input.LE != null && { LE: input.LE })), (input.LT != null && { LT: input.LT })), (input.Limit != null && { Limit: input.Limit })), (input.NE != null && { NE: input.NE })), (input.NextToken != null && { NextToken: input.NextToken })), (input.Prefix != null && { Prefix: input.Prefix })), (input.SortOrder != null && { SortOrder: input.SortOrder }));
|
|
2105
2088
|
};
|
|
2106
2089
|
var serializeAws_json1_1DescribeDataSourcesInput = function (input, context) {
|
|
2107
|
-
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.EQ
|
|
2108
|
-
input.FilterVariable !== null && { FilterVariable: input.FilterVariable })), (input.GE !== undefined && input.GE !== null && { GE: input.GE })), (input.GT !== undefined && input.GT !== null && { GT: input.GT })), (input.LE !== undefined && input.LE !== null && { LE: input.LE })), (input.LT !== undefined && input.LT !== null && { LT: input.LT })), (input.Limit !== undefined && input.Limit !== null && { Limit: input.Limit })), (input.NE !== undefined && input.NE !== null && { NE: input.NE })), (input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken })), (input.Prefix !== undefined && input.Prefix !== null && { Prefix: input.Prefix })), (input.SortOrder !== undefined && input.SortOrder !== null && { SortOrder: input.SortOrder }));
|
|
2090
|
+
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.EQ != null && { EQ: input.EQ })), (input.FilterVariable != null && { FilterVariable: input.FilterVariable })), (input.GE != null && { GE: input.GE })), (input.GT != null && { GT: input.GT })), (input.LE != null && { LE: input.LE })), (input.LT != null && { LT: input.LT })), (input.Limit != null && { Limit: input.Limit })), (input.NE != null && { NE: input.NE })), (input.NextToken != null && { NextToken: input.NextToken })), (input.Prefix != null && { Prefix: input.Prefix })), (input.SortOrder != null && { SortOrder: input.SortOrder }));
|
|
2109
2091
|
};
|
|
2110
2092
|
var serializeAws_json1_1DescribeEvaluationsInput = function (input, context) {
|
|
2111
|
-
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.EQ
|
|
2112
|
-
input.FilterVariable !== null && { FilterVariable: input.FilterVariable })), (input.GE !== undefined && input.GE !== null && { GE: input.GE })), (input.GT !== undefined && input.GT !== null && { GT: input.GT })), (input.LE !== undefined && input.LE !== null && { LE: input.LE })), (input.LT !== undefined && input.LT !== null && { LT: input.LT })), (input.Limit !== undefined && input.Limit !== null && { Limit: input.Limit })), (input.NE !== undefined && input.NE !== null && { NE: input.NE })), (input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken })), (input.Prefix !== undefined && input.Prefix !== null && { Prefix: input.Prefix })), (input.SortOrder !== undefined && input.SortOrder !== null && { SortOrder: input.SortOrder }));
|
|
2093
|
+
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.EQ != null && { EQ: input.EQ })), (input.FilterVariable != null && { FilterVariable: input.FilterVariable })), (input.GE != null && { GE: input.GE })), (input.GT != null && { GT: input.GT })), (input.LE != null && { LE: input.LE })), (input.LT != null && { LT: input.LT })), (input.Limit != null && { Limit: input.Limit })), (input.NE != null && { NE: input.NE })), (input.NextToken != null && { NextToken: input.NextToken })), (input.Prefix != null && { Prefix: input.Prefix })), (input.SortOrder != null && { SortOrder: input.SortOrder }));
|
|
2113
2094
|
};
|
|
2114
2095
|
var serializeAws_json1_1DescribeMLModelsInput = function (input, context) {
|
|
2115
|
-
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.EQ
|
|
2116
|
-
input.FilterVariable !== null && { FilterVariable: input.FilterVariable })), (input.GE !== undefined && input.GE !== null && { GE: input.GE })), (input.GT !== undefined && input.GT !== null && { GT: input.GT })), (input.LE !== undefined && input.LE !== null && { LE: input.LE })), (input.LT !== undefined && input.LT !== null && { LT: input.LT })), (input.Limit !== undefined && input.Limit !== null && { Limit: input.Limit })), (input.NE !== undefined && input.NE !== null && { NE: input.NE })), (input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken })), (input.Prefix !== undefined && input.Prefix !== null && { Prefix: input.Prefix })), (input.SortOrder !== undefined && input.SortOrder !== null && { SortOrder: input.SortOrder }));
|
|
2096
|
+
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.EQ != null && { EQ: input.EQ })), (input.FilterVariable != null && { FilterVariable: input.FilterVariable })), (input.GE != null && { GE: input.GE })), (input.GT != null && { GT: input.GT })), (input.LE != null && { LE: input.LE })), (input.LT != null && { LT: input.LT })), (input.Limit != null && { Limit: input.Limit })), (input.NE != null && { NE: input.NE })), (input.NextToken != null && { NextToken: input.NextToken })), (input.Prefix != null && { Prefix: input.Prefix })), (input.SortOrder != null && { SortOrder: input.SortOrder }));
|
|
2117
2097
|
};
|
|
2118
2098
|
var serializeAws_json1_1DescribeTagsInput = function (input, context) {
|
|
2119
|
-
return __assign(__assign({}, (input.ResourceId
|
|
2099
|
+
return __assign(__assign({}, (input.ResourceId != null && { ResourceId: input.ResourceId })), (input.ResourceType != null && { ResourceType: input.ResourceType }));
|
|
2120
2100
|
};
|
|
2121
2101
|
var serializeAws_json1_1EDPSecurityGroupIds = function (input, context) {
|
|
2122
2102
|
return input
|
|
@@ -2129,44 +2109,34 @@ var serializeAws_json1_1EDPSecurityGroupIds = function (input, context) {
|
|
|
2129
2109
|
});
|
|
2130
2110
|
};
|
|
2131
2111
|
var serializeAws_json1_1GetBatchPredictionInput = function (input, context) {
|
|
2132
|
-
return __assign({}, (input.BatchPredictionId
|
|
2133
|
-
input.BatchPredictionId !== null && { BatchPredictionId: input.BatchPredictionId }));
|
|
2112
|
+
return __assign({}, (input.BatchPredictionId != null && { BatchPredictionId: input.BatchPredictionId }));
|
|
2134
2113
|
};
|
|
2135
2114
|
var serializeAws_json1_1GetDataSourceInput = function (input, context) {
|
|
2136
|
-
return __assign(__assign({}, (input.DataSourceId
|
|
2115
|
+
return __assign(__assign({}, (input.DataSourceId != null && { DataSourceId: input.DataSourceId })), (input.Verbose != null && { Verbose: input.Verbose }));
|
|
2137
2116
|
};
|
|
2138
2117
|
var serializeAws_json1_1GetEvaluationInput = function (input, context) {
|
|
2139
|
-
return __assign({}, (input.EvaluationId
|
|
2118
|
+
return __assign({}, (input.EvaluationId != null && { EvaluationId: input.EvaluationId }));
|
|
2140
2119
|
};
|
|
2141
2120
|
var serializeAws_json1_1GetMLModelInput = function (input, context) {
|
|
2142
|
-
return __assign(__assign({}, (input.MLModelId
|
|
2121
|
+
return __assign(__assign({}, (input.MLModelId != null && { MLModelId: input.MLModelId })), (input.Verbose != null && { Verbose: input.Verbose }));
|
|
2143
2122
|
};
|
|
2144
2123
|
var serializeAws_json1_1PredictInput = function (input, context) {
|
|
2145
|
-
return __assign(__assign(__assign({}, (input.MLModelId
|
|
2146
|
-
input.PredictEndpoint !== null && { PredictEndpoint: input.PredictEndpoint })), (input.Record !== undefined &&
|
|
2147
|
-
input.Record !== null && { Record: serializeAws_json1_1Record(input.Record, context) }));
|
|
2124
|
+
return __assign(__assign(__assign({}, (input.MLModelId != null && { MLModelId: input.MLModelId })), (input.PredictEndpoint != null && { PredictEndpoint: input.PredictEndpoint })), (input.Record != null && { Record: serializeAws_json1_1Record(input.Record, context) }));
|
|
2148
2125
|
};
|
|
2149
2126
|
var serializeAws_json1_1RDSDatabase = function (input, context) {
|
|
2150
|
-
return __assign(__assign({}, (input.DatabaseName
|
|
2151
|
-
input.InstanceIdentifier !== null && { InstanceIdentifier: input.InstanceIdentifier }));
|
|
2127
|
+
return __assign(__assign({}, (input.DatabaseName != null && { DatabaseName: input.DatabaseName })), (input.InstanceIdentifier != null && { InstanceIdentifier: input.InstanceIdentifier }));
|
|
2152
2128
|
};
|
|
2153
2129
|
var serializeAws_json1_1RDSDatabaseCredentials = function (input, context) {
|
|
2154
|
-
return __assign(__assign({}, (input.Password
|
|
2130
|
+
return __assign(__assign({}, (input.Password != null && { Password: input.Password })), (input.Username != null && { Username: input.Username }));
|
|
2155
2131
|
};
|
|
2156
2132
|
var serializeAws_json1_1RDSDataSpec = function (input, context) {
|
|
2157
|
-
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.DataRearrangement
|
|
2158
|
-
input.DataRearrangement !== null && { DataRearrangement: input.DataRearrangement })), (input.DataSchema !== undefined && input.DataSchema !== null && { DataSchema: input.DataSchema })), (input.DataSchemaUri !== undefined && input.DataSchemaUri !== null && { DataSchemaUri: input.DataSchemaUri })), (input.DatabaseCredentials !== undefined &&
|
|
2159
|
-
input.DatabaseCredentials !== null && {
|
|
2133
|
+
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.DataRearrangement != null && { DataRearrangement: input.DataRearrangement })), (input.DataSchema != null && { DataSchema: input.DataSchema })), (input.DataSchemaUri != null && { DataSchemaUri: input.DataSchemaUri })), (input.DatabaseCredentials != null && {
|
|
2160
2134
|
DatabaseCredentials: serializeAws_json1_1RDSDatabaseCredentials(input.DatabaseCredentials, context),
|
|
2161
|
-
})), (input.DatabaseInformation
|
|
2162
|
-
input.DatabaseInformation !== null && {
|
|
2135
|
+
})), (input.DatabaseInformation != null && {
|
|
2163
2136
|
DatabaseInformation: serializeAws_json1_1RDSDatabase(input.DatabaseInformation, context),
|
|
2164
|
-
})), (input.ResourceRole
|
|
2165
|
-
input.S3StagingLocation !== null && { S3StagingLocation: input.S3StagingLocation })), (input.SecurityGroupIds !== undefined &&
|
|
2166
|
-
input.SecurityGroupIds !== null && {
|
|
2137
|
+
})), (input.ResourceRole != null && { ResourceRole: input.ResourceRole })), (input.S3StagingLocation != null && { S3StagingLocation: input.S3StagingLocation })), (input.SecurityGroupIds != null && {
|
|
2167
2138
|
SecurityGroupIds: serializeAws_json1_1EDPSecurityGroupIds(input.SecurityGroupIds, context),
|
|
2168
|
-
})), (input.SelectSqlQuery
|
|
2169
|
-
input.SelectSqlQuery !== null && { SelectSqlQuery: input.SelectSqlQuery })), (input.ServiceRole !== undefined && input.ServiceRole !== null && { ServiceRole: input.ServiceRole })), (input.SubnetId !== undefined && input.SubnetId !== null && { SubnetId: input.SubnetId }));
|
|
2139
|
+
})), (input.SelectSqlQuery != null && { SelectSqlQuery: input.SelectSqlQuery })), (input.ServiceRole != null && { ServiceRole: input.ServiceRole })), (input.SubnetId != null && { SubnetId: input.SubnetId }));
|
|
2170
2140
|
};
|
|
2171
2141
|
var serializeAws_json1_1Record = function (input, context) {
|
|
2172
2142
|
return Object.entries(input).reduce(function (acc, _a) {
|
|
@@ -2179,32 +2149,23 @@ var serializeAws_json1_1Record = function (input, context) {
|
|
|
2179
2149
|
}, {});
|
|
2180
2150
|
};
|
|
2181
2151
|
var serializeAws_json1_1RedshiftDatabase = function (input, context) {
|
|
2182
|
-
return __assign(__assign({}, (input.ClusterIdentifier
|
|
2183
|
-
input.ClusterIdentifier !== null && { ClusterIdentifier: input.ClusterIdentifier })), (input.DatabaseName !== undefined && input.DatabaseName !== null && { DatabaseName: input.DatabaseName }));
|
|
2152
|
+
return __assign(__assign({}, (input.ClusterIdentifier != null && { ClusterIdentifier: input.ClusterIdentifier })), (input.DatabaseName != null && { DatabaseName: input.DatabaseName }));
|
|
2184
2153
|
};
|
|
2185
2154
|
var serializeAws_json1_1RedshiftDatabaseCredentials = function (input, context) {
|
|
2186
|
-
return __assign(__assign({}, (input.Password
|
|
2155
|
+
return __assign(__assign({}, (input.Password != null && { Password: input.Password })), (input.Username != null && { Username: input.Username }));
|
|
2187
2156
|
};
|
|
2188
2157
|
var serializeAws_json1_1RedshiftDataSpec = function (input, context) {
|
|
2189
|
-
return __assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.DataRearrangement
|
|
2190
|
-
input.DataRearrangement !== null && { DataRearrangement: input.DataRearrangement })), (input.DataSchema !== undefined && input.DataSchema !== null && { DataSchema: input.DataSchema })), (input.DataSchemaUri !== undefined && input.DataSchemaUri !== null && { DataSchemaUri: input.DataSchemaUri })), (input.DatabaseCredentials !== undefined &&
|
|
2191
|
-
input.DatabaseCredentials !== null && {
|
|
2158
|
+
return __assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.DataRearrangement != null && { DataRearrangement: input.DataRearrangement })), (input.DataSchema != null && { DataSchema: input.DataSchema })), (input.DataSchemaUri != null && { DataSchemaUri: input.DataSchemaUri })), (input.DatabaseCredentials != null && {
|
|
2192
2159
|
DatabaseCredentials: serializeAws_json1_1RedshiftDatabaseCredentials(input.DatabaseCredentials, context),
|
|
2193
|
-
})), (input.DatabaseInformation
|
|
2194
|
-
input.DatabaseInformation !== null && {
|
|
2160
|
+
})), (input.DatabaseInformation != null && {
|
|
2195
2161
|
DatabaseInformation: serializeAws_json1_1RedshiftDatabase(input.DatabaseInformation, context),
|
|
2196
|
-
})), (input.S3StagingLocation
|
|
2197
|
-
input.S3StagingLocation !== null && { S3StagingLocation: input.S3StagingLocation })), (input.SelectSqlQuery !== undefined &&
|
|
2198
|
-
input.SelectSqlQuery !== null && { SelectSqlQuery: input.SelectSqlQuery }));
|
|
2162
|
+
})), (input.S3StagingLocation != null && { S3StagingLocation: input.S3StagingLocation })), (input.SelectSqlQuery != null && { SelectSqlQuery: input.SelectSqlQuery }));
|
|
2199
2163
|
};
|
|
2200
2164
|
var serializeAws_json1_1S3DataSpec = function (input, context) {
|
|
2201
|
-
return __assign(__assign(__assign(__assign({}, (input.DataLocationS3
|
|
2202
|
-
input.DataLocationS3 !== null && { DataLocationS3: input.DataLocationS3 })), (input.DataRearrangement !== undefined &&
|
|
2203
|
-
input.DataRearrangement !== null && { DataRearrangement: input.DataRearrangement })), (input.DataSchema !== undefined && input.DataSchema !== null && { DataSchema: input.DataSchema })), (input.DataSchemaLocationS3 !== undefined &&
|
|
2204
|
-
input.DataSchemaLocationS3 !== null && { DataSchemaLocationS3: input.DataSchemaLocationS3 }));
|
|
2165
|
+
return __assign(__assign(__assign(__assign({}, (input.DataLocationS3 != null && { DataLocationS3: input.DataLocationS3 })), (input.DataRearrangement != null && { DataRearrangement: input.DataRearrangement })), (input.DataSchema != null && { DataSchema: input.DataSchema })), (input.DataSchemaLocationS3 != null && { DataSchemaLocationS3: input.DataSchemaLocationS3 }));
|
|
2205
2166
|
};
|
|
2206
2167
|
var serializeAws_json1_1Tag = function (input, context) {
|
|
2207
|
-
return __assign(__assign({}, (input.Key
|
|
2168
|
+
return __assign(__assign({}, (input.Key != null && { Key: input.Key })), (input.Value != null && { Value: input.Value }));
|
|
2208
2169
|
};
|
|
2209
2170
|
var serializeAws_json1_1TagKeyList = function (input, context) {
|
|
2210
2171
|
return input
|
|
@@ -2237,21 +2198,16 @@ var serializeAws_json1_1TrainingParameters = function (input, context) {
|
|
|
2237
2198
|
}, {});
|
|
2238
2199
|
};
|
|
2239
2200
|
var serializeAws_json1_1UpdateBatchPredictionInput = function (input, context) {
|
|
2240
|
-
return __assign(__assign({}, (input.BatchPredictionId
|
|
2241
|
-
input.BatchPredictionId !== null && { BatchPredictionId: input.BatchPredictionId })), (input.BatchPredictionName !== undefined &&
|
|
2242
|
-
input.BatchPredictionName !== null && { BatchPredictionName: input.BatchPredictionName }));
|
|
2201
|
+
return __assign(__assign({}, (input.BatchPredictionId != null && { BatchPredictionId: input.BatchPredictionId })), (input.BatchPredictionName != null && { BatchPredictionName: input.BatchPredictionName }));
|
|
2243
2202
|
};
|
|
2244
2203
|
var serializeAws_json1_1UpdateDataSourceInput = function (input, context) {
|
|
2245
|
-
return __assign(__assign({}, (input.DataSourceId
|
|
2246
|
-
input.DataSourceName !== null && { DataSourceName: input.DataSourceName }));
|
|
2204
|
+
return __assign(__assign({}, (input.DataSourceId != null && { DataSourceId: input.DataSourceId })), (input.DataSourceName != null && { DataSourceName: input.DataSourceName }));
|
|
2247
2205
|
};
|
|
2248
2206
|
var serializeAws_json1_1UpdateEvaluationInput = function (input, context) {
|
|
2249
|
-
return __assign(__assign({}, (input.EvaluationId
|
|
2250
|
-
input.EvaluationName !== null && { EvaluationName: input.EvaluationName }));
|
|
2207
|
+
return __assign(__assign({}, (input.EvaluationId != null && { EvaluationId: input.EvaluationId })), (input.EvaluationName != null && { EvaluationName: input.EvaluationName }));
|
|
2251
2208
|
};
|
|
2252
2209
|
var serializeAws_json1_1UpdateMLModelInput = function (input, context) {
|
|
2253
|
-
return __assign(__assign(__assign({}, (input.MLModelId
|
|
2254
|
-
input.ScoreThreshold !== null && { ScoreThreshold: __serializeFloat(input.ScoreThreshold) }));
|
|
2210
|
+
return __assign(__assign(__assign({}, (input.MLModelId != null && { MLModelId: input.MLModelId })), (input.MLModelName != null && { MLModelName: input.MLModelName })), (input.ScoreThreshold != null && { ScoreThreshold: __serializeFloat(input.ScoreThreshold) }));
|
|
2255
2211
|
};
|
|
2256
2212
|
var deserializeAws_json1_1AddTagsOutput = function (output, context) {
|
|
2257
2213
|
return {
|
|
@@ -2264,25 +2220,19 @@ var deserializeAws_json1_1BatchPrediction = function (output, context) {
|
|
|
2264
2220
|
BatchPredictionDataSourceId: __expectString(output.BatchPredictionDataSourceId),
|
|
2265
2221
|
BatchPredictionId: __expectString(output.BatchPredictionId),
|
|
2266
2222
|
ComputeTime: __expectLong(output.ComputeTime),
|
|
2267
|
-
CreatedAt: output.CreatedAt
|
|
2268
|
-
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreatedAt)))
|
|
2269
|
-
: undefined,
|
|
2223
|
+
CreatedAt: output.CreatedAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreatedAt))) : undefined,
|
|
2270
2224
|
CreatedByIamUser: __expectString(output.CreatedByIamUser),
|
|
2271
|
-
FinishedAt: output.FinishedAt
|
|
2272
|
-
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.FinishedAt)))
|
|
2273
|
-
: undefined,
|
|
2225
|
+
FinishedAt: output.FinishedAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.FinishedAt))) : undefined,
|
|
2274
2226
|
InputDataLocationS3: __expectString(output.InputDataLocationS3),
|
|
2275
2227
|
InvalidRecordCount: __expectLong(output.InvalidRecordCount),
|
|
2276
|
-
LastUpdatedAt: output.LastUpdatedAt
|
|
2228
|
+
LastUpdatedAt: output.LastUpdatedAt != null
|
|
2277
2229
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastUpdatedAt)))
|
|
2278
2230
|
: undefined,
|
|
2279
2231
|
MLModelId: __expectString(output.MLModelId),
|
|
2280
2232
|
Message: __expectString(output.Message),
|
|
2281
2233
|
Name: __expectString(output.Name),
|
|
2282
2234
|
OutputUri: __expectString(output.OutputUri),
|
|
2283
|
-
StartedAt: output.StartedAt
|
|
2284
|
-
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.StartedAt)))
|
|
2285
|
-
: undefined,
|
|
2235
|
+
StartedAt: output.StartedAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.StartedAt))) : undefined,
|
|
2286
2236
|
Status: __expectString(output.Status),
|
|
2287
2237
|
TotalRecordCount: __expectLong(output.TotalRecordCount),
|
|
2288
2238
|
};
|
|
@@ -2331,7 +2281,7 @@ var deserializeAws_json1_1CreateMLModelOutput = function (output, context) {
|
|
|
2331
2281
|
var deserializeAws_json1_1CreateRealtimeEndpointOutput = function (output, context) {
|
|
2332
2282
|
return {
|
|
2333
2283
|
MLModelId: __expectString(output.MLModelId),
|
|
2334
|
-
RealtimeEndpointInfo: output.RealtimeEndpointInfo
|
|
2284
|
+
RealtimeEndpointInfo: output.RealtimeEndpointInfo != null
|
|
2335
2285
|
? deserializeAws_json1_1RealtimeEndpointInfo(output.RealtimeEndpointInfo, context)
|
|
2336
2286
|
: undefined,
|
|
2337
2287
|
};
|
|
@@ -2340,33 +2290,25 @@ var deserializeAws_json1_1DataSource = function (output, context) {
|
|
|
2340
2290
|
return {
|
|
2341
2291
|
ComputeStatistics: __expectBoolean(output.ComputeStatistics),
|
|
2342
2292
|
ComputeTime: __expectLong(output.ComputeTime),
|
|
2343
|
-
CreatedAt: output.CreatedAt
|
|
2344
|
-
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreatedAt)))
|
|
2345
|
-
: undefined,
|
|
2293
|
+
CreatedAt: output.CreatedAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreatedAt))) : undefined,
|
|
2346
2294
|
CreatedByIamUser: __expectString(output.CreatedByIamUser),
|
|
2347
2295
|
DataLocationS3: __expectString(output.DataLocationS3),
|
|
2348
2296
|
DataRearrangement: __expectString(output.DataRearrangement),
|
|
2349
2297
|
DataSizeInBytes: __expectLong(output.DataSizeInBytes),
|
|
2350
2298
|
DataSourceId: __expectString(output.DataSourceId),
|
|
2351
|
-
FinishedAt: output.FinishedAt
|
|
2352
|
-
|
|
2353
|
-
: undefined,
|
|
2354
|
-
LastUpdatedAt: output.LastUpdatedAt !== undefined && output.LastUpdatedAt !== null
|
|
2299
|
+
FinishedAt: output.FinishedAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.FinishedAt))) : undefined,
|
|
2300
|
+
LastUpdatedAt: output.LastUpdatedAt != null
|
|
2355
2301
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastUpdatedAt)))
|
|
2356
2302
|
: undefined,
|
|
2357
2303
|
Message: __expectString(output.Message),
|
|
2358
2304
|
Name: __expectString(output.Name),
|
|
2359
2305
|
NumberOfFiles: __expectLong(output.NumberOfFiles),
|
|
2360
|
-
RDSMetadata: output.RDSMetadata
|
|
2361
|
-
|
|
2362
|
-
: undefined,
|
|
2363
|
-
RedshiftMetadata: output.RedshiftMetadata !== undefined && output.RedshiftMetadata !== null
|
|
2306
|
+
RDSMetadata: output.RDSMetadata != null ? deserializeAws_json1_1RDSMetadata(output.RDSMetadata, context) : undefined,
|
|
2307
|
+
RedshiftMetadata: output.RedshiftMetadata != null
|
|
2364
2308
|
? deserializeAws_json1_1RedshiftMetadata(output.RedshiftMetadata, context)
|
|
2365
2309
|
: undefined,
|
|
2366
2310
|
RoleARN: __expectString(output.RoleARN),
|
|
2367
|
-
StartedAt: output.StartedAt
|
|
2368
|
-
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.StartedAt)))
|
|
2369
|
-
: undefined,
|
|
2311
|
+
StartedAt: output.StartedAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.StartedAt))) : undefined,
|
|
2370
2312
|
Status: __expectString(output.Status),
|
|
2371
2313
|
};
|
|
2372
2314
|
};
|
|
@@ -2404,7 +2346,7 @@ var deserializeAws_json1_1DeleteMLModelOutput = function (output, context) {
|
|
|
2404
2346
|
var deserializeAws_json1_1DeleteRealtimeEndpointOutput = function (output, context) {
|
|
2405
2347
|
return {
|
|
2406
2348
|
MLModelId: __expectString(output.MLModelId),
|
|
2407
|
-
RealtimeEndpointInfo: output.RealtimeEndpointInfo
|
|
2349
|
+
RealtimeEndpointInfo: output.RealtimeEndpointInfo != null
|
|
2408
2350
|
? deserializeAws_json1_1RealtimeEndpointInfo(output.RealtimeEndpointInfo, context)
|
|
2409
2351
|
: undefined,
|
|
2410
2352
|
};
|
|
@@ -2418,42 +2360,32 @@ var deserializeAws_json1_1DeleteTagsOutput = function (output, context) {
|
|
|
2418
2360
|
var deserializeAws_json1_1DescribeBatchPredictionsOutput = function (output, context) {
|
|
2419
2361
|
return {
|
|
2420
2362
|
NextToken: __expectString(output.NextToken),
|
|
2421
|
-
Results: output.Results
|
|
2422
|
-
? deserializeAws_json1_1BatchPredictions(output.Results, context)
|
|
2423
|
-
: undefined,
|
|
2363
|
+
Results: output.Results != null ? deserializeAws_json1_1BatchPredictions(output.Results, context) : undefined,
|
|
2424
2364
|
};
|
|
2425
2365
|
};
|
|
2426
2366
|
var deserializeAws_json1_1DescribeDataSourcesOutput = function (output, context) {
|
|
2427
2367
|
return {
|
|
2428
2368
|
NextToken: __expectString(output.NextToken),
|
|
2429
|
-
Results: output.Results
|
|
2430
|
-
? deserializeAws_json1_1DataSources(output.Results, context)
|
|
2431
|
-
: undefined,
|
|
2369
|
+
Results: output.Results != null ? deserializeAws_json1_1DataSources(output.Results, context) : undefined,
|
|
2432
2370
|
};
|
|
2433
2371
|
};
|
|
2434
2372
|
var deserializeAws_json1_1DescribeEvaluationsOutput = function (output, context) {
|
|
2435
2373
|
return {
|
|
2436
2374
|
NextToken: __expectString(output.NextToken),
|
|
2437
|
-
Results: output.Results
|
|
2438
|
-
? deserializeAws_json1_1Evaluations(output.Results, context)
|
|
2439
|
-
: undefined,
|
|
2375
|
+
Results: output.Results != null ? deserializeAws_json1_1Evaluations(output.Results, context) : undefined,
|
|
2440
2376
|
};
|
|
2441
2377
|
};
|
|
2442
2378
|
var deserializeAws_json1_1DescribeMLModelsOutput = function (output, context) {
|
|
2443
2379
|
return {
|
|
2444
2380
|
NextToken: __expectString(output.NextToken),
|
|
2445
|
-
Results: output.Results
|
|
2446
|
-
? deserializeAws_json1_1MLModels(output.Results, context)
|
|
2447
|
-
: undefined,
|
|
2381
|
+
Results: output.Results != null ? deserializeAws_json1_1MLModels(output.Results, context) : undefined,
|
|
2448
2382
|
};
|
|
2449
2383
|
};
|
|
2450
2384
|
var deserializeAws_json1_1DescribeTagsOutput = function (output, context) {
|
|
2451
2385
|
return {
|
|
2452
2386
|
ResourceId: __expectString(output.ResourceId),
|
|
2453
2387
|
ResourceType: __expectString(output.ResourceType),
|
|
2454
|
-
Tags: output.Tags
|
|
2455
|
-
? deserializeAws_json1_1TagList(output.Tags, context)
|
|
2456
|
-
: undefined,
|
|
2388
|
+
Tags: output.Tags != null ? deserializeAws_json1_1TagList(output.Tags, context) : undefined,
|
|
2457
2389
|
};
|
|
2458
2390
|
};
|
|
2459
2391
|
var deserializeAws_json1_1DetailsMap = function (output, context) {
|
|
@@ -2469,28 +2401,22 @@ var deserializeAws_json1_1DetailsMap = function (output, context) {
|
|
|
2469
2401
|
var deserializeAws_json1_1Evaluation = function (output, context) {
|
|
2470
2402
|
return {
|
|
2471
2403
|
ComputeTime: __expectLong(output.ComputeTime),
|
|
2472
|
-
CreatedAt: output.CreatedAt
|
|
2473
|
-
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreatedAt)))
|
|
2474
|
-
: undefined,
|
|
2404
|
+
CreatedAt: output.CreatedAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreatedAt))) : undefined,
|
|
2475
2405
|
CreatedByIamUser: __expectString(output.CreatedByIamUser),
|
|
2476
2406
|
EvaluationDataSourceId: __expectString(output.EvaluationDataSourceId),
|
|
2477
2407
|
EvaluationId: __expectString(output.EvaluationId),
|
|
2478
|
-
FinishedAt: output.FinishedAt
|
|
2479
|
-
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.FinishedAt)))
|
|
2480
|
-
: undefined,
|
|
2408
|
+
FinishedAt: output.FinishedAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.FinishedAt))) : undefined,
|
|
2481
2409
|
InputDataLocationS3: __expectString(output.InputDataLocationS3),
|
|
2482
|
-
LastUpdatedAt: output.LastUpdatedAt
|
|
2410
|
+
LastUpdatedAt: output.LastUpdatedAt != null
|
|
2483
2411
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastUpdatedAt)))
|
|
2484
2412
|
: undefined,
|
|
2485
2413
|
MLModelId: __expectString(output.MLModelId),
|
|
2486
2414
|
Message: __expectString(output.Message),
|
|
2487
2415
|
Name: __expectString(output.Name),
|
|
2488
|
-
PerformanceMetrics: output.PerformanceMetrics
|
|
2416
|
+
PerformanceMetrics: output.PerformanceMetrics != null
|
|
2489
2417
|
? deserializeAws_json1_1PerformanceMetrics(output.PerformanceMetrics, context)
|
|
2490
2418
|
: undefined,
|
|
2491
|
-
StartedAt: output.StartedAt
|
|
2492
|
-
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.StartedAt)))
|
|
2493
|
-
: undefined,
|
|
2419
|
+
StartedAt: output.StartedAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.StartedAt))) : undefined,
|
|
2494
2420
|
Status: __expectString(output.Status),
|
|
2495
2421
|
};
|
|
2496
2422
|
};
|
|
@@ -2510,16 +2436,12 @@ var deserializeAws_json1_1GetBatchPredictionOutput = function (output, context)
|
|
|
2510
2436
|
BatchPredictionDataSourceId: __expectString(output.BatchPredictionDataSourceId),
|
|
2511
2437
|
BatchPredictionId: __expectString(output.BatchPredictionId),
|
|
2512
2438
|
ComputeTime: __expectLong(output.ComputeTime),
|
|
2513
|
-
CreatedAt: output.CreatedAt
|
|
2514
|
-
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreatedAt)))
|
|
2515
|
-
: undefined,
|
|
2439
|
+
CreatedAt: output.CreatedAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreatedAt))) : undefined,
|
|
2516
2440
|
CreatedByIamUser: __expectString(output.CreatedByIamUser),
|
|
2517
|
-
FinishedAt: output.FinishedAt
|
|
2518
|
-
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.FinishedAt)))
|
|
2519
|
-
: undefined,
|
|
2441
|
+
FinishedAt: output.FinishedAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.FinishedAt))) : undefined,
|
|
2520
2442
|
InputDataLocationS3: __expectString(output.InputDataLocationS3),
|
|
2521
2443
|
InvalidRecordCount: __expectLong(output.InvalidRecordCount),
|
|
2522
|
-
LastUpdatedAt: output.LastUpdatedAt
|
|
2444
|
+
LastUpdatedAt: output.LastUpdatedAt != null
|
|
2523
2445
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastUpdatedAt)))
|
|
2524
2446
|
: undefined,
|
|
2525
2447
|
LogUri: __expectString(output.LogUri),
|
|
@@ -2527,9 +2449,7 @@ var deserializeAws_json1_1GetBatchPredictionOutput = function (output, context)
|
|
|
2527
2449
|
Message: __expectString(output.Message),
|
|
2528
2450
|
Name: __expectString(output.Name),
|
|
2529
2451
|
OutputUri: __expectString(output.OutputUri),
|
|
2530
|
-
StartedAt: output.StartedAt
|
|
2531
|
-
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.StartedAt)))
|
|
2532
|
-
: undefined,
|
|
2452
|
+
StartedAt: output.StartedAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.StartedAt))) : undefined,
|
|
2533
2453
|
Status: __expectString(output.Status),
|
|
2534
2454
|
TotalRecordCount: __expectLong(output.TotalRecordCount),
|
|
2535
2455
|
};
|
|
@@ -2538,82 +2458,64 @@ var deserializeAws_json1_1GetDataSourceOutput = function (output, context) {
|
|
|
2538
2458
|
return {
|
|
2539
2459
|
ComputeStatistics: __expectBoolean(output.ComputeStatistics),
|
|
2540
2460
|
ComputeTime: __expectLong(output.ComputeTime),
|
|
2541
|
-
CreatedAt: output.CreatedAt
|
|
2542
|
-
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreatedAt)))
|
|
2543
|
-
: undefined,
|
|
2461
|
+
CreatedAt: output.CreatedAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreatedAt))) : undefined,
|
|
2544
2462
|
CreatedByIamUser: __expectString(output.CreatedByIamUser),
|
|
2545
2463
|
DataLocationS3: __expectString(output.DataLocationS3),
|
|
2546
2464
|
DataRearrangement: __expectString(output.DataRearrangement),
|
|
2547
2465
|
DataSizeInBytes: __expectLong(output.DataSizeInBytes),
|
|
2548
2466
|
DataSourceId: __expectString(output.DataSourceId),
|
|
2549
2467
|
DataSourceSchema: __expectString(output.DataSourceSchema),
|
|
2550
|
-
FinishedAt: output.FinishedAt
|
|
2551
|
-
|
|
2552
|
-
: undefined,
|
|
2553
|
-
LastUpdatedAt: output.LastUpdatedAt !== undefined && output.LastUpdatedAt !== null
|
|
2468
|
+
FinishedAt: output.FinishedAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.FinishedAt))) : undefined,
|
|
2469
|
+
LastUpdatedAt: output.LastUpdatedAt != null
|
|
2554
2470
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastUpdatedAt)))
|
|
2555
2471
|
: undefined,
|
|
2556
2472
|
LogUri: __expectString(output.LogUri),
|
|
2557
2473
|
Message: __expectString(output.Message),
|
|
2558
2474
|
Name: __expectString(output.Name),
|
|
2559
2475
|
NumberOfFiles: __expectLong(output.NumberOfFiles),
|
|
2560
|
-
RDSMetadata: output.RDSMetadata
|
|
2561
|
-
|
|
2562
|
-
: undefined,
|
|
2563
|
-
RedshiftMetadata: output.RedshiftMetadata !== undefined && output.RedshiftMetadata !== null
|
|
2476
|
+
RDSMetadata: output.RDSMetadata != null ? deserializeAws_json1_1RDSMetadata(output.RDSMetadata, context) : undefined,
|
|
2477
|
+
RedshiftMetadata: output.RedshiftMetadata != null
|
|
2564
2478
|
? deserializeAws_json1_1RedshiftMetadata(output.RedshiftMetadata, context)
|
|
2565
2479
|
: undefined,
|
|
2566
2480
|
RoleARN: __expectString(output.RoleARN),
|
|
2567
|
-
StartedAt: output.StartedAt
|
|
2568
|
-
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.StartedAt)))
|
|
2569
|
-
: undefined,
|
|
2481
|
+
StartedAt: output.StartedAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.StartedAt))) : undefined,
|
|
2570
2482
|
Status: __expectString(output.Status),
|
|
2571
2483
|
};
|
|
2572
2484
|
};
|
|
2573
2485
|
var deserializeAws_json1_1GetEvaluationOutput = function (output, context) {
|
|
2574
2486
|
return {
|
|
2575
2487
|
ComputeTime: __expectLong(output.ComputeTime),
|
|
2576
|
-
CreatedAt: output.CreatedAt
|
|
2577
|
-
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreatedAt)))
|
|
2578
|
-
: undefined,
|
|
2488
|
+
CreatedAt: output.CreatedAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreatedAt))) : undefined,
|
|
2579
2489
|
CreatedByIamUser: __expectString(output.CreatedByIamUser),
|
|
2580
2490
|
EvaluationDataSourceId: __expectString(output.EvaluationDataSourceId),
|
|
2581
2491
|
EvaluationId: __expectString(output.EvaluationId),
|
|
2582
|
-
FinishedAt: output.FinishedAt
|
|
2583
|
-
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.FinishedAt)))
|
|
2584
|
-
: undefined,
|
|
2492
|
+
FinishedAt: output.FinishedAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.FinishedAt))) : undefined,
|
|
2585
2493
|
InputDataLocationS3: __expectString(output.InputDataLocationS3),
|
|
2586
|
-
LastUpdatedAt: output.LastUpdatedAt
|
|
2494
|
+
LastUpdatedAt: output.LastUpdatedAt != null
|
|
2587
2495
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastUpdatedAt)))
|
|
2588
2496
|
: undefined,
|
|
2589
2497
|
LogUri: __expectString(output.LogUri),
|
|
2590
2498
|
MLModelId: __expectString(output.MLModelId),
|
|
2591
2499
|
Message: __expectString(output.Message),
|
|
2592
2500
|
Name: __expectString(output.Name),
|
|
2593
|
-
PerformanceMetrics: output.PerformanceMetrics
|
|
2501
|
+
PerformanceMetrics: output.PerformanceMetrics != null
|
|
2594
2502
|
? deserializeAws_json1_1PerformanceMetrics(output.PerformanceMetrics, context)
|
|
2595
2503
|
: undefined,
|
|
2596
|
-
StartedAt: output.StartedAt
|
|
2597
|
-
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.StartedAt)))
|
|
2598
|
-
: undefined,
|
|
2504
|
+
StartedAt: output.StartedAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.StartedAt))) : undefined,
|
|
2599
2505
|
Status: __expectString(output.Status),
|
|
2600
2506
|
};
|
|
2601
2507
|
};
|
|
2602
2508
|
var deserializeAws_json1_1GetMLModelOutput = function (output, context) {
|
|
2603
2509
|
return {
|
|
2604
2510
|
ComputeTime: __expectLong(output.ComputeTime),
|
|
2605
|
-
CreatedAt: output.CreatedAt
|
|
2606
|
-
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreatedAt)))
|
|
2607
|
-
: undefined,
|
|
2511
|
+
CreatedAt: output.CreatedAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreatedAt))) : undefined,
|
|
2608
2512
|
CreatedByIamUser: __expectString(output.CreatedByIamUser),
|
|
2609
|
-
EndpointInfo: output.EndpointInfo
|
|
2513
|
+
EndpointInfo: output.EndpointInfo != null
|
|
2610
2514
|
? deserializeAws_json1_1RealtimeEndpointInfo(output.EndpointInfo, context)
|
|
2611
2515
|
: undefined,
|
|
2612
|
-
FinishedAt: output.FinishedAt
|
|
2613
|
-
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.FinishedAt)))
|
|
2614
|
-
: undefined,
|
|
2516
|
+
FinishedAt: output.FinishedAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.FinishedAt))) : undefined,
|
|
2615
2517
|
InputDataLocationS3: __expectString(output.InputDataLocationS3),
|
|
2616
|
-
LastUpdatedAt: output.LastUpdatedAt
|
|
2518
|
+
LastUpdatedAt: output.LastUpdatedAt != null
|
|
2617
2519
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastUpdatedAt)))
|
|
2618
2520
|
: undefined,
|
|
2619
2521
|
LogUri: __expectString(output.LogUri),
|
|
@@ -2624,16 +2526,14 @@ var deserializeAws_json1_1GetMLModelOutput = function (output, context) {
|
|
|
2624
2526
|
Recipe: __expectString(output.Recipe),
|
|
2625
2527
|
Schema: __expectString(output.Schema),
|
|
2626
2528
|
ScoreThreshold: __limitedParseFloat32(output.ScoreThreshold),
|
|
2627
|
-
ScoreThresholdLastUpdatedAt: output.ScoreThresholdLastUpdatedAt
|
|
2529
|
+
ScoreThresholdLastUpdatedAt: output.ScoreThresholdLastUpdatedAt != null
|
|
2628
2530
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.ScoreThresholdLastUpdatedAt)))
|
|
2629
2531
|
: undefined,
|
|
2630
2532
|
SizeInBytes: __expectLong(output.SizeInBytes),
|
|
2631
|
-
StartedAt: output.StartedAt
|
|
2632
|
-
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.StartedAt)))
|
|
2633
|
-
: undefined,
|
|
2533
|
+
StartedAt: output.StartedAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.StartedAt))) : undefined,
|
|
2634
2534
|
Status: __expectString(output.Status),
|
|
2635
2535
|
TrainingDataSourceId: __expectString(output.TrainingDataSourceId),
|
|
2636
|
-
TrainingParameters: output.TrainingParameters
|
|
2536
|
+
TrainingParameters: output.TrainingParameters != null
|
|
2637
2537
|
? deserializeAws_json1_1TrainingParameters(output.TrainingParameters, context)
|
|
2638
2538
|
: undefined,
|
|
2639
2539
|
};
|
|
@@ -2671,18 +2571,14 @@ var deserializeAws_json1_1MLModel = function (output, context) {
|
|
|
2671
2571
|
return {
|
|
2672
2572
|
Algorithm: __expectString(output.Algorithm),
|
|
2673
2573
|
ComputeTime: __expectLong(output.ComputeTime),
|
|
2674
|
-
CreatedAt: output.CreatedAt
|
|
2675
|
-
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreatedAt)))
|
|
2676
|
-
: undefined,
|
|
2574
|
+
CreatedAt: output.CreatedAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreatedAt))) : undefined,
|
|
2677
2575
|
CreatedByIamUser: __expectString(output.CreatedByIamUser),
|
|
2678
|
-
EndpointInfo: output.EndpointInfo
|
|
2576
|
+
EndpointInfo: output.EndpointInfo != null
|
|
2679
2577
|
? deserializeAws_json1_1RealtimeEndpointInfo(output.EndpointInfo, context)
|
|
2680
2578
|
: undefined,
|
|
2681
|
-
FinishedAt: output.FinishedAt
|
|
2682
|
-
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.FinishedAt)))
|
|
2683
|
-
: undefined,
|
|
2579
|
+
FinishedAt: output.FinishedAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.FinishedAt))) : undefined,
|
|
2684
2580
|
InputDataLocationS3: __expectString(output.InputDataLocationS3),
|
|
2685
|
-
LastUpdatedAt: output.LastUpdatedAt
|
|
2581
|
+
LastUpdatedAt: output.LastUpdatedAt != null
|
|
2686
2582
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastUpdatedAt)))
|
|
2687
2583
|
: undefined,
|
|
2688
2584
|
MLModelId: __expectString(output.MLModelId),
|
|
@@ -2690,16 +2586,14 @@ var deserializeAws_json1_1MLModel = function (output, context) {
|
|
|
2690
2586
|
Message: __expectString(output.Message),
|
|
2691
2587
|
Name: __expectString(output.Name),
|
|
2692
2588
|
ScoreThreshold: __limitedParseFloat32(output.ScoreThreshold),
|
|
2693
|
-
ScoreThresholdLastUpdatedAt: output.ScoreThresholdLastUpdatedAt
|
|
2589
|
+
ScoreThresholdLastUpdatedAt: output.ScoreThresholdLastUpdatedAt != null
|
|
2694
2590
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.ScoreThresholdLastUpdatedAt)))
|
|
2695
2591
|
: undefined,
|
|
2696
2592
|
SizeInBytes: __expectLong(output.SizeInBytes),
|
|
2697
|
-
StartedAt: output.StartedAt
|
|
2698
|
-
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.StartedAt)))
|
|
2699
|
-
: undefined,
|
|
2593
|
+
StartedAt: output.StartedAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.StartedAt))) : undefined,
|
|
2700
2594
|
Status: __expectString(output.Status),
|
|
2701
2595
|
TrainingDataSourceId: __expectString(output.TrainingDataSourceId),
|
|
2702
|
-
TrainingParameters: output.TrainingParameters
|
|
2596
|
+
TrainingParameters: output.TrainingParameters != null
|
|
2703
2597
|
? deserializeAws_json1_1TrainingParameters(output.TrainingParameters, context)
|
|
2704
2598
|
: undefined,
|
|
2705
2599
|
};
|
|
@@ -2717,7 +2611,7 @@ var deserializeAws_json1_1MLModels = function (output, context) {
|
|
|
2717
2611
|
};
|
|
2718
2612
|
var deserializeAws_json1_1PerformanceMetrics = function (output, context) {
|
|
2719
2613
|
return {
|
|
2720
|
-
Properties: output.Properties
|
|
2614
|
+
Properties: output.Properties != null
|
|
2721
2615
|
? deserializeAws_json1_1PerformanceMetricsProperties(output.Properties, context)
|
|
2722
2616
|
: undefined,
|
|
2723
2617
|
};
|
|
@@ -2734,11 +2628,9 @@ var deserializeAws_json1_1PerformanceMetricsProperties = function (output, conte
|
|
|
2734
2628
|
};
|
|
2735
2629
|
var deserializeAws_json1_1Prediction = function (output, context) {
|
|
2736
2630
|
return {
|
|
2737
|
-
details: output.details
|
|
2738
|
-
? deserializeAws_json1_1DetailsMap(output.details, context)
|
|
2739
|
-
: undefined,
|
|
2631
|
+
details: output.details != null ? deserializeAws_json1_1DetailsMap(output.details, context) : undefined,
|
|
2740
2632
|
predictedLabel: __expectString(output.predictedLabel),
|
|
2741
|
-
predictedScores: output.predictedScores
|
|
2633
|
+
predictedScores: output.predictedScores != null
|
|
2742
2634
|
? deserializeAws_json1_1ScoreValuePerLabelMap(output.predictedScores, context)
|
|
2743
2635
|
: undefined,
|
|
2744
2636
|
predictedValue: __limitedParseFloat32(output.predictedValue),
|
|
@@ -2751,9 +2643,7 @@ var deserializeAws_json1_1PredictorNotMountedException = function (output, conte
|
|
|
2751
2643
|
};
|
|
2752
2644
|
var deserializeAws_json1_1PredictOutput = function (output, context) {
|
|
2753
2645
|
return {
|
|
2754
|
-
Prediction: output.Prediction
|
|
2755
|
-
? deserializeAws_json1_1Prediction(output.Prediction, context)
|
|
2756
|
-
: undefined,
|
|
2646
|
+
Prediction: output.Prediction != null ? deserializeAws_json1_1Prediction(output.Prediction, context) : undefined,
|
|
2757
2647
|
};
|
|
2758
2648
|
};
|
|
2759
2649
|
var deserializeAws_json1_1RDSDatabase = function (output, context) {
|
|
@@ -2765,9 +2655,7 @@ var deserializeAws_json1_1RDSDatabase = function (output, context) {
|
|
|
2765
2655
|
var deserializeAws_json1_1RDSMetadata = function (output, context) {
|
|
2766
2656
|
return {
|
|
2767
2657
|
DataPipelineId: __expectString(output.DataPipelineId),
|
|
2768
|
-
Database: output.Database
|
|
2769
|
-
? deserializeAws_json1_1RDSDatabase(output.Database, context)
|
|
2770
|
-
: undefined,
|
|
2658
|
+
Database: output.Database != null ? deserializeAws_json1_1RDSDatabase(output.Database, context) : undefined,
|
|
2771
2659
|
DatabaseUserName: __expectString(output.DatabaseUserName),
|
|
2772
2660
|
ResourceRole: __expectString(output.ResourceRole),
|
|
2773
2661
|
SelectSqlQuery: __expectString(output.SelectSqlQuery),
|
|
@@ -2776,9 +2664,7 @@ var deserializeAws_json1_1RDSMetadata = function (output, context) {
|
|
|
2776
2664
|
};
|
|
2777
2665
|
var deserializeAws_json1_1RealtimeEndpointInfo = function (output, context) {
|
|
2778
2666
|
return {
|
|
2779
|
-
CreatedAt: output.CreatedAt
|
|
2780
|
-
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreatedAt)))
|
|
2781
|
-
: undefined,
|
|
2667
|
+
CreatedAt: output.CreatedAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreatedAt))) : undefined,
|
|
2782
2668
|
EndpointStatus: __expectString(output.EndpointStatus),
|
|
2783
2669
|
EndpointUrl: __expectString(output.EndpointUrl),
|
|
2784
2670
|
PeakRequestsPerSecond: __expectInt32(output.PeakRequestsPerSecond),
|
|
@@ -2793,7 +2679,7 @@ var deserializeAws_json1_1RedshiftDatabase = function (output, context) {
|
|
|
2793
2679
|
var deserializeAws_json1_1RedshiftMetadata = function (output, context) {
|
|
2794
2680
|
return {
|
|
2795
2681
|
DatabaseUserName: __expectString(output.DatabaseUserName),
|
|
2796
|
-
RedshiftDatabase: output.RedshiftDatabase
|
|
2682
|
+
RedshiftDatabase: output.RedshiftDatabase != null
|
|
2797
2683
|
? deserializeAws_json1_1RedshiftDatabase(output.RedshiftDatabase, context)
|
|
2798
2684
|
: undefined,
|
|
2799
2685
|
SelectSqlQuery: __expectString(output.SelectSqlQuery),
|
|
@@ -2923,6 +2809,9 @@ var loadRestJsonErrorCode = function (output, data) {
|
|
|
2923
2809
|
var findKey = function (object, key) { return Object.keys(object).find(function (k) { return k.toLowerCase() === key.toLowerCase(); }); };
|
|
2924
2810
|
var sanitizeErrorCode = function (rawValue) {
|
|
2925
2811
|
var cleanValue = rawValue;
|
|
2812
|
+
if (typeof cleanValue === "number") {
|
|
2813
|
+
cleanValue = cleanValue.toString();
|
|
2814
|
+
}
|
|
2926
2815
|
if (cleanValue.indexOf(":") >= 0) {
|
|
2927
2816
|
cleanValue = cleanValue.split(":")[0];
|
|
2928
2817
|
}
|