Skip to content

Commit 16531e4

Browse files
author
awstools
committed
feat(client-sagemaker): Amazon SageMaker Studio now supports Docker access from within app container
1 parent 5e8a193 commit 16531e4

File tree

10 files changed

+182
-69
lines changed

10 files changed

+182
-69
lines changed

clients/client-sagemaker/src/commands/CreateDomainCommand.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -246,6 +246,12 @@ export interface CreateDomainCommandOutput extends CreateDomainResponse, __Metad
246246
* DefaultResourceSpec: "<ResourceSpec>",
247247
* },
248248
* ExecutionRoleIdentityConfig: "USER_PROFILE_NAME" || "DISABLED",
249+
* DockerSettings: { // DockerSettings
250+
* EnableDockerAccess: "ENABLED" || "DISABLED",
251+
* VpcOnlyTrustedAccounts: [ // VpcOnlyTrustedAccounts
252+
* "STRING_VALUE",
253+
* ],
254+
* },
249255
* },
250256
* SubnetIds: [ // Subnets // required
251257
* "STRING_VALUE",

clients/client-sagemaker/src/commands/DescribeDomainCommand.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -217,6 +217,12 @@ export interface DescribeDomainCommandOutput extends DescribeDomainResponse, __M
217217
* // DefaultResourceSpec: "<ResourceSpec>",
218218
* // },
219219
* // ExecutionRoleIdentityConfig: "USER_PROFILE_NAME" || "DISABLED",
220+
* // DockerSettings: { // DockerSettings
221+
* // EnableDockerAccess: "ENABLED" || "DISABLED",
222+
* // VpcOnlyTrustedAccounts: [ // VpcOnlyTrustedAccounts
223+
* // "STRING_VALUE",
224+
* // ],
225+
* // },
220226
* // },
221227
* // AppNetworkAccessType: "PublicInternetOnly" || "VpcOnly",
222228
* // HomeEfsFileSystemKmsKeyId: "STRING_VALUE",

clients/client-sagemaker/src/commands/DescribeTrainingJobCommand.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,7 @@ import { Command as $Command } from "@smithy/smithy-client";
55
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
66

77
import { commonParams } from "../endpoint/EndpointParameters";
8-
import { DescribeTrainingJobRequest } from "../models/models_2";
9-
import { DescribeTrainingJobResponse } from "../models/models_3";
8+
import { DescribeTrainingJobRequest, DescribeTrainingJobResponse } from "../models/models_3";
109
import { de_DescribeTrainingJobCommand, se_DescribeTrainingJobCommand } from "../protocols/Aws_json1_1";
1110
import { SageMakerClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../SageMakerClient";
1211

clients/client-sagemaker/src/commands/UpdateDomainCommand.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -201,6 +201,12 @@ export interface UpdateDomainCommandOutput extends UpdateDomainResponse, __Metad
201201
* SecurityGroupIds: [ // DomainSecurityGroupIds
202202
* "STRING_VALUE",
203203
* ],
204+
* DockerSettings: { // DockerSettings
205+
* EnableDockerAccess: "ENABLED" || "DISABLED",
206+
* VpcOnlyTrustedAccounts: [ // VpcOnlyTrustedAccounts
207+
* "STRING_VALUE",
208+
* ],
209+
* },
204210
* },
205211
* AppSecurityGroupManagement: "Service" || "Customer",
206212
* DefaultSpaceSettings: { // DefaultSpaceSettings

clients/client-sagemaker/src/models/models_1.ts

Lines changed: 25 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ import {
3838
ContextSource,
3939
ContinuousParameterRange,
4040
ConvergenceDetected,
41+
FeatureStatus,
4142
HyperParameterScalingType,
4243
HyperParameterTuningJobObjective,
4344
InferenceSpecification,
@@ -1275,6 +1276,24 @@ export interface UserSettings {
12751276
CustomFileSystemConfigs?: CustomFileSystemConfig[];
12761277
}
12771278

1279+
/**
1280+
* @public
1281+
* <p>A collection of settings that configure the domain's Docker interaction.</p>
1282+
*/
1283+
export interface DockerSettings {
1284+
/**
1285+
* @public
1286+
* <p>Indicates whether the domain can access Docker.</p>
1287+
*/
1288+
EnableDockerAccess?: FeatureStatus;
1289+
1290+
/**
1291+
* @public
1292+
* <p>The list of Amazon Web Services accounts that are trusted when the domain is created in VPC-only mode.</p>
1293+
*/
1294+
VpcOnlyTrustedAccounts?: string[];
1295+
}
1296+
12781297
/**
12791298
* @public
12801299
* @enum
@@ -1349,6 +1368,12 @@ export interface DomainSettings {
13491368
* <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp_control-access_monitor.html">sts:SourceIdentity key</a>.</p>
13501369
*/
13511370
ExecutionRoleIdentityConfig?: ExecutionRoleIdentityConfig;
1371+
1372+
/**
1373+
* @public
1374+
* <p>A collection of settings that configure the domain's Docker interaction.</p>
1375+
*/
1376+
DockerSettings?: DockerSettings;
13521377
}
13531378

13541379
/**
@@ -11752,43 +11777,6 @@ export interface InfraCheckConfig {
1175211777
EnableInfraCheck?: boolean;
1175311778
}
1175411779

11755-
/**
11756-
* @public
11757-
* <p>Configuration information for Amazon SageMaker Debugger system monitoring, framework profiling, and
11758-
* storage paths.</p>
11759-
*/
11760-
export interface ProfilerConfig {
11761-
/**
11762-
* @public
11763-
* <p>Path to Amazon S3 storage location for system and framework metrics.</p>
11764-
*/
11765-
S3OutputPath?: string;
11766-
11767-
/**
11768-
* @public
11769-
* <p>A time interval for capturing system metrics in milliseconds. Available values are
11770-
* 100, 200, 500, 1000 (1 second), 5000 (5 seconds), and 60000 (1 minute) milliseconds. The default value is 500 milliseconds.</p>
11771-
*/
11772-
ProfilingIntervalInMilliseconds?: number;
11773-
11774-
/**
11775-
* @public
11776-
* <p>Configuration information for capturing framework metrics. Available key strings for different profiling options are
11777-
* <code>DetailedProfilingConfig</code>, <code>PythonProfilingConfig</code>, and <code>DataLoaderProfilingConfig</code>.
11778-
* The following codes are configuration structures for the <code>ProfilingParameters</code> parameter. To learn more about
11779-
* how to configure the <code>ProfilingParameters</code> parameter,
11780-
* see <a href="https://docs.aws.amazon.com/sagemaker/latest/dg/debugger-createtrainingjob-api.html">Use the SageMaker and Debugger Configuration API Operations to Create, Update, and Debug Your Training Job</a>.
11781-
* </p>
11782-
*/
11783-
ProfilingParameters?: Record<string, string>;
11784-
11785-
/**
11786-
* @public
11787-
* <p>Configuration to turn off Amazon SageMaker Debugger's system monitoring and profiling functionality. To turn it off, set to <code>True</code>.</p>
11788-
*/
11789-
DisableProfiler?: boolean;
11790-
}
11791-
1179211780
/**
1179311781
* @internal
1179411782
*/

clients/client-sagemaker/src/models/models_2.ts

Lines changed: 37 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,6 @@ import {
159159
ProductionVariantManagedInstanceScaling,
160160
ProductionVariantRoutingConfig,
161161
ProductionVariantServerlessConfig,
162-
ProfilerConfig,
163162
RecommendationJobInputConfig,
164163
RecommendationJobStoppingConditions,
165164
RecommendationJobType,
@@ -176,6 +175,43 @@ import {
176175
VendorGuidance,
177176
} from "./models_1";
178177

178+
/**
179+
* @public
180+
* <p>Configuration information for Amazon SageMaker Debugger system monitoring, framework profiling, and
181+
* storage paths.</p>
182+
*/
183+
export interface ProfilerConfig {
184+
/**
185+
* @public
186+
* <p>Path to Amazon S3 storage location for system and framework metrics.</p>
187+
*/
188+
S3OutputPath?: string;
189+
190+
/**
191+
* @public
192+
* <p>A time interval for capturing system metrics in milliseconds. Available values are
193+
* 100, 200, 500, 1000 (1 second), 5000 (5 seconds), and 60000 (1 minute) milliseconds. The default value is 500 milliseconds.</p>
194+
*/
195+
ProfilingIntervalInMilliseconds?: number;
196+
197+
/**
198+
* @public
199+
* <p>Configuration information for capturing framework metrics. Available key strings for different profiling options are
200+
* <code>DetailedProfilingConfig</code>, <code>PythonProfilingConfig</code>, and <code>DataLoaderProfilingConfig</code>.
201+
* The following codes are configuration structures for the <code>ProfilingParameters</code> parameter. To learn more about
202+
* how to configure the <code>ProfilingParameters</code> parameter,
203+
* see <a href="https://docs.aws.amazon.com/sagemaker/latest/dg/debugger-createtrainingjob-api.html">Use the SageMaker and Debugger Configuration API Operations to Create, Update, and Debug Your Training Job</a>.
204+
* </p>
205+
*/
206+
ProfilingParameters?: Record<string, string>;
207+
208+
/**
209+
* @public
210+
* <p>Configuration to turn off Amazon SageMaker Debugger's system monitoring and profiling functionality. To turn it off, set to <code>True</code>.</p>
211+
*/
212+
DisableProfiler?: boolean;
213+
}
214+
179215
/**
180216
* @public
181217
* <p>Configuration information for profiling rules.</p>
@@ -10013,17 +10049,6 @@ export interface DescribeSubscribedWorkteamResponse {
1001310049
SubscribedWorkteam: SubscribedWorkteam | undefined;
1001410050
}
1001510051

10016-
/**
10017-
* @public
10018-
*/
10019-
export interface DescribeTrainingJobRequest {
10020-
/**
10021-
* @public
10022-
* <p>The name of the training job.</p>
10023-
*/
10024-
TrainingJobName: string | undefined;
10025-
}
10026-
1002710052
/**
1002810053
* @internal
1002910054
*/

clients/client-sagemaker/src/models/models_3.ts

Lines changed: 19 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ import {
5353
_InstanceType,
5454
DebugHookConfig,
5555
DebugRuleConfiguration,
56+
DockerSettings,
5657
EdgeOutputConfig,
5758
ExecutionRoleIdentityConfig,
5859
ExperimentConfig,
@@ -71,7 +72,6 @@ import {
7172
MonitoringType,
7273
OfflineStoreConfig,
7374
OnlineStoreConfig,
74-
ProfilerConfig,
7575
RecommendationJobType,
7676
ResourceLimits,
7777
RetryStrategy,
@@ -122,6 +122,7 @@ import {
122122
OfflineStoreStatusValue,
123123
PipelineExecutionStatus,
124124
ProductionVariantSummary,
125+
ProfilerConfig,
125126
ProfilerRuleConfiguration,
126127
RecommendationJobStatus,
127128
RecommendationMetrics,
@@ -137,6 +138,17 @@ import {
137138
TrialComponentStatus,
138139
} from "./models_2";
139140

141+
/**
142+
* @public
143+
*/
144+
export interface DescribeTrainingJobRequest {
145+
/**
146+
* @public
147+
* <p>The name of the training job.</p>
148+
*/
149+
TrainingJobName: string | undefined;
150+
}
151+
140152
/**
141153
* @public
142154
* <p>The name, value, and date and time of a metric that was emitted to Amazon CloudWatch.</p>
@@ -2353,6 +2365,12 @@ export interface DomainSettingsForUpdate {
23532365
* communication between Domain-level apps and user apps.</p>
23542366
*/
23552367
SecurityGroupIds?: string[];
2368+
2369+
/**
2370+
* @public
2371+
* <p>A collection of settings that configure the domain's Docker interaction.</p>
2372+
*/
2373+
DockerSettings?: DockerSettings;
23562374
}
23572375

23582376
/**
@@ -11104,15 +11122,3 @@ export interface TransformJobStepMetadata {
1110411122
*/
1110511123
Arn?: string;
1110611124
}
11107-
11108-
/**
11109-
* @public
11110-
* <p>Metadata for a tuning step.</p>
11111-
*/
11112-
export interface TuningJobStepMetaData {
11113-
/**
11114-
* @public
11115-
* <p>The Amazon Resource Name (ARN) of the tuning job that was run by this step execution.</p>
11116-
*/
11117-
Arn?: string;
11118-
}

clients/client-sagemaker/src/models/models_4.ts

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,6 @@ import {
7474
ProcessingResources,
7575
ProcessingStoppingCondition,
7676
Processor,
77-
ProfilerConfig,
7877
ProvisioningParameter,
7978
RetryStrategy,
8079
RootAccess,
@@ -113,6 +112,7 @@ import {
113112
PipelineExperimentConfig,
114113
PipelineStatus,
115114
ProcessingJobStatus,
115+
ProfilerConfig,
116116
ProfilerRuleConfiguration,
117117
ProjectStatus,
118118
ScheduleStatus,
@@ -165,14 +165,25 @@ import {
165165
TrialComponentMetricSummary,
166166
TrialComponentSource,
167167
TrialSource,
168-
TuningJobStepMetaData,
169168
UserProfileStatus,
170169
WarmPoolResourceStatus,
171170
WarmPoolStatus,
172171
Workforce,
173172
Workteam,
174173
} from "./models_3";
175174

175+
/**
176+
* @public
177+
* <p>Metadata for a tuning step.</p>
178+
*/
179+
export interface TuningJobStepMetaData {
180+
/**
181+
* @public
182+
* <p>The Amazon Resource Name (ARN) of the tuning job that was run by this step execution.</p>
183+
*/
184+
Arn?: string;
185+
}
186+
176187
/**
177188
* @public
178189
* <p>Metadata for a step execution.</p>

0 commit comments

Comments
 (0)