Skip to content

Commit

Permalink
feat(client-sagemaker): This release will have ValidationException th…
Browse files Browse the repository at this point in the history
…rown if certain invalid app types are provided. The release will also throw ValidationException if more than 10 account ids are provided in VpcOnlyTrustedAccounts.
  • Loading branch information
awstools committed Jan 14, 2024
1 parent bbe7c76 commit b548c9f
Show file tree
Hide file tree
Showing 21 changed files with 38 additions and 81 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ export interface BatchDescribeModelPackageCommandOutput extends BatchDescribeMod
* // FrameworkVersion: "STRING_VALUE",
* // NearestModelName: "STRING_VALUE",
* // AdditionalS3DataSource: { // AdditionalS3DataSource
* // S3DataType: "S3Object", // required
* // S3DataType: "S3Object" || "S3Prefix", // required
* // S3Uri: "STRING_VALUE", // required
* // CompressionType: "None" || "Gzip",
* // },
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ export interface CreateAlgorithmCommandOutput extends CreateAlgorithmOutput, __M
* },
* ],
* AdditionalS3DataSource: { // AdditionalS3DataSource
* S3DataType: "S3Object", // required
* S3DataType: "S3Object" || "S3Prefix", // required
* S3Uri: "STRING_VALUE", // required
* CompressionType: "None" || "Gzip",
* },
Expand All @@ -122,7 +122,7 @@ export interface CreateAlgorithmCommandOutput extends CreateAlgorithmOutput, __M
* FrameworkVersion: "STRING_VALUE",
* NearestModelName: "STRING_VALUE",
* AdditionalS3DataSource: {
* S3DataType: "S3Object", // required
* S3DataType: "S3Object" || "S3Prefix", // required
* S3Uri: "STRING_VALUE", // required
* CompressionType: "None" || "Gzip",
* },
Expand Down
2 changes: 1 addition & 1 deletion clients/client-sagemaker/src/commands/CreateAppCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export interface CreateAppCommandOutput extends CreateAppResponse, __MetadataBea
* DomainId: "STRING_VALUE", // required
* UserProfileName: "STRING_VALUE",
* SpaceName: "STRING_VALUE",
* AppType: "JupyterServer" || "KernelGateway" || "DetailedProfiler" || "TensorBoard" || "VSCode" || "Savitur" || "CodeEditor" || "JupyterLab" || "RStudioServerPro" || "RSession" || "RSessionGateway" || "Canvas" || "DatasetManager" || "SageMakerLite" || "Local", // required
* AppType: "JupyterServer" || "KernelGateway" || "DetailedProfiler" || "TensorBoard" || "CodeEditor" || "JupyterLab" || "RStudioServerPro" || "RSessionGateway" || "Canvas", // required
* AppName: "STRING_VALUE", // required
* Tags: [ // TagList
* { // Tag
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ export interface CreateModelPackageCommandOutput extends CreateModelPackageOutpu
* FrameworkVersion: "STRING_VALUE",
* NearestModelName: "STRING_VALUE",
* AdditionalS3DataSource: { // AdditionalS3DataSource
* S3DataType: "S3Object", // required
* S3DataType: "S3Object" || "S3Prefix", // required
* S3Uri: "STRING_VALUE", // required
* CompressionType: "None" || "Gzip",
* },
Expand Down Expand Up @@ -248,7 +248,7 @@ export interface CreateModelPackageCommandOutput extends CreateModelPackageOutpu
* FrameworkVersion: "STRING_VALUE",
* NearestModelName: "STRING_VALUE",
* AdditionalS3DataSource: {
* S3DataType: "S3Object", // required
* S3DataType: "S3Object" || "S3Prefix", // required
* S3Uri: "STRING_VALUE", // required
* CompressionType: "None" || "Gzip",
* },
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ export interface CreateSpaceCommandOutput extends CreateSpaceResponse, __Metadat
* },
* ],
* },
* AppType: "JupyterServer" || "KernelGateway" || "DetailedProfiler" || "TensorBoard" || "VSCode" || "Savitur" || "CodeEditor" || "JupyterLab" || "RStudioServerPro" || "RSession" || "RSessionGateway" || "Canvas" || "DatasetManager" || "SageMakerLite" || "Local",
* AppType: "JupyterServer" || "KernelGateway" || "DetailedProfiler" || "TensorBoard" || "CodeEditor" || "JupyterLab" || "RStudioServerPro" || "RSessionGateway" || "Canvas",
* SpaceStorageSettings: { // SpaceStorageSettings
* EbsStorageSettings: { // EbsStorageSettings
* EbsVolumeSizeInGb: Number("int"), // required
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export interface CreateStudioLifecycleConfigCommandOutput
* const input = { // CreateStudioLifecycleConfigRequest
* StudioLifecycleConfigName: "STRING_VALUE", // required
* StudioLifecycleConfigContent: "STRING_VALUE", // required
* StudioLifecycleConfigAppType: "JupyterServer" || "KernelGateway" || "VSCode" || "Savitur" || "CodeEditor" || "JupyterLab", // required
* StudioLifecycleConfigAppType: "JupyterServer" || "KernelGateway" || "CodeEditor" || "JupyterLab", // required
* Tags: [ // TagList
* { // Tag
* Key: "STRING_VALUE", // required
Expand Down
2 changes: 1 addition & 1 deletion clients/client-sagemaker/src/commands/DeleteAppCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ export interface DeleteAppCommandOutput extends __MetadataBearer {}
* DomainId: "STRING_VALUE", // required
* UserProfileName: "STRING_VALUE",
* SpaceName: "STRING_VALUE",
* AppType: "JupyterServer" || "KernelGateway" || "DetailedProfiler" || "TensorBoard" || "VSCode" || "Savitur" || "CodeEditor" || "JupyterLab" || "RStudioServerPro" || "RSession" || "RSessionGateway" || "Canvas" || "DatasetManager" || "SageMakerLite" || "Local", // required
* AppType: "JupyterServer" || "KernelGateway" || "DetailedProfiler" || "TensorBoard" || "CodeEditor" || "JupyterLab" || "RStudioServerPro" || "RSessionGateway" || "Canvas", // required
* AppName: "STRING_VALUE", // required
* };
* const command = new DeleteAppCommand(input);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ export interface DescribeAlgorithmCommandOutput extends DescribeAlgorithmOutput,
* // },
* // ],
* // AdditionalS3DataSource: { // AdditionalS3DataSource
* // S3DataType: "S3Object", // required
* // S3DataType: "S3Object" || "S3Prefix", // required
* // S3Uri: "STRING_VALUE", // required
* // CompressionType: "None" || "Gzip",
* // },
Expand All @@ -129,7 +129,7 @@ export interface DescribeAlgorithmCommandOutput extends DescribeAlgorithmOutput,
* // FrameworkVersion: "STRING_VALUE",
* // NearestModelName: "STRING_VALUE",
* // AdditionalS3DataSource: {
* // S3DataType: "S3Object", // required
* // S3DataType: "S3Object" || "S3Prefix", // required
* // S3Uri: "STRING_VALUE", // required
* // CompressionType: "None" || "Gzip",
* // },
Expand Down
4 changes: 2 additions & 2 deletions clients/client-sagemaker/src/commands/DescribeAppCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,14 +39,14 @@ export interface DescribeAppCommandOutput extends DescribeAppResponse, __Metadat
* DomainId: "STRING_VALUE", // required
* UserProfileName: "STRING_VALUE",
* SpaceName: "STRING_VALUE",
* AppType: "JupyterServer" || "KernelGateway" || "DetailedProfiler" || "TensorBoard" || "VSCode" || "Savitur" || "CodeEditor" || "JupyterLab" || "RStudioServerPro" || "RSession" || "RSessionGateway" || "Canvas" || "DatasetManager" || "SageMakerLite" || "Local", // required
* AppType: "JupyterServer" || "KernelGateway" || "DetailedProfiler" || "TensorBoard" || "CodeEditor" || "JupyterLab" || "RStudioServerPro" || "RSessionGateway" || "Canvas", // required
* AppName: "STRING_VALUE", // required
* };
* const command = new DescribeAppCommand(input);
* const response = await client.send(command);
* // { // DescribeAppResponse
* // AppArn: "STRING_VALUE",
* // AppType: "JupyterServer" || "KernelGateway" || "DetailedProfiler" || "TensorBoard" || "VSCode" || "Savitur" || "CodeEditor" || "JupyterLab" || "RStudioServerPro" || "RSession" || "RSessionGateway" || "Canvas" || "DatasetManager" || "SageMakerLite" || "Local",
* // AppType: "JupyterServer" || "KernelGateway" || "DetailedProfiler" || "TensorBoard" || "CodeEditor" || "JupyterLab" || "RStudioServerPro" || "RSessionGateway" || "Canvas",
* // AppName: "STRING_VALUE",
* // DomainId: "STRING_VALUE",
* // UserProfileName: "STRING_VALUE",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ export interface DescribeModelPackageCommandOutput extends DescribeModelPackageO
* // FrameworkVersion: "STRING_VALUE",
* // NearestModelName: "STRING_VALUE",
* // AdditionalS3DataSource: { // AdditionalS3DataSource
* // S3DataType: "S3Object", // required
* // S3DataType: "S3Object" || "S3Prefix", // required
* // S3Uri: "STRING_VALUE", // required
* // CompressionType: "None" || "Gzip",
* // },
Expand Down Expand Up @@ -272,7 +272,7 @@ export interface DescribeModelPackageCommandOutput extends DescribeModelPackageO
* // FrameworkVersion: "STRING_VALUE",
* // NearestModelName: "STRING_VALUE",
* // AdditionalS3DataSource: {
* // S3DataType: "S3Object", // required
* // S3DataType: "S3Object" || "S3Prefix", // required
* // S3Uri: "STRING_VALUE", // required
* // CompressionType: "None" || "Gzip",
* // },
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ export interface DescribeSpaceCommandOutput extends DescribeSpaceResponse, __Met
* // },
* // ],
* // },
* // AppType: "JupyterServer" || "KernelGateway" || "DetailedProfiler" || "TensorBoard" || "VSCode" || "Savitur" || "CodeEditor" || "JupyterLab" || "RStudioServerPro" || "RSession" || "RSessionGateway" || "Canvas" || "DatasetManager" || "SageMakerLite" || "Local",
* // AppType: "JupyterServer" || "KernelGateway" || "DetailedProfiler" || "TensorBoard" || "CodeEditor" || "JupyterLab" || "RStudioServerPro" || "RSessionGateway" || "Canvas",
* // SpaceStorageSettings: { // SpaceStorageSettings
* // EbsStorageSettings: { // EbsStorageSettings
* // EbsVolumeSizeInGb: Number("int"), // required
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ export interface DescribeStudioLifecycleConfigCommandOutput
* // CreationTime: new Date("TIMESTAMP"),
* // LastModifiedTime: new Date("TIMESTAMP"),
* // StudioLifecycleConfigContent: "STRING_VALUE",
* // StudioLifecycleConfigAppType: "JupyterServer" || "KernelGateway" || "VSCode" || "Savitur" || "CodeEditor" || "JupyterLab",
* // StudioLifecycleConfigAppType: "JupyterServer" || "KernelGateway" || "CodeEditor" || "JupyterLab",
* // };
*
* ```
Expand Down
2 changes: 1 addition & 1 deletion clients/client-sagemaker/src/commands/ListAppsCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ export interface ListAppsCommandOutput extends ListAppsResponse, __MetadataBeare
* // DomainId: "STRING_VALUE",
* // UserProfileName: "STRING_VALUE",
* // SpaceName: "STRING_VALUE",
* // AppType: "JupyterServer" || "KernelGateway" || "DetailedProfiler" || "TensorBoard" || "VSCode" || "Savitur" || "CodeEditor" || "JupyterLab" || "RStudioServerPro" || "RSession" || "RSessionGateway" || "Canvas" || "DatasetManager" || "SageMakerLite" || "Local",
* // AppType: "JupyterServer" || "KernelGateway" || "DetailedProfiler" || "TensorBoard" || "CodeEditor" || "JupyterLab" || "RStudioServerPro" || "RSessionGateway" || "Canvas",
* // AppName: "STRING_VALUE",
* // Status: "Deleted" || "Deleting" || "Failed" || "InService" || "Pending",
* // CreationTime: new Date("TIMESTAMP"),
Expand Down
2 changes: 1 addition & 1 deletion clients/client-sagemaker/src/commands/ListSpacesCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ export interface ListSpacesCommandOutput extends ListSpacesResponse, __MetadataB
* // CreationTime: new Date("TIMESTAMP"),
* // LastModifiedTime: new Date("TIMESTAMP"),
* // SpaceSettingsSummary: { // SpaceSettingsSummary
* // AppType: "JupyterServer" || "KernelGateway" || "DetailedProfiler" || "TensorBoard" || "VSCode" || "Savitur" || "CodeEditor" || "JupyterLab" || "RStudioServerPro" || "RSession" || "RSessionGateway" || "Canvas" || "DatasetManager" || "SageMakerLite" || "Local",
* // AppType: "JupyterServer" || "KernelGateway" || "DetailedProfiler" || "TensorBoard" || "CodeEditor" || "JupyterLab" || "RStudioServerPro" || "RSessionGateway" || "Canvas",
* // SpaceStorageSettings: { // SpaceStorageSettings
* // EbsStorageSettings: { // EbsStorageSettings
* // EbsVolumeSizeInGb: Number("int"), // required
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ export interface ListStudioLifecycleConfigsCommandOutput extends ListStudioLifec
* MaxResults: Number("int"),
* NextToken: "STRING_VALUE",
* NameContains: "STRING_VALUE",
* AppTypeEquals: "JupyterServer" || "KernelGateway" || "VSCode" || "Savitur" || "CodeEditor" || "JupyterLab",
* AppTypeEquals: "JupyterServer" || "KernelGateway" || "CodeEditor" || "JupyterLab",
* CreationTimeBefore: new Date("TIMESTAMP"),
* CreationTimeAfter: new Date("TIMESTAMP"),
* ModifiedTimeBefore: new Date("TIMESTAMP"),
Expand All @@ -57,7 +57,7 @@ export interface ListStudioLifecycleConfigsCommandOutput extends ListStudioLifec
* // StudioLifecycleConfigName: "STRING_VALUE",
* // CreationTime: new Date("TIMESTAMP"),
* // LastModifiedTime: new Date("TIMESTAMP"),
* // StudioLifecycleConfigAppType: "JupyterServer" || "KernelGateway" || "VSCode" || "Savitur" || "CodeEditor" || "JupyterLab",
* // StudioLifecycleConfigAppType: "JupyterServer" || "KernelGateway" || "CodeEditor" || "JupyterLab",
* // },
* // ],
* // };
Expand Down
4 changes: 2 additions & 2 deletions clients/client-sagemaker/src/commands/SearchCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1099,7 +1099,7 @@ export interface SearchCommandOutput extends SearchResponse, __MetadataBearer {}
* // FrameworkVersion: "STRING_VALUE",
* // NearestModelName: "STRING_VALUE",
* // AdditionalS3DataSource: { // AdditionalS3DataSource
* // S3DataType: "S3Object", // required
* // S3DataType: "S3Object" || "S3Prefix", // required
* // S3Uri: "STRING_VALUE", // required
* // CompressionType: "None" || "Gzip",
* // },
Expand Down Expand Up @@ -1255,7 +1255,7 @@ export interface SearchCommandOutput extends SearchResponse, __MetadataBearer {}
* // FrameworkVersion: "STRING_VALUE",
* // NearestModelName: "STRING_VALUE",
* // AdditionalS3DataSource: {
* // S3DataType: "S3Object", // required
* // S3DataType: "S3Object" || "S3Prefix", // required
* // S3Uri: "STRING_VALUE", // required
* // CompressionType: "None" || "Gzip",
* // },
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ export interface UpdateModelPackageCommandOutput extends UpdateModelPackageOutpu
* FrameworkVersion: "STRING_VALUE",
* NearestModelName: "STRING_VALUE",
* AdditionalS3DataSource: { // AdditionalS3DataSource
* S3DataType: "S3Object", // required
* S3DataType: "S3Object" || "S3Prefix", // required
* S3Uri: "STRING_VALUE", // required
* CompressionType: "None" || "Gzip",
* },
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ export interface UpdateSpaceCommandOutput extends UpdateSpaceResponse, __Metadat
* },
* ],
* },
* AppType: "JupyterServer" || "KernelGateway" || "DetailedProfiler" || "TensorBoard" || "VSCode" || "Savitur" || "CodeEditor" || "JupyterLab" || "RStudioServerPro" || "RSession" || "RSessionGateway" || "Canvas" || "DatasetManager" || "SageMakerLite" || "Local",
* AppType: "JupyterServer" || "KernelGateway" || "DetailedProfiler" || "TensorBoard" || "CodeEditor" || "JupyterLab" || "RStudioServerPro" || "RSessionGateway" || "Canvas",
* SpaceStorageSettings: { // SpaceStorageSettings
* EbsStorageSettings: { // EbsStorageSettings
* EbsVolumeSizeInGb: Number("int"), // required
Expand Down
7 changes: 1 addition & 6 deletions clients/client-sagemaker/src/models/models_0.ts
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,7 @@ export type CompressionType = (typeof CompressionType)[keyof typeof CompressionT
*/
export const AdditionalS3DataSourceDataType = {
S3OBJECT: "S3Object",
S3PREFIX: "S3Prefix",
} as const;

/**
Expand Down Expand Up @@ -3861,19 +3862,13 @@ export interface AnnotationConsolidationConfig {
export const AppType = {
Canvas: "Canvas",
CodeEditor: "CodeEditor",
DatasetManager: "DatasetManager",
DetailedProfiler: "DetailedProfiler",
JupyterLab: "JupyterLab",
JupyterServer: "JupyterServer",
KernelGateway: "KernelGateway",
Local: "Local",
RSession: "RSession",
RSessionGateway: "RSessionGateway",
RStudioServerPro: "RStudioServerPro",
SageMakerLite: "SageMakerLite",
Savitur: "Savitur",
TensorBoard: "TensorBoard",
VSCode: "VSCode",
} as const;

/**
Expand Down
2 changes: 0 additions & 2 deletions clients/client-sagemaker/src/models/models_1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11698,8 +11698,6 @@ export const StudioLifecycleConfigAppType = {
JupyterLab: "JupyterLab",
JupyterServer: "JupyterServer",
KernelGateway: "KernelGateway",
Savitur: "Savitur",
VSCode: "VSCode",
} as const;

/**
Expand Down
60 changes: 12 additions & 48 deletions codegen/sdk-codegen/aws-models/sagemaker.json
Original file line number Diff line number Diff line change
Expand Up @@ -423,6 +423,12 @@
"traits": {
"smithy.api#enumValue": "S3Object"
}
},
"S3PREFIX": {
"target": "smithy.api#Unit",
"traits": {
"smithy.api#enumValue": "S3Prefix"
}
}
}
},
Expand Down Expand Up @@ -1554,18 +1560,6 @@
"smithy.api#enumValue": "TensorBoard"
}
},
"VSCode": {
"target": "smithy.api#Unit",
"traits": {
"smithy.api#enumValue": "VSCode"
}
},
"Savitur": {
"target": "smithy.api#Unit",
"traits": {
"smithy.api#enumValue": "Savitur"
}
},
"CodeEditor": {
"target": "smithy.api#Unit",
"traits": {
Expand All @@ -1584,12 +1578,6 @@
"smithy.api#enumValue": "RStudioServerPro"
}
},
"RSession": {
"target": "smithy.api#Unit",
"traits": {
"smithy.api#enumValue": "RSession"
}
},
"RSessionGateway": {
"target": "smithy.api#Unit",
"traits": {
Expand All @@ -1601,24 +1589,6 @@
"traits": {
"smithy.api#enumValue": "Canvas"
}
},
"DatasetManager": {
"target": "smithy.api#Unit",
"traits": {
"smithy.api#enumValue": "DatasetManager"
}
},
"SageMakerLite": {
"target": "smithy.api#Unit",
"traits": {
"smithy.api#enumValue": "SageMakerLite"
}
},
"Local": {
"target": "smithy.api#Unit",
"traits": {
"smithy.api#enumValue": "Local"
}
}
}
},
Expand Down Expand Up @@ -58215,18 +58185,6 @@
"smithy.api#enumValue": "KernelGateway"
}
},
"VSCode": {
"target": "smithy.api#Unit",
"traits": {
"smithy.api#enumValue": "VSCode"
}
},
"Savitur": {
"target": "smithy.api#Unit",
"traits": {
"smithy.api#enumValue": "Savitur"
}
},
"CodeEditor": {
"target": "smithy.api#Unit",
"traits": {
Expand Down Expand Up @@ -65601,6 +65559,12 @@
"type": "list",
"member": {
"target": "com.amazonaws.sagemaker#AccountId"
},
"traits": {
"smithy.api#length": {
"min": 0,
"max": 10
}
}
},
"com.amazonaws.sagemaker#VpcSecurityGroupIds": {
Expand Down

0 comments on commit b548c9f

Please sign in to comment.