{ "smithy": "2.0", "metadata": { "suppressions": [ { "id": "HttpMethodSemantics", "namespace": "*" }, { "id": "HttpResponseCodeSemantics", "namespace": "*" }, { "id": "PaginatedTrait", "namespace": "*" }, { "id": "HttpHeaderTrait", "namespace": "*" }, { "id": "HttpUriConflict", "namespace": "*" }, { "id": "Service", "namespace": "*" } ] }, "shapes": { "com.amazonaws.sagemakermetrics#BatchGetMetrics": { "type": "operation", "input": { "target": "com.amazonaws.sagemakermetrics#BatchGetMetricsRequest" }, "output": { "target": "com.amazonaws.sagemakermetrics#BatchGetMetricsResponse" }, "traits": { "smithy.api#documentation": "

Used to retrieve training metrics from SageMaker.

", "smithy.api#http": { "method": "POST", "uri": "/BatchGetMetrics", "code": 200 } } }, "com.amazonaws.sagemakermetrics#BatchGetMetricsRequest": { "type": "structure", "members": { "MetricQueries": { "target": "com.amazonaws.sagemakermetrics#MetricQueryList", "traits": { "smithy.api#clientOptional": {}, "smithy.api#documentation": "

Queries made to retrieve training metrics from SageMaker.

", "smithy.api#required": {} } } }, "traits": { "smithy.api#input": {} } }, "com.amazonaws.sagemakermetrics#BatchGetMetricsResponse": { "type": "structure", "members": { "MetricQueryResults": { "target": "com.amazonaws.sagemakermetrics#MetricQueryResultList", "traits": { "smithy.api#documentation": "

The results of a query to retrieve training metrics from SageMaker.

" } } }, "traits": { "smithy.api#output": {} } }, "com.amazonaws.sagemakermetrics#BatchPutMetrics": { "type": "operation", "input": { "target": "com.amazonaws.sagemakermetrics#BatchPutMetricsRequest" }, "output": { "target": "com.amazonaws.sagemakermetrics#BatchPutMetricsResponse" }, "traits": { "smithy.api#documentation": "

Used to ingest training metrics into SageMaker. These metrics can be visualized in SageMaker Studio.\n

", "smithy.api#http": { "method": "PUT", "uri": "/BatchPutMetrics", "code": 200 } } }, "com.amazonaws.sagemakermetrics#BatchPutMetricsError": { "type": "structure", "members": { "Code": { "target": "com.amazonaws.sagemakermetrics#PutMetricsErrorCode", "traits": { "smithy.api#documentation": "

The error code of an error that occured when attempting to put metrics.

\n " } }, "MetricIndex": { "target": "com.amazonaws.sagemakermetrics#Integer", "traits": { "smithy.api#documentation": "

An index that corresponds to the metric in the request.

" } } }, "traits": { "smithy.api#documentation": "

An error that occured when putting the metric data.

" } }, "com.amazonaws.sagemakermetrics#BatchPutMetricsErrorList": { "type": "list", "member": { "target": "com.amazonaws.sagemakermetrics#BatchPutMetricsError" }, "traits": { "smithy.api#length": { "min": 1, "max": 10 } } }, "com.amazonaws.sagemakermetrics#BatchPutMetricsRequest": { "type": "structure", "members": { "TrialComponentName": { "target": "com.amazonaws.sagemakermetrics#ExperimentEntityName", "traits": { "smithy.api#clientOptional": {}, "smithy.api#documentation": "

The name of the Trial Component to associate with the metrics. The Trial Component name must be entirely lowercase.

", "smithy.api#required": {} } }, "MetricData": { "target": "com.amazonaws.sagemakermetrics#RawMetricDataList", "traits": { "smithy.api#clientOptional": {}, "smithy.api#documentation": "

A list of raw metric values to put.

", "smithy.api#required": {} } } }, "traits": { "smithy.api#input": {} } }, "com.amazonaws.sagemakermetrics#BatchPutMetricsResponse": { "type": "structure", "members": { "Errors": { "target": "com.amazonaws.sagemakermetrics#BatchPutMetricsErrorList", "traits": { "smithy.api#documentation": "

Lists any errors that occur when inserting metric data.

" } } }, "traits": { "smithy.api#output": {} } }, "com.amazonaws.sagemakermetrics#Double": { "type": "double" }, "com.amazonaws.sagemakermetrics#ExperimentEntityName": { "type": "string", "traits": { "smithy.api#length": { "min": 1, "max": 120 }, "smithy.api#pattern": "^[a-z0-9](-*[a-z0-9]){0,119}$" } }, "com.amazonaws.sagemakermetrics#Integer": { "type": "integer" }, "com.amazonaws.sagemakermetrics#Long": { "type": "long" }, "com.amazonaws.sagemakermetrics#Message": { "type": "string", "traits": { "smithy.api#length": { "min": 0, "max": 2048 }, "smithy.api#pattern": ".*" } }, "com.amazonaws.sagemakermetrics#MetricName": { "type": "string", "traits": { "smithy.api#length": { "min": 1, "max": 255 }, "smithy.api#pattern": "^.+$" } }, "com.amazonaws.sagemakermetrics#MetricQuery": { "type": "structure", "members": { "MetricName": { "target": "com.amazonaws.sagemakermetrics#MetricName", "traits": { "smithy.api#clientOptional": {}, "smithy.api#documentation": "

The name of the metric to retrieve.

", "smithy.api#required": {} } }, "ResourceArn": { "target": "com.amazonaws.sagemakermetrics#SageMakerResourceArn", "traits": { "smithy.api#clientOptional": {}, "smithy.api#documentation": "

The ARN of the SageMaker resource to retrieve metrics for.

", "smithy.api#required": {} } }, "MetricStat": { "target": "com.amazonaws.sagemakermetrics#MetricStatistic", "traits": { "smithy.api#clientOptional": {}, "smithy.api#documentation": "

The metrics stat type of metrics to retrieve.

", "smithy.api#required": {} } }, "Period": { "target": "com.amazonaws.sagemakermetrics#Period", "traits": { "smithy.api#clientOptional": {}, "smithy.api#documentation": "

The time period of metrics to retrieve.

", "smithy.api#required": {} } }, "XAxisType": { "target": "com.amazonaws.sagemakermetrics#XAxisType", "traits": { "smithy.api#clientOptional": {}, "smithy.api#documentation": "

The x-axis type of metrics to retrieve.

", "smithy.api#required": {} } }, "Start": { "target": "com.amazonaws.sagemakermetrics#Long", "traits": { "smithy.api#documentation": "

The start time of metrics to retrieve.

" } }, "End": { "target": "com.amazonaws.sagemakermetrics#Long", "traits": { "smithy.api#documentation": "

The end time of metrics to retrieve.

" } } }, "traits": { "smithy.api#documentation": "

Specifies a query to retrieve training metrics from SageMaker.

" } }, "com.amazonaws.sagemakermetrics#MetricQueryList": { "type": "list", "member": { "target": "com.amazonaws.sagemakermetrics#MetricQuery" }, "traits": { "smithy.api#length": { "min": 1, "max": 100 } } }, "com.amazonaws.sagemakermetrics#MetricQueryResult": { "type": "structure", "members": { "Status": { "target": "com.amazonaws.sagemakermetrics#MetricQueryResultStatus", "traits": { "smithy.api#clientOptional": {}, "smithy.api#documentation": "

The status of the metric query.

", "smithy.api#required": {} } }, "Message": { "target": "com.amazonaws.sagemakermetrics#Message", "traits": { "smithy.api#documentation": "

A message describing the status of the metric query.

" } }, "XAxisValues": { "target": "com.amazonaws.sagemakermetrics#XAxisValues", "traits": { "smithy.api#clientOptional": {}, "smithy.api#documentation": "

The values for the x-axis of the metrics.

", "smithy.api#required": {} } }, "MetricValues": { "target": "com.amazonaws.sagemakermetrics#MetricValues", "traits": { "smithy.api#clientOptional": {}, "smithy.api#documentation": "

The metric values retrieved by the query.

", "smithy.api#required": {} } } }, "traits": { "smithy.api#documentation": "

The result of a query to retrieve training metrics from SageMaker.

" } }, "com.amazonaws.sagemakermetrics#MetricQueryResultList": { "type": "list", "member": { "target": "com.amazonaws.sagemakermetrics#MetricQueryResult" }, "traits": { "smithy.api#length": { "min": 1, "max": 100 } } }, "com.amazonaws.sagemakermetrics#MetricQueryResultStatus": { "type": "enum", "members": { "COMPLETE": { "target": "smithy.api#Unit", "traits": { "smithy.api#enumValue": "Complete" } }, "TRUNCATED": { "target": "smithy.api#Unit", "traits": { "smithy.api#enumValue": "Truncated" } }, "INTERNAL_ERROR": { "target": "smithy.api#Unit", "traits": { "smithy.api#enumValue": "InternalError" } }, "VALIDATION_ERROR": { "target": "smithy.api#Unit", "traits": { "smithy.api#enumValue": "ValidationError" } } } }, "com.amazonaws.sagemakermetrics#MetricStatistic": { "type": "enum", "members": { "MIN": { "target": "smithy.api#Unit", "traits": { "smithy.api#enumValue": "Min" } }, "MAX": { "target": "smithy.api#Unit", "traits": { "smithy.api#enumValue": "Max" } }, "AVG": { "target": "smithy.api#Unit", "traits": { "smithy.api#enumValue": "Avg" } }, "COUNT": { "target": "smithy.api#Unit", "traits": { "smithy.api#enumValue": "Count" } }, "STD_DEV": { "target": "smithy.api#Unit", "traits": { "smithy.api#enumValue": "StdDev" } }, "LAST": { "target": "smithy.api#Unit", "traits": { "smithy.api#enumValue": "Last" } } } }, "com.amazonaws.sagemakermetrics#MetricValues": { "type": "list", "member": { "target": "com.amazonaws.sagemakermetrics#Double" } }, "com.amazonaws.sagemakermetrics#Period": { "type": "enum", "members": { "ONE_MINUTE": { "target": "smithy.api#Unit", "traits": { "smithy.api#enumValue": "OneMinute" } }, "FIVE_MINUTE": { "target": "smithy.api#Unit", "traits": { "smithy.api#enumValue": "FiveMinute" } }, "ONE_HOUR": { "target": "smithy.api#Unit", "traits": { "smithy.api#enumValue": "OneHour" } }, "ITERATION_NUMBER": { "target": "smithy.api#Unit", "traits": { "smithy.api#enumValue": "IterationNumber" } } } }, "com.amazonaws.sagemakermetrics#PutMetricsErrorCode": { "type": "enum", "members": { "METRIC_LIMIT_EXCEEDED": { "target": "smithy.api#Unit", "traits": { "smithy.api#enumValue": "METRIC_LIMIT_EXCEEDED" } }, "INTERNAL_ERROR": { "target": "smithy.api#Unit", "traits": { "smithy.api#enumValue": "INTERNAL_ERROR" } }, "VALIDATION_ERROR": { "target": "smithy.api#Unit", "traits": { "smithy.api#enumValue": "VALIDATION_ERROR" } }, "CONFLICT_ERROR": { "target": "smithy.api#Unit", "traits": { "smithy.api#enumValue": "CONFLICT_ERROR" } } } }, "com.amazonaws.sagemakermetrics#RawMetricData": { "type": "structure", "members": { "MetricName": { "target": "com.amazonaws.sagemakermetrics#MetricName", "traits": { "smithy.api#clientOptional": {}, "smithy.api#documentation": "

The name of the metric.

", "smithy.api#required": {} } }, "Timestamp": { "target": "com.amazonaws.sagemakermetrics#Timestamp", "traits": { "smithy.api#clientOptional": {}, "smithy.api#documentation": "

The time that the metric was recorded.

", "smithy.api#required": {} } }, "Step": { "target": "com.amazonaws.sagemakermetrics#Step", "traits": { "smithy.api#documentation": "

The metric step (epoch).\n

" } }, "Value": { "target": "com.amazonaws.sagemakermetrics#Double", "traits": { "smithy.api#clientOptional": {}, "smithy.api#documentation": "

The metric value.

", "smithy.api#required": {} } } }, "traits": { "smithy.api#documentation": "

The raw metric data to associate with the resource.

" } }, "com.amazonaws.sagemakermetrics#RawMetricDataList": { "type": "list", "member": { "target": "com.amazonaws.sagemakermetrics#RawMetricData" }, "traits": { "smithy.api#length": { "min": 1, "max": 10 } } }, "com.amazonaws.sagemakermetrics#SageMakerMetricsService": { "type": "service", "version": "2022-09-30", "operations": [ { "target": "com.amazonaws.sagemakermetrics#BatchGetMetrics" }, { "target": "com.amazonaws.sagemakermetrics#BatchPutMetrics" } ], "traits": { "aws.api#service": { "sdkId": "SageMaker Metrics", "arnNamespace": "sagemaker", "cloudFormationName": "SageMakerMetrics", "cloudTrailEventSource": "sagemakermetrics.amazonaws.com", "endpointPrefix": "metrics.sagemaker" }, "aws.auth#sigv4": { "name": "sagemaker" }, "aws.protocols#restJson1": {}, "smithy.api#documentation": "

Contains all data plane API operations and data types for Amazon SageMaker Metrics. \n Use these APIs to put and retrieve (get) features related to your training run.

\n ", "smithy.api#title": "Amazon SageMaker Metrics Service", "smithy.rules#endpointBdd": { "version": "1.1", "parameters": { "Region": { "builtIn": "AWS::Region", "required": false, "documentation": "The AWS region used to dispatch the request.", "type": "string" }, "UseDualStack": { "builtIn": "AWS::UseDualStack", "required": true, "default": false, "documentation": "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", "type": "boolean" }, "UseFIPS": { "builtIn": "AWS::UseFIPS", "required": true, "default": false, "documentation": "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", "type": "boolean" }, "Endpoint": { "builtIn": "SDK::Endpoint", "required": false, "documentation": "Override the endpoint used to send this request", "type": "string" } }, "conditions": [ { "fn": "isSet", "argv": [ { "ref": "Endpoint" } ] }, { "fn": "isSet", "argv": [ { "ref": "Region" } ] }, { "fn": "aws.partition", "argv": [ { "ref": "Region" } ], "assign": "PartitionResult" }, { "fn": "booleanEquals", "argv": [ { "ref": "UseFIPS" }, true ] }, { "fn": "booleanEquals", "argv": [ { "ref": "UseDualStack" }, true ] }, { "fn": "booleanEquals", "argv": [ { "fn": "getAttr", "argv": [ { "ref": "PartitionResult" }, "supportsDualStack" ] }, true ] }, { "fn": "booleanEquals", "argv": [ { "fn": "getAttr", "argv": [ { "ref": "PartitionResult" }, "supportsFIPS" ] }, true ] }, { "fn": "stringEquals", "argv": [ { "fn": "getAttr", "argv": [ { "ref": "PartitionResult" }, "name" ] }, "aws" ] } ], "results": [ { "conditions": [], "error": "Invalid Configuration: FIPS and custom endpoint are not supported", "type": "error" }, { "conditions": [], "error": "Invalid Configuration: Dualstack and custom endpoint are not supported", "type": "error" }, { "conditions": [], "endpoint": { "url": { "ref": "Endpoint" }, "properties": {}, "headers": {} }, "type": "endpoint" }, { "conditions": [], "endpoint": { "url": "https://metrics.sagemaker-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", "properties": {}, "headers": {} }, "type": "endpoint" }, { "conditions": [], "error": "FIPS and DualStack are enabled, but this partition does not support one or both", "type": "error" }, { "conditions": [], "endpoint": { "url": "https://metrics-fips.sagemaker.{Region}.amazonaws.com", "properties": {}, "headers": {} }, "type": "endpoint" }, { "conditions": [], "endpoint": { "url": "https://metrics.sagemaker-fips.{Region}.{PartitionResult#dnsSuffix}", "properties": {}, "headers": {} }, "type": "endpoint" }, { "conditions": [], "error": "FIPS is enabled but this partition does not support FIPS", "type": "error" }, { "conditions": [], "endpoint": { "url": "https://metrics.sagemaker.{Region}.{PartitionResult#dualStackDnsSuffix}", "properties": {}, "headers": {} }, "type": "endpoint" }, { "conditions": [], "error": "DualStack is enabled but this partition does not support DualStack", "type": "error" }, { "conditions": [], "endpoint": { "url": "https://metrics.sagemaker.{Region}.{PartitionResult#dnsSuffix}", "properties": {}, "headers": {} }, "type": "endpoint" }, { "conditions": [], "error": "Invalid Configuration: Missing Region", "type": "error" } ], "root": 2, "nodeCount": 14, "nodes": "/////wAAAAH/////AAAAAAAAAA0AAAADAAAAAQAAAAQF9eEMAAAAAgAAAAUF9eEMAAAAAwAAAAgAAAAGAAAABAAAAAcF9eELAAAABQX14QkF9eEKAAAABAAAAAsAAAAJAAAABgAAAAoF9eEIAAAABwX14QYF9eEHAAAABQAAAAwF9eEFAAAABgX14QQF9eEFAAAAAwX14QEAAAAOAAAABAX14QIF9eED" }, "smithy.rules#endpointRuleSet": { "version": "1.0", "parameters": { "Region": { "builtIn": "AWS::Region", "required": false, "documentation": "The AWS region used to dispatch the request.", "type": "string" }, "UseDualStack": { "builtIn": "AWS::UseDualStack", "required": true, "default": false, "documentation": "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", "type": "boolean" }, "UseFIPS": { "builtIn": "AWS::UseFIPS", "required": true, "default": false, "documentation": "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", "type": "boolean" }, "Endpoint": { "builtIn": "SDK::Endpoint", "required": false, "documentation": "Override the endpoint used to send this request", "type": "string" } }, "rules": [ { "conditions": [ { "fn": "isSet", "argv": [ { "ref": "Endpoint" } ] } ], "rules": [ { "conditions": [ { "fn": "booleanEquals", "argv": [ { "ref": "UseFIPS" }, true ] } ], "error": "Invalid Configuration: FIPS and custom endpoint are not supported", "type": "error" }, { "conditions": [ { "fn": "booleanEquals", "argv": [ { "ref": "UseDualStack" }, true ] } ], "error": "Invalid Configuration: Dualstack and custom endpoint are not supported", "type": "error" }, { "conditions": [], "endpoint": { "url": { "ref": "Endpoint" }, "properties": {}, "headers": {} }, "type": "endpoint" } ], "type": "tree" }, { "conditions": [ { "fn": "isSet", "argv": [ { "ref": "Region" } ] } ], "rules": [ { "conditions": [ { "fn": "aws.partition", "argv": [ { "ref": "Region" } ], "assign": "PartitionResult" } ], "rules": [ { "conditions": [ { "fn": "booleanEquals", "argv": [ { "ref": "UseFIPS" }, true ] }, { "fn": "booleanEquals", "argv": [ { "ref": "UseDualStack" }, true ] } ], "rules": [ { "conditions": [ { "fn": "booleanEquals", "argv": [ true, { "fn": "getAttr", "argv": [ { "ref": "PartitionResult" }, "supportsFIPS" ] } ] }, { "fn": "booleanEquals", "argv": [ true, { "fn": "getAttr", "argv": [ { "ref": "PartitionResult" }, "supportsDualStack" ] } ] } ], "rules": [ { "conditions": [], "endpoint": { "url": "https://metrics.sagemaker-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", "properties": {}, "headers": {} }, "type": "endpoint" } ], "type": "tree" }, { "conditions": [], "error": "FIPS and DualStack are enabled, but this partition does not support one or both", "type": "error" } ], "type": "tree" }, { "conditions": [ { "fn": "booleanEquals", "argv": [ { "ref": "UseFIPS" }, true ] } ], "rules": [ { "conditions": [ { "fn": "booleanEquals", "argv": [ { "fn": "getAttr", "argv": [ { "ref": "PartitionResult" }, "supportsFIPS" ] }, true ] } ], "rules": [ { "conditions": [ { "fn": "stringEquals", "argv": [ { "fn": "getAttr", "argv": [ { "ref": "PartitionResult" }, "name" ] }, "aws" ] } ], "endpoint": { "url": "https://metrics-fips.sagemaker.{Region}.amazonaws.com", "properties": {}, "headers": {} }, "type": "endpoint" }, { "conditions": [], "endpoint": { "url": "https://metrics.sagemaker-fips.{Region}.{PartitionResult#dnsSuffix}", "properties": {}, "headers": {} }, "type": "endpoint" } ], "type": "tree" }, { "conditions": [], "error": "FIPS is enabled but this partition does not support FIPS", "type": "error" } ], "type": "tree" }, { "conditions": [ { "fn": "booleanEquals", "argv": [ { "ref": "UseDualStack" }, true ] } ], "rules": [ { "conditions": [ { "fn": "booleanEquals", "argv": [ true, { "fn": "getAttr", "argv": [ { "ref": "PartitionResult" }, "supportsDualStack" ] } ] } ], "rules": [ { "conditions": [], "endpoint": { "url": "https://metrics.sagemaker.{Region}.{PartitionResult#dualStackDnsSuffix}", "properties": {}, "headers": {} }, "type": "endpoint" } ], "type": "tree" }, { "conditions": [], "error": "DualStack is enabled but this partition does not support DualStack", "type": "error" } ], "type": "tree" }, { "conditions": [], "endpoint": { "url": "https://metrics.sagemaker.{Region}.{PartitionResult#dnsSuffix}", "properties": {}, "headers": {} }, "type": "endpoint" } ], "type": "tree" } ], "type": "tree" }, { "conditions": [], "error": "Invalid Configuration: Missing Region", "type": "error" } ] }, "smithy.rules#endpointTests": { "testCases": [ { "documentation": "For region af-south-1 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { "url": "https://metrics.sagemaker.af-south-1.amazonaws.com" } }, "params": { "Region": "af-south-1", "UseFIPS": false, "UseDualStack": false } }, { "documentation": "For region ap-east-1 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { "url": "https://metrics.sagemaker.ap-east-1.amazonaws.com" } }, "params": { "Region": "ap-east-1", "UseFIPS": false, "UseDualStack": false } }, { "documentation": "For region ap-northeast-1 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { "url": "https://metrics.sagemaker.ap-northeast-1.amazonaws.com" } }, "params": { "Region": "ap-northeast-1", "UseFIPS": false, "UseDualStack": false } }, { "documentation": "For region ap-northeast-2 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { "url": "https://metrics.sagemaker.ap-northeast-2.amazonaws.com" } }, "params": { "Region": "ap-northeast-2", "UseFIPS": false, "UseDualStack": false } }, { "documentation": "For region ap-northeast-3 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { "url": "https://metrics.sagemaker.ap-northeast-3.amazonaws.com" } }, "params": { "Region": "ap-northeast-3", "UseFIPS": false, "UseDualStack": false } }, { "documentation": "For region ap-south-1 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { "url": "https://metrics.sagemaker.ap-south-1.amazonaws.com" } }, "params": { "Region": "ap-south-1", "UseFIPS": false, "UseDualStack": false } }, { "documentation": "For region ap-south-2 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { "url": "https://metrics.sagemaker.ap-south-2.amazonaws.com" } }, "params": { "Region": "ap-south-2", "UseFIPS": false, "UseDualStack": false } }, { "documentation": "For region ap-southeast-1 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { "url": "https://metrics.sagemaker.ap-southeast-1.amazonaws.com" } }, "params": { "Region": "ap-southeast-1", "UseFIPS": false, "UseDualStack": false } }, { "documentation": "For region ap-southeast-2 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { "url": "https://metrics.sagemaker.ap-southeast-2.amazonaws.com" } }, "params": { "Region": "ap-southeast-2", "UseFIPS": false, "UseDualStack": false } }, { "documentation": "For region ap-southeast-3 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { "url": "https://metrics.sagemaker.ap-southeast-3.amazonaws.com" } }, "params": { "Region": "ap-southeast-3", "UseFIPS": false, "UseDualStack": false } }, { "documentation": "For region ap-southeast-4 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { "url": "https://metrics.sagemaker.ap-southeast-4.amazonaws.com" } }, "params": { "Region": "ap-southeast-4", "UseFIPS": false, "UseDualStack": false } }, { "documentation": "For region ca-central-1 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { "url": "https://metrics.sagemaker.ca-central-1.amazonaws.com" } }, "params": { "Region": "ca-central-1", "UseFIPS": false, "UseDualStack": false } }, { "documentation": "For region ca-central-1 with FIPS enabled and DualStack disabled", "expect": { "endpoint": { "url": "https://metrics-fips.sagemaker.ca-central-1.amazonaws.com" } }, "params": { "Region": "ca-central-1", "UseFIPS": true, "UseDualStack": false } }, { "documentation": "For region ca-west-1 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { "url": "https://metrics.sagemaker.ca-west-1.amazonaws.com" } }, "params": { "Region": "ca-west-1", "UseFIPS": false, "UseDualStack": false } }, { "documentation": "For region ca-west-1 with FIPS enabled and DualStack disabled", "expect": { "endpoint": { "url": "https://metrics-fips.sagemaker.ca-west-1.amazonaws.com" } }, "params": { "Region": "ca-west-1", "UseFIPS": true, "UseDualStack": false } }, { "documentation": "For region eu-central-1 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { "url": "https://metrics.sagemaker.eu-central-1.amazonaws.com" } }, "params": { "Region": "eu-central-1", "UseFIPS": false, "UseDualStack": false } }, { "documentation": "For region eu-central-2 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { "url": "https://metrics.sagemaker.eu-central-2.amazonaws.com" } }, "params": { "Region": "eu-central-2", "UseFIPS": false, "UseDualStack": false } }, { "documentation": "For region eu-north-1 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { "url": "https://metrics.sagemaker.eu-north-1.amazonaws.com" } }, "params": { "Region": "eu-north-1", "UseFIPS": false, "UseDualStack": false } }, { "documentation": "For region eu-south-1 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { "url": "https://metrics.sagemaker.eu-south-1.amazonaws.com" } }, "params": { "Region": "eu-south-1", "UseFIPS": false, "UseDualStack": false } }, { "documentation": "For region eu-south-2 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { "url": "https://metrics.sagemaker.eu-south-2.amazonaws.com" } }, "params": { "Region": "eu-south-2", "UseFIPS": false, "UseDualStack": false } }, { "documentation": "For region eu-west-1 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { "url": "https://metrics.sagemaker.eu-west-1.amazonaws.com" } }, "params": { "Region": "eu-west-1", "UseFIPS": false, "UseDualStack": false } }, { "documentation": "For region eu-west-2 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { "url": "https://metrics.sagemaker.eu-west-2.amazonaws.com" } }, "params": { "Region": "eu-west-2", "UseFIPS": false, "UseDualStack": false } }, { "documentation": "For region eu-west-3 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { "url": "https://metrics.sagemaker.eu-west-3.amazonaws.com" } }, "params": { "Region": "eu-west-3", "UseFIPS": false, "UseDualStack": false } }, { "documentation": "For region il-central-1 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { "url": "https://metrics.sagemaker.il-central-1.amazonaws.com" } }, "params": { "Region": "il-central-1", "UseFIPS": false, "UseDualStack": false } }, { "documentation": "For region me-central-1 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { "url": "https://metrics.sagemaker.me-central-1.amazonaws.com" } }, "params": { "Region": "me-central-1", "UseFIPS": false, "UseDualStack": false } }, { "documentation": "For region me-south-1 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { "url": "https://metrics.sagemaker.me-south-1.amazonaws.com" } }, "params": { "Region": "me-south-1", "UseFIPS": false, "UseDualStack": false } }, { "documentation": "For region sa-east-1 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { "url": "https://metrics.sagemaker.sa-east-1.amazonaws.com" } }, "params": { "Region": "sa-east-1", "UseFIPS": false, "UseDualStack": false } }, { "documentation": "For region us-east-1 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { "url": "https://metrics.sagemaker.us-east-1.amazonaws.com" } }, "params": { "Region": "us-east-1", "UseFIPS": false, "UseDualStack": false } }, { "documentation": "For region us-east-1 with FIPS enabled and DualStack disabled", "expect": { "endpoint": { "url": "https://metrics-fips.sagemaker.us-east-1.amazonaws.com" } }, "params": { "Region": "us-east-1", "UseFIPS": true, "UseDualStack": false } }, { "documentation": "For region us-east-2 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { "url": "https://metrics.sagemaker.us-east-2.amazonaws.com" } }, "params": { "Region": "us-east-2", "UseFIPS": false, "UseDualStack": false } }, { "documentation": "For region us-east-2 with FIPS enabled and DualStack disabled", "expect": { "endpoint": { "url": "https://metrics-fips.sagemaker.us-east-2.amazonaws.com" } }, "params": { "Region": "us-east-2", "UseFIPS": true, "UseDualStack": false } }, { "documentation": "For region us-west-1 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { "url": "https://metrics.sagemaker.us-west-1.amazonaws.com" } }, "params": { "Region": "us-west-1", "UseFIPS": false, "UseDualStack": false } }, { "documentation": "For region us-west-1 with FIPS enabled and DualStack disabled", "expect": { "endpoint": { "url": "https://metrics-fips.sagemaker.us-west-1.amazonaws.com" } }, "params": { "Region": "us-west-1", "UseFIPS": true, "UseDualStack": false } }, { "documentation": "For region us-west-2 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { "url": "https://metrics.sagemaker.us-west-2.amazonaws.com" } }, "params": { "Region": "us-west-2", "UseFIPS": false, "UseDualStack": false } }, { "documentation": "For region us-west-2 with FIPS enabled and DualStack disabled", "expect": { "endpoint": { "url": "https://metrics-fips.sagemaker.us-west-2.amazonaws.com" } }, "params": { "Region": "us-west-2", "UseFIPS": true, "UseDualStack": false } }, { "documentation": "For region us-east-1 with FIPS enabled and DualStack enabled", "expect": { "endpoint": { "url": "https://metrics.sagemaker-fips.us-east-1.api.aws" } }, "params": { "Region": "us-east-1", "UseFIPS": true, "UseDualStack": true } }, { "documentation": "For region us-east-1 with FIPS disabled and DualStack enabled", "expect": { "endpoint": { "url": "https://metrics.sagemaker.us-east-1.api.aws" } }, "params": { "Region": "us-east-1", "UseFIPS": false, "UseDualStack": true } }, { "documentation": "For region cn-north-1 with FIPS enabled and DualStack enabled", "expect": { "endpoint": { "url": "https://metrics.sagemaker-fips.cn-north-1.api.amazonwebservices.com.cn" } }, "params": { "Region": "cn-north-1", "UseFIPS": true, "UseDualStack": true } }, { "documentation": "For region cn-north-1 with FIPS enabled and DualStack disabled", "expect": { "endpoint": { "url": "https://metrics.sagemaker-fips.cn-north-1.amazonaws.com.cn" } }, "params": { "Region": "cn-north-1", "UseFIPS": true, "UseDualStack": false } }, { "documentation": "For region cn-north-1 with FIPS disabled and DualStack enabled", "expect": { "endpoint": { "url": "https://metrics.sagemaker.cn-north-1.api.amazonwebservices.com.cn" } }, "params": { "Region": "cn-north-1", "UseFIPS": false, "UseDualStack": true } }, { "documentation": "For region cn-north-1 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { "url": "https://metrics.sagemaker.cn-north-1.amazonaws.com.cn" } }, "params": { "Region": "cn-north-1", "UseFIPS": false, "UseDualStack": false } }, { "documentation": "For region us-gov-east-1 with FIPS enabled and DualStack enabled", "expect": { "endpoint": { "url": "https://metrics.sagemaker-fips.us-gov-east-1.api.aws" } }, "params": { "Region": "us-gov-east-1", "UseFIPS": true, "UseDualStack": true } }, { "documentation": "For region us-gov-east-1 with FIPS enabled and DualStack disabled", "expect": { "endpoint": { "url": "https://metrics.sagemaker-fips.us-gov-east-1.amazonaws.com" } }, "params": { "Region": "us-gov-east-1", "UseFIPS": true, "UseDualStack": false } }, { "documentation": "For region us-gov-east-1 with FIPS disabled and DualStack enabled", "expect": { "endpoint": { "url": "https://metrics.sagemaker.us-gov-east-1.api.aws" } }, "params": { "Region": "us-gov-east-1", "UseFIPS": false, "UseDualStack": true } }, { "documentation": "For region us-gov-east-1 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { "url": "https://metrics.sagemaker.us-gov-east-1.amazonaws.com" } }, "params": { "Region": "us-gov-east-1", "UseFIPS": false, "UseDualStack": false } }, { "documentation": "For region us-iso-east-1 with FIPS enabled and DualStack disabled", "expect": { "endpoint": { "url": "https://metrics.sagemaker-fips.us-iso-east-1.c2s.ic.gov" } }, "params": { "Region": "us-iso-east-1", "UseFIPS": true, "UseDualStack": false } }, { "documentation": "For region us-iso-east-1 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { "url": "https://metrics.sagemaker.us-iso-east-1.c2s.ic.gov" } }, "params": { "Region": "us-iso-east-1", "UseFIPS": false, "UseDualStack": false } }, { "documentation": "For region us-isob-east-1 with FIPS enabled and DualStack disabled", "expect": { "endpoint": { "url": "https://metrics.sagemaker-fips.us-isob-east-1.sc2s.sgov.gov" } }, "params": { "Region": "us-isob-east-1", "UseFIPS": true, "UseDualStack": false } }, { "documentation": "For region us-isob-east-1 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { "url": "https://metrics.sagemaker.us-isob-east-1.sc2s.sgov.gov" } }, "params": { "Region": "us-isob-east-1", "UseFIPS": false, "UseDualStack": false } }, { "documentation": "For custom endpoint with region set and fips disabled and dualstack disabled", "expect": { "endpoint": { "url": "https://example.com" } }, "params": { "Region": "us-east-1", "UseFIPS": false, "UseDualStack": false, "Endpoint": "https://example.com" } }, { "documentation": "For custom endpoint with region not set and fips disabled and dualstack disabled", "expect": { "endpoint": { "url": "https://example.com" } }, "params": { "UseFIPS": false, "UseDualStack": false, "Endpoint": "https://example.com" } }, { "documentation": "For custom endpoint with fips enabled and dualstack disabled", "expect": { "error": "Invalid Configuration: FIPS and custom endpoint are not supported" }, "params": { "Region": "us-east-1", "UseFIPS": true, "UseDualStack": false, "Endpoint": "https://example.com" } }, { "documentation": "For custom endpoint with fips disabled and dualstack enabled", "expect": { "error": "Invalid Configuration: Dualstack and custom endpoint are not supported" }, "params": { "Region": "us-east-1", "UseFIPS": false, "UseDualStack": true, "Endpoint": "https://example.com" } }, { "documentation": "Missing region", "expect": { "error": "Invalid Configuration: Missing Region" } } ], "version": "1.0" } } }, "com.amazonaws.sagemakermetrics#SageMakerResourceArn": { "type": "string", "traits": { "smithy.api#length": { "min": 0, "max": 2048 }, "smithy.api#pattern": "^arn:aws[a-z\\-]*:sagemaker:[a-z0-9\\-]*:[0-9]{12}:[a-z\\-].*/" } }, "com.amazonaws.sagemakermetrics#Step": { "type": "integer", "traits": { "smithy.api#range": { "min": 0 } } }, "com.amazonaws.sagemakermetrics#Timestamp": { "type": "timestamp" }, "com.amazonaws.sagemakermetrics#XAxisType": { "type": "enum", "members": { "ITERATION_NUMBER": { "target": "smithy.api#Unit", "traits": { "smithy.api#enumValue": "IterationNumber" } }, "TIMESTAMP": { "target": "smithy.api#Unit", "traits": { "smithy.api#enumValue": "Timestamp" } } } }, "com.amazonaws.sagemakermetrics#XAxisValues": { "type": "list", "member": { "target": "com.amazonaws.sagemakermetrics#Long" } } } }