Skip to content

Commit

Permalink
feat(client-sagemaker): Amazon SageMaker Canvas adds WorkspeceSetting…
Browse files Browse the repository at this point in the history
…s support for CanvasAppSettings
  • Loading branch information
awstools committed Jul 13, 2023
1 parent b3fabe8 commit 4fd0ab0
Show file tree
Hide file tree
Showing 14 changed files with 176 additions and 103 deletions.
4 changes: 4 additions & 0 deletions clients/client-sagemaker/src/commands/CreateDomainCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,10 @@ export interface CreateDomainCommandOutput extends CreateDomainResponse, __Metad
* Status: "ENABLED" || "DISABLED",
* CrossAccountModelRegisterRoleArn: "STRING_VALUE",
* },
* WorkspaceSettings: { // WorkspaceSettings
* S3ArtifactPath: "STRING_VALUE",
* S3KmsKeyId: "STRING_VALUE",
* },
* },
* },
* SubnetIds: [ // Subnets // required
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,10 @@ export interface CreateUserProfileCommandOutput extends CreateUserProfileRespons
* Status: "ENABLED" || "DISABLED",
* CrossAccountModelRegisterRoleArn: "STRING_VALUE",
* },
* WorkspaceSettings: { // WorkspaceSettings
* S3ArtifactPath: "STRING_VALUE",
* S3KmsKeyId: "STRING_VALUE",
* },
* },
* },
* };
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,7 @@ import {
SerdeContext as __SerdeContext,
} from "@smithy/types";

