Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions sample/sagemaker-runtime/2017-05-13/service-2.json
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,12 @@
"pattern":"^[a-zA-Z0-9](-*[a-zA-Z0-9])*"
},
"ErrorCode":{"type":"string"},
"FilenameHeader":{
"type":"string",
"max":32,
"min":1,
"pattern":"^(?!.*\\..*\\.)[a-zA-Z0-9][a-zA-Z0-9-_\\.]*$"
},
"Header":{
"type":"string",
"max":1024,
Expand Down Expand Up @@ -193,6 +199,18 @@
"location":"header",
"locationName":"X-Amzn-SageMaker-InputLocation"
},
"S3OutputPathExtension":{
"shape":"S3OutputPathExtensionHeader",
"documentation":"<p>The path extension that is appended to the Amazon S3 output path where the inference response payload is stored.</p>",
"location":"header",
"locationName":"X-Amzn-SageMaker-S3OutputPathExtension"
},
"Filename":{
"shape":"FilenameHeader",
"documentation":"<p>The filename for the inference response payload stored in Amazon S3. If not specified, Amazon SageMaker AI generates a filename based on the inference ID.</p>",
"location":"header",
"locationName":"X-Amzn-SageMaker-Filename"
},
"RequestTTLSeconds":{
"shape":"RequestTTLSecondsHeader",
"documentation":"<p>Maximum age in seconds a request can be in the queue before it is marked as expired. The default is 6 hours, or 21,600 seconds.</p>",
Expand Down Expand Up @@ -537,6 +555,12 @@
"documentation":"<p>A stream of payload parts. Each part contains a portion of the response for a streaming inference request.</p>",
"eventstream":true
},
"S3OutputPathExtensionHeader":{
"type":"string",
"max":512,
"min":1,
"pattern":"^(?!s3:|https:)[a-zA-Z0-9!_.*'()/-]+$"
},
"ServiceUnavailable":{
"type":"structure",
"members":{
Expand Down
345 changes: 339 additions & 6 deletions sample/sagemaker/2017-07-24/service-2.json

Large diffs are not rendered by default.

172 changes: 171 additions & 1 deletion src/sagemaker_core/main/code_injection/shape_dag.py
Original file line number Diff line number Diff line change
Expand Up @@ -3210,6 +3210,8 @@
"type": "string",
},
{"name": "Tags", "shape": "TagList", "type": "list"},
{"name": "S3BucketOwnerAccountId", "shape": "AccountId", "type": "string"},
{"name": "S3BucketOwnerVerification", "shape": "Boolean", "type": "boolean"},
],
"type": "structure",
},
Expand Down Expand Up @@ -6001,6 +6003,8 @@
{"name": "CreatedBy", "shape": "UserContext", "type": "structure"},
{"name": "LastModifiedTime", "shape": "Timestamp", "type": "timestamp"},
{"name": "LastModifiedBy", "shape": "UserContext", "type": "structure"},
{"name": "S3BucketOwnerAccountId", "shape": "AccountId", "type": "string"},
{"name": "S3BucketOwnerVerification", "shape": "Boolean", "type": "boolean"},
],
"type": "structure",
},
Expand Down Expand Up @@ -6830,6 +6834,21 @@
],
"type": "structure",
},
"DescribeTrainingPlanExtensionHistoryRequest": {
"members": [
{"name": "TrainingPlanArn", "shape": "TrainingPlanArn", "type": "string"},
{"name": "NextToken", "shape": "NextToken", "type": "string"},
{"name": "MaxResults", "shape": "MaxResults", "type": "integer"},
],
"type": "structure",
},
"DescribeTrainingPlanExtensionHistoryResponse": {
"members": [
{"name": "TrainingPlanExtensions", "shape": "TrainingPlanExtensions", "type": "list"},
{"name": "NextToken", "shape": "NextToken", "type": "string"},
],
"type": "structure",
},
"DescribeTrainingPlanRequest": {
"members": [{"name": "TrainingPlanName", "shape": "TrainingPlanName", "type": "string"}],
"type": "structure",
Expand Down Expand Up @@ -7741,6 +7760,22 @@
],
"type": "structure",
},
"ExtendTrainingPlanRequest": {
"members": [
{
"name": "TrainingPlanExtensionOfferingId",
"shape": "TrainingPlanExtensionOfferingId",
"type": "string",
}
],
"type": "structure",
},
"ExtendTrainingPlanResponse": {
"members": [
{"name": "TrainingPlanExtensions", "shape": "TrainingPlanExtensions", "type": "list"}
],
"type": "structure",
},
"FSxLustreConfig": {
"members": [
{"name": "SizeInGiB", "shape": "FSxLustreSizeInGiB", "type": "integer"},
Expand Down Expand Up @@ -8812,6 +8847,21 @@
],
"type": "structure",
},
"InferenceComponentAvailabilityZoneBalance": {
"members": [
{
"name": "EnforcementMode",
"shape": "AvailabilityZoneBalanceEnforcementMode",
"type": "string",
},
{
"name": "MaxImbalance",
"shape": "AvailabilityZoneBalanceMaxImbalance",
"type": "integer",
},
],
"type": "structure",
},
"InferenceComponentCapacitySize": {
"members": [
{"name": "Type", "shape": "InferenceComponentCapacitySizeType", "type": "string"},
Expand Down Expand Up @@ -8909,6 +8959,21 @@
],
"type": "structure",
},
"InferenceComponentSchedulingConfig": {
"members": [
{
"name": "PlacementStrategy",
"shape": "InferenceComponentPlacementStrategy",
"type": "string",
},
{
"name": "AvailabilityZoneBalance",
"shape": "InferenceComponentAvailabilityZoneBalance",
"type": "structure",
},
],
"type": "structure",
},
"InferenceComponentSpecification": {
"members": [
{"name": "ModelName", "shape": "ModelName", "type": "string"},
Expand Down Expand Up @@ -8937,6 +9002,11 @@
"shape": "InferenceComponentDataCacheConfig",
"type": "structure",
},
{
"name": "SchedulingConfig",
"shape": "InferenceComponentSchedulingConfig",
"type": "structure",
},
],
"type": "structure",
},
Expand Down Expand Up @@ -8968,6 +9038,11 @@
"shape": "InferenceComponentDataCacheConfigSummary",
"type": "structure",
},
{
"name": "SchedulingConfig",
"shape": "InferenceComponentSchedulingConfig",
"type": "structure",
},
],
"type": "structure",
},
Expand Down Expand Up @@ -9255,6 +9330,12 @@
{"name": "CustomAttributes", "shape": "CustomAttributesHeader", "type": "string"},
{"name": "InferenceId", "shape": "InferenceId", "type": "string"},
{"name": "InputLocation", "shape": "InputLocationHeader", "type": "string"},
{
"name": "S3OutputPathExtension",
"shape": "S3OutputPathExtensionHeader",
"type": "string",
},
{"name": "Filename", "shape": "FilenameHeader", "type": "string"},
{"name": "RequestTTLSeconds", "shape": "RequestTTLSecondsHeader", "type": "integer"},
{
"name": "InvocationTimeoutSeconds",
Expand Down Expand Up @@ -13921,6 +14002,31 @@
"shape": "ManagedInstanceScalingMaxInstanceCount",
"type": "integer",
},
{
"name": "ScaleInPolicy",
"shape": "ProductionVariantManagedInstanceScalingScaleInPolicy",
"type": "structure",
},
],
"type": "structure",
},
"ProductionVariantManagedInstanceScalingScaleInPolicy": {
"members": [
{
"name": "Strategy",
"shape": "ManagedInstanceScalingScaleInStrategy",
"type": "string",
},
{
"name": "MaximumStepSize",
"shape": "ManagedInstanceScalingMaximumStepSize",
"type": "integer",
},
{
"name": "CooldownInMinutes",
"shape": "ManagedInstanceScalingCooldownInMinutes",
"type": "integer",
},
],
"type": "structure",
},
Expand Down Expand Up @@ -14574,6 +14680,8 @@
{"name": "DurationMinutes", "shape": "ReservedCapacityDurationMinutes", "type": "long"},
{"name": "StartTime", "shape": "Timestamp", "type": "timestamp"},
{"name": "EndTime", "shape": "Timestamp", "type": "timestamp"},
{"name": "ExtensionStartTime", "shape": "Timestamp", "type": "timestamp"},
{"name": "ExtensionEndTime", "shape": "Timestamp", "type": "timestamp"},
],
"type": "structure",
},
Expand Down Expand Up @@ -14994,12 +15102,18 @@
{"name": "EndTimeBefore", "shape": "Timestamp", "type": "timestamp"},
{"name": "DurationHours", "shape": "TrainingPlanDurationHoursInput", "type": "long"},
{"name": "TargetResources", "shape": "SageMakerResourceNames", "type": "list"},
{"name": "TrainingPlanArn", "shape": "String", "type": "string"},
],
"type": "structure",
},
"SearchTrainingPlanOfferingsResponse": {
"members": [
{"name": "TrainingPlanOfferings", "shape": "TrainingPlanOfferings", "type": "list"}
{"name": "TrainingPlanOfferings", "shape": "TrainingPlanOfferings", "type": "list"},
{
"name": "TrainingPlanExtensionOfferings",
"shape": "TrainingPlanExtensionOfferings",
"type": "list",
},
],
"type": "structure",
},
Expand Down Expand Up @@ -15978,6 +16092,60 @@
"member_type": "string",
"type": "list",
},
"TrainingPlanExtension": {
"members": [
{
"name": "TrainingPlanExtensionOfferingId",
"shape": "TrainingPlanExtensionOfferingId",
"type": "string",
},
{"name": "ExtendedAt", "shape": "Timestamp", "type": "timestamp"},
{"name": "StartDate", "shape": "Timestamp", "type": "timestamp"},
{"name": "EndDate", "shape": "Timestamp", "type": "timestamp"},
{"name": "Status", "shape": "String256", "type": "string"},
{"name": "PaymentStatus", "shape": "String256", "type": "string"},
{"name": "AvailabilityZone", "shape": "String256", "type": "string"},
{"name": "AvailabilityZoneId", "shape": "AvailabilityZoneId", "type": "string"},
{
"name": "DurationHours",
"shape": "TrainingPlanExtensionDurationHours",
"type": "integer",
},
{"name": "UpfrontFee", "shape": "String256", "type": "string"},
{"name": "CurrencyCode", "shape": "CurrencyCode", "type": "string"},
],
"type": "structure",
},
"TrainingPlanExtensionOffering": {
"members": [
{
"name": "TrainingPlanExtensionOfferingId",
"shape": "TrainingPlanExtensionOfferingId",
"type": "string",
},
{"name": "AvailabilityZone", "shape": "String256", "type": "string"},
{"name": "StartDate", "shape": "Timestamp", "type": "timestamp"},
{"name": "EndDate", "shape": "Timestamp", "type": "timestamp"},
{
"name": "DurationHours",
"shape": "TrainingPlanExtensionDurationHours",
"type": "integer",
},
{"name": "UpfrontFee", "shape": "String256", "type": "string"},
{"name": "CurrencyCode", "shape": "CurrencyCode", "type": "string"},
],
"type": "structure",
},
"TrainingPlanExtensionOfferings": {
"member_shape": "TrainingPlanExtensionOffering",
"member_type": "structure",
"type": "list",
},
"TrainingPlanExtensions": {
"member_shape": "TrainingPlanExtension",
"member_type": "structure",
"type": "list",
},
"TrainingPlanFilter": {
"members": [
{"name": "Name", "shape": "TrainingPlanFilterName", "type": "string"},
Expand Down Expand Up @@ -17024,6 +17192,8 @@
"shape": "WeeklyMaintenanceWindowStart",
"type": "string",
},
{"name": "S3BucketOwnerAccountId", "shape": "AccountId", "type": "string"},
{"name": "S3BucketOwnerVerification", "shape": "Boolean", "type": "boolean"},
],
"type": "structure",
},
Expand Down
6 changes: 5 additions & 1 deletion src/sagemaker_core/main/config_schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -467,7 +467,11 @@
},
"MlflowTrackingServer": {
"type": "object",
"properties": {"role_arn": {"type": "string"}},
"properties": {
"role_arn": {"type": "string"},
"s3_bucket_owner_account_id": {"type": "string"},
"s3_bucket_owner_verification": {"type": "boolean"},
},
},
"Model": {
"type": "object",
Expand Down
Loading
Loading