import { DeleteHumanTaskUiRequest } from "../models/models_1";
import { DeleteHumanTaskUiResponse } from "../models/models_2";
import { DeleteHumanTaskUiRequest, DeleteHumanTaskUiResponse } from "../models/models_2";
import { de_DeleteHumanTaskUiCommand, se_DeleteHumanTaskUiCommand } from "../protocols/Aws_json1_1";
import { SageMakerClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../SageMakerClient";

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,10 @@ export interface DescribeDomainCommandOutput extends DescribeDomainResponse, __M
* // Status: "ENABLED" || "DISABLED",
* // CrossAccountModelRegisterRoleArn: "STRING_VALUE",
* // },
* // WorkspaceSettings: { // WorkspaceSettings
* // S3ArtifactPath: "STRING_VALUE",
* // S3KmsKeyId: "STRING_VALUE",
* // },
* // },
* // },
* // AppNetworkAccessType: "PublicInternetOnly" || "VpcOnly",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,10 @@ export interface DescribeUserProfileCommandOutput extends DescribeUserProfileRes
* // Status: "ENABLED" || "DISABLED",
* // CrossAccountModelRegisterRoleArn: "STRING_VALUE",
* // },
* // WorkspaceSettings: { // WorkspaceSettings
* // S3ArtifactPath: "STRING_VALUE",
* // S3KmsKeyId: "STRING_VALUE",
* // },
* // },
* // },
* // };
Expand Down
4 changes: 4 additions & 0 deletions clients/client-sagemaker/src/commands/UpdateDomainCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,10 @@ export interface UpdateDomainCommandOutput extends UpdateDomainResponse, __Metad
* Status: "ENABLED" || "DISABLED",
* CrossAccountModelRegisterRoleArn: "STRING_VALUE",
* },
* WorkspaceSettings: { // WorkspaceSettings
* S3ArtifactPath: "STRING_VALUE",
* S3KmsKeyId: "STRING_VALUE",
* },
* },
* },
* DomainSettingsForUpdate: { // DomainSettingsForUpdate
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,10 @@ export interface UpdateUserProfileCommandOutput extends UpdateUserProfileRespons
* Status: "ENABLED" || "DISABLED",
* CrossAccountModelRegisterRoleArn: "STRING_VALUE",
* },
* WorkspaceSettings: { // WorkspaceSettings
* S3ArtifactPath: "STRING_VALUE",
* S3KmsKeyId: "STRING_VALUE",
* },
* },
* },
* };
Expand Down
45 changes: 24 additions & 21 deletions clients/client-sagemaker/src/models/models_0.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5758,7 +5758,7 @@ export interface TimeSeriesForecastingJobConfig {
* that are not already declared in <code>TimeSeriesConfig</code>. If provided, the AutoML job
* V2 only considers these additional columns as a complement to the ones declared in
* <code>TimeSeriesConfig</code>.</p>
* <p> You can input <code>FeatureAttributeNames</code> (optional) in JSON format as shown
* <p>You can input <code>FeatureAttributeNames</code> (optional) in JSON format as shown
* below: </p>
* <p>
* <code>\{ "FeatureAttributeNames":["col1", "col2", ...] \}</code>.</p>
Expand All @@ -5773,12 +5773,6 @@ export interface TimeSeriesForecastingJobConfig {
* <p>These column keys must not include any column set in
* <code>TimeSeriesConfig</code>.</p>
* </note>
* <p>When not provided, the AutoML job V2 includes all the columns from the original dataset
* that are not already declared in <code>TimeSeriesConfig</code>. If provided, the AutoML job
* V2 only considers these additional columns as a complement to the ones declared in
* <code>TimeSeriesConfig</code>.</p>
* <p>Autopilot supports the following data types: <code>numeric</code>, <code>categorical</code>,
* <code>text</code>, and <code>datetime</code>.</p>
*/
FeatureSpecificationS3Uri?: string;

Expand Down Expand Up @@ -6850,6 +6844,24 @@ export interface TimeSeriesForecastingSettings {
AmazonForecastRoleArn?: string;
}

/**
* @public
* <p>The workspace settings for the SageMaker Canvas application.</p>
*/
export interface WorkspaceSettings {
/**
* <p>The Amazon S3 bucket used to store artifacts generated by Canvas. Updating the Amazon S3 location impacts
* existing configuration settings, and Canvas users no longer have access to their artifacts. Canvas users
* must log out and log back in to apply the new location.</p>
*/
S3ArtifactPath?: string;

/**
* <p>The Amazon Web Services Key Management Service (KMS) encryption key ID that is used to encrypt artifacts generated by Canvas in the Amazon S3 bucket.</p>
*/
S3KmsKeyId?: string;
}

/**
* @public
* <p>The SageMaker Canvas application settings.</p>
Expand All @@ -6864,6 +6876,11 @@ export interface CanvasAppSettings {
* <p>The model registry settings for the SageMaker Canvas application.</p>
*/
ModelRegisterSettings?: ModelRegisterSettings;

/**
* <p>The workspace settings for the SageMaker Canvas application.</p>
*/
WorkspaceSettings?: WorkspaceSettings;
}

/**
Expand Down Expand Up @@ -10785,17 +10802,3 @@ export const RStudioServerProAccessStatus = {
*/
export type RStudioServerProAccessStatus =
(typeof RStudioServerProAccessStatus)[keyof typeof RStudioServerProAccessStatus];

/**
* @public
* @enum
*/
export const RStudioServerProUserGroup = {
Admin: "R_STUDIO_ADMIN",
User: "R_STUDIO_USER",
} as const;

/**
* @public
*/
export type RStudioServerProUserGroup = (typeof RStudioServerProUserGroup)[keyof typeof RStudioServerProUserGroup];
40 changes: 21 additions & 19 deletions clients/client-sagemaker/src/models/models_1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,6 @@ import {
ResourceSpec,
RSessionAppSettings,
RStudioServerProAccessStatus,
RStudioServerProUserGroup,
StoppingCondition,
Tag,
TrainingInputMode,
Expand All @@ -80,6 +79,20 @@ import {
VpcConfig,
} from "./models_0";

/**
* @public
* @enum
*/
export const RStudioServerProUserGroup = {
Admin: "R_STUDIO_ADMIN",
User: "R_STUDIO_USER",
} as const;

/**
* @public
*/
export type RStudioServerProUserGroup = (typeof RStudioServerProUserGroup)[keyof typeof RStudioServerProUserGroup];

/**
* @public
* <p>A collection of settings that configure user interaction with the
Expand Down Expand Up @@ -605,10 +618,9 @@ export interface CreateEdgePackagingJobRequest {
*/
export interface RollingUpdatePolicy {
/**
* <p>Specifies the type and size of the endpoint capacity to activate for a blue/green deployment, a rolling deployment, or a rollback strategy.
* You can specify your batches as either instance count or the overall percentage or your fleet.</p>
* <p>For a rollback strategy, if you don't specify the fields in this object, or if you set the <code>Value</code> to 100%, then SageMaker
* uses a blue/green rollback strategy and rolls all traffic back to the blue fleet.</p>
* <p>Batch size for each rolling step to provision capacity and turn on traffic on the new
* endpoint fleet, and terminate capacity on the old endpoint fleet. Value must be between
* 5% to 50% of the variant's total instance count.</p>
*/
MaximumBatchSize: CapacitySize | undefined;

Expand All @@ -623,10 +635,10 @@ export interface RollingUpdatePolicy {
MaximumExecutionTimeoutInSeconds?: number;

/**
* <p>Specifies the type and size of the endpoint capacity to activate for a blue/green deployment, a rolling deployment, or a rollback strategy.
* You can specify your batches as either instance count or the overall percentage or your fleet.</p>
* <p>For a rollback strategy, if you don't specify the fields in this object, or if you set the <code>Value</code> to 100%, then SageMaker
* uses a blue/green rollback strategy and rolls all traffic back to the blue fleet.</p>
* <p>Batch size for rollback to the old endpoint fleet. Each rolling step to provision
* capacity and turn on traffic on the old endpoint fleet, and terminate capacity on the new
* endpoint fleet. If this field is absent, the default value will be set to 100% of total
* capacity which means to bring up the whole capacity of the old fleet at once during rollback.</p>
*/
RollbackMaximumBatchSize?: CapacitySize;
}
Expand Down Expand Up @@ -10809,16 +10821,6 @@ export interface DeleteHubContentRequest {
HubContentVersion: string | undefined;
}

/**
* @public
*/
export interface DeleteHumanTaskUiRequest {
/**
* <p>The name of the human task user interface (work task template) you want to delete.</p>
*/
HumanTaskUiName: string | undefined;
}

/**
* @internal
*/
Expand Down
37 changes: 10 additions & 27 deletions clients/client-sagemaker/src/models/models_2.ts
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,16 @@ import {
VendorGuidance,
} from "./models_1";

/**
* @public
*/
export interface DeleteHumanTaskUiRequest {
/**
* <p>The name of the human task user interface (work task template) you want to delete.</p>
*/
HumanTaskUiName: string | undefined;
}

/**
* @public
*/
Expand Down Expand Up @@ -10085,33 +10095,6 @@ export interface GetSagemakerServicecatalogPortfolioStatusOutput {
Status?: SagemakerServicecatalogStatus | string;
}

/**
* @public
* @enum
*/
export const ResourceType = {
ENDPOINT: "Endpoint",
EXPERIMENT: "Experiment",
EXPERIMENT_TRIAL: "ExperimentTrial",
EXPERIMENT_TRIAL_COMPONENT: "ExperimentTrialComponent",
FEATURE_GROUP: "FeatureGroup",
FEATURE_METADATA: "FeatureMetadata",
HYPER_PARAMETER_TUNING_JOB: "HyperParameterTuningJob",
MODEL: "Model",
MODEL_CARD: "ModelCard",
MODEL_PACKAGE: "ModelPackage",
MODEL_PACKAGE_GROUP: "ModelPackageGroup",
PIPELINE: "Pipeline",
PIPELINE_EXECUTION: "PipelineExecution",
PROJECT: "Project",
TRAINING_JOB: "TrainingJob",
} as const;

/**
* @public
*/
export type ResourceType = (typeof ResourceType)[keyof typeof ResourceType];

/**
* @internal
*/
Expand Down
55 changes: 27 additions & 28 deletions clients/client-sagemaker/src/models/models_3.ts
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,6 @@ import {
ProjectStatus,
RecommendationJobStatus,
RecommendationMetrics,
ResourceType,
ScheduleStatus,
SecondaryStatus,
SecondaryStatusTransition,
Expand All @@ -171,6 +170,33 @@ import {
Workteam,
} from "./models_2";

/**
* @public
* @enum
*/
export const ResourceType = {
ENDPOINT: "Endpoint",
EXPERIMENT: "Experiment",
EXPERIMENT_TRIAL: "ExperimentTrial",
EXPERIMENT_TRIAL_COMPONENT: "ExperimentTrialComponent",
FEATURE_GROUP: "FeatureGroup",
FEATURE_METADATA: "FeatureMetadata",
HYPER_PARAMETER_TUNING_JOB: "HyperParameterTuningJob",
MODEL: "Model",
MODEL_CARD: "ModelCard",
MODEL_PACKAGE: "ModelPackage",
MODEL_PACKAGE_GROUP: "ModelPackageGroup",
PIPELINE: "Pipeline",
PIPELINE_EXECUTION: "PipelineExecution",
PROJECT: "Project",
TRAINING_JOB: "TrainingJob",
} as const;

/**
* @public
*/
export type ResourceType = (typeof ResourceType)[keyof typeof ResourceType];

/**
* @public
* <p>Part of the <code>SuggestionQuery</code> type. Specifies a hint for retrieving property
Expand Down Expand Up @@ -10020,33 +10046,6 @@ export interface Trial {
TrialComponentSummaries?: TrialComponentSimpleSummary[];
}

/**
* @public
* <p>Detailed information about the source of a trial component. Either
* <code>ProcessingJob</code> or <code>TrainingJob</code> is returned.</p>
*/
export interface TrialComponentSourceDetail {
/**
* <p>The Amazon Resource Name (ARN) of the source.</p>
*/
SourceArn?: string;

/**
* <p>Information about a training job that's the source of a trial component.</p>
*/
TrainingJob?: TrainingJob;

/**
* <p>Information about a processing job that's the source of a trial component.</p>
*/
ProcessingJob?: ProcessingJob;

/**
* <p>Information about a transform job that's the source of a trial component.</p>
*/
TransformJob?: TransformJob;
}

/**
* @internal
*/
Expand Down
Loading

0 comments on commit 4fd0ab0

Please sign in to comment.