Skip to content

Commit 685916c

Browse files
author
awstools
committed
feat(client-sagemaker): Amazon SageMaker Canvas adds KendraSettings and DirectDeploySettings support for CanvasAppSettings
1 parent af41764 commit 685916c

18 files changed

+412
-272
lines changed

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

+2-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@ import {
1414
SMITHY_CONTEXT_KEY,
1515
} from "@smithy/types";
1616

17-
import { CreateDataQualityJobDefinitionRequest, CreateDataQualityJobDefinitionResponse } from "../models/models_0";
17+
import { CreateDataQualityJobDefinitionRequest } from "../models/models_0";
18+
import { CreateDataQualityJobDefinitionResponse } from "../models/models_1";
1819
import {
1920
de_CreateDataQualityJobDefinitionCommand,
2021
se_CreateDataQualityJobDefinitionCommand,

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

+6
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,12 @@ export interface CreateDomainCommandOutput extends CreateDomainResponse, __Metad
182182
* SecretArn: "STRING_VALUE",
183183
* },
184184
* ],
185+
* KendraSettings: { // KendraSettings
186+
* Status: "ENABLED" || "DISABLED",
187+
* },
188+
* DirectDeploySettings: { // DirectDeploySettings
189+
* Status: "ENABLED" || "DISABLED",
190+
* },
185191
* },
186192
* },
187193
* SubnetIds: [ // Subnets // required

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

+6-2
Original file line numberDiff line numberDiff line change
@@ -41,12 +41,16 @@ export interface CreateFeatureGroupCommandOutput extends CreateFeatureGroupRespo
4141
* <code>Features</code> defined in the <code>FeatureStore</code> to describe a
4242
* <code>Record</code>. </p>
4343
* <p>The <code>FeatureGroup</code> defines the schema and features contained in the
44-
* FeatureGroup. A <code>FeatureGroup</code> definition is composed of a list of
45-
* <code>Features</code>, a <code>RecordIdentifierFeatureName</code>, an
44+
* <code>FeatureGroup</code>. A <code>FeatureGroup</code> definition is composed of a list
45+
* of <code>Features</code>, a <code>RecordIdentifierFeatureName</code>, an
4646
* <code>EventTimeFeatureName</code> and configurations for its <code>OnlineStore</code>
4747
* and <code>OfflineStore</code>. Check <a href="https://docs.aws.amazon.com/general/latest/gr/aws_service_limits.html">Amazon Web Services service
4848
* quotas</a> to see the <code>FeatureGroup</code>s quota for your Amazon Web Services
4949
* account.</p>
50+
* <p>Note that it can take approximately 10-15 minutes to provision an
51+
* <code>OnlineStore</code>
52+
* <code>FeatureGroup</code> with the <code>InMemory</code>
53+
* <code>StorageType</code>.</p>
5054
* <important>
5155
* <p>You must include at least one of <code>OnlineStoreConfig</code> and
5256
* <code>OfflineStoreConfig</code> to create a <code>FeatureGroup</code>.</p>

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

+6
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,12 @@ export interface CreateUserProfileCommandOutput extends CreateUserProfileRespons
152152
* SecretArn: "STRING_VALUE",
153153
* },
154154
* ],
155+
* KendraSettings: { // KendraSettings
156+
* Status: "ENABLED" || "DISABLED",
157+
* },
158+
* DirectDeploySettings: { // DirectDeploySettings
159+
* Status: "ENABLED" || "DISABLED",
160+
* },
155161
* },
156162
* },
157163
* };

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import {
1414
SMITHY_CONTEXT_KEY,
1515
} from "@smithy/types";
1616

17-
import { DeleteDataQualityJobDefinitionRequest } from "../models/models_1";
17+
import { DeleteDataQualityJobDefinitionRequest } from "../models/models_2";
1818
import {
1919
de_DeleteDataQualityJobDefinitionCommand,
2020
se_DeleteDataQualityJobDefinitionCommand,

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import {
1414
SMITHY_CONTEXT_KEY,
1515
} from "@smithy/types";
1616

17-
import { DeleteDeviceFleetRequest } from "../models/models_1";
17+
import { DeleteDeviceFleetRequest } from "../models/models_2";
1818
import { de_DeleteDeviceFleetCommand, se_DeleteDeviceFleetCommand } from "../protocols/Aws_json1_1";
1919
import { SageMakerClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../SageMakerClient";
2020

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

+3
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,9 @@ export interface DeleteFeatureGroupCommandOutput extends __MetadataBearer {}
4242
* the <code>OnlineStore</code> immediately after <code>DeleteFeatureGroup</code> is called. </p>
4343
* <p>Data written into the <code>OfflineStore</code> will not be deleted. The Amazon Web Services Glue database and tables that are automatically created for your
4444
* <code>OfflineStore</code> are not deleted. </p>
45+
* <p>Note that it can take approximately 10-15 minutes to delete an <code>OnlineStore</code>
46+
* <code>FeatureGroup</code> with the <code>InMemory</code>
47+
* <code>StorageType</code>.</p>
4548
* @example
4649
* Use a bare-bones client and the command you need to make an API call.
4750
* ```javascript

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

+6
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,12 @@ export interface DescribeDomainCommandOutput extends DescribeDomainResponse, __M
151151
* // SecretArn: "STRING_VALUE",
152152
* // },
153153
* // ],
154+
* // KendraSettings: { // KendraSettings
155+
* // Status: "ENABLED" || "DISABLED",
156+
* // },
157+
* // DirectDeploySettings: { // DirectDeploySettings
158+
* // Status: "ENABLED" || "DISABLED",
159+
* // },
154160
* // },
155161
* // },
156162
* // AppNetworkAccessType: "PublicInternetOnly" || "VpcOnly",

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

+6
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,12 @@ export interface DescribeUserProfileCommandOutput extends DescribeUserProfileRes
152152
* // SecretArn: "STRING_VALUE",
153153
* // },
154154
* // ],
155+
* // KendraSettings: { // KendraSettings
156+
* // Status: "ENABLED" || "DISABLED",
157+
* // },
158+
* // DirectDeploySettings: { // DirectDeploySettings
159+
* // Status: "ENABLED" || "DISABLED",
160+
* // },
155161
* // },
156162
* // },
157163
* // };

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

+6
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,12 @@ export interface UpdateDomainCommandOutput extends UpdateDomainResponse, __Metad
137137
* SecretArn: "STRING_VALUE",
138138
* },
139139
* ],
140+
* KendraSettings: { // KendraSettings
141+
* Status: "ENABLED" || "DISABLED",
142+
* },
143+
* DirectDeploySettings: { // DirectDeploySettings
144+
* Status: "ENABLED" || "DISABLED",
145+
* },
140146
* },
141147
* },
142148
* DomainSettingsForUpdate: { // DomainSettingsForUpdate

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

+6
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,12 @@ export interface UpdateUserProfileCommandOutput extends UpdateUserProfileRespons
138138
* SecretArn: "STRING_VALUE",
139139
* },
140140
* ],
141+
* KendraSettings: { // KendraSettings
142+
* Status: "ENABLED" || "DISABLED",
143+
* },
144+
* DirectDeploySettings: { // DirectDeploySettings
145+
* Status: "ENABLED" || "DISABLED",
146+
* },
141147
* },
142148
* },
143149
* };

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

+53-34
Original file line numberDiff line numberDiff line change
@@ -7244,33 +7244,50 @@ export type CandidateSortBy = (typeof CandidateSortBy)[keyof typeof CandidateSor
72447244
* @public
72457245
* @enum
72467246
*/
7247-
export const DataSourceName = {
7248-
SalesforceGenie: "SalesforceGenie",
7249-
Snowflake: "Snowflake",
7247+
export const FeatureStatus = {
7248+
Disabled: "DISABLED",
7249+
Enabled: "ENABLED",
72507250
} as const;
72517251

72527252
/**
72537253
* @public
72547254
*/
7255-
export type DataSourceName = (typeof DataSourceName)[keyof typeof DataSourceName];
7255+
export type FeatureStatus = (typeof FeatureStatus)[keyof typeof FeatureStatus];
7256+
7257+
/**
7258+
* @public
7259+
* <p>The model deployment settings for the SageMaker Canvas application.</p>
7260+
* <note>
7261+
* <p>In order to enable model deployment for Canvas, the SageMaker Domain's or user profile's Amazon Web Services IAM
7262+
* execution role must have the <code>AmazonSageMakerCanvasDirectDeployAccess</code> policy attached. You can also
7263+
* turn on model deployment permissions through the SageMaker Domain's or user profile's settings in the SageMaker console.</p>
7264+
* </note>
7265+
*/
7266+
export interface DirectDeploySettings {
7267+
/**
7268+
* @public
7269+
* <p>Describes whether model deployment permissions are enabled or disabled in the Canvas application.</p>
7270+
*/
7271+
Status?: FeatureStatus | string;
7272+
}
72567273

72577274
/**
72587275
* @public
72597276
* @enum
72607277
*/
7261-
export const FeatureStatus = {
7262-
Disabled: "DISABLED",
7263-
Enabled: "ENABLED",
7278+
export const DataSourceName = {
7279+
SalesforceGenie: "SalesforceGenie",
7280+
Snowflake: "Snowflake",
72647281
} as const;
72657282

72667283
/**
72677284
* @public
72687285
*/
7269-
export type FeatureStatus = (typeof FeatureStatus)[keyof typeof FeatureStatus];
7286+
export type DataSourceName = (typeof DataSourceName)[keyof typeof DataSourceName];
72707287

72717288
/**
72727289
* @public
7273-
* <p>The Amazon SageMaker Canvas app setting where you configure OAuth for connecting to an external
7290+
* <p>The Amazon SageMaker Canvas application setting where you configure OAuth for connecting to an external
72747291
* data source, such as Snowflake.</p>
72757292
*/
72767293
export interface IdentityProviderOAuthSetting {
@@ -7295,6 +7312,20 @@ export interface IdentityProviderOAuthSetting {
72957312
SecretArn?: string;
72967313
}
72977314

7315+
/**
7316+
* @public
7317+
* <p>The Amazon SageMaker Canvas application setting where you configure
7318+
* document querying.</p>
7319+
*/
7320+
export interface KendraSettings {
7321+
/**
7322+
* @public
7323+
* <p>Describes whether the document querying feature is enabled
7324+
* or disabled in the Canvas application.</p>
7325+
*/
7326+
Status?: FeatureStatus | string;
7327+
}
7328+
72987329
/**
72997330
* @public
73007331
* <p>The model registry settings for the SageMaker Canvas application.</p>
@@ -7369,7 +7400,7 @@ export interface WorkspaceSettings {
73697400
export interface CanvasAppSettings {
73707401
/**
73717402
* @public
7372-
* <p>Time series forecast settings for the Canvas application.</p>
7403+
* <p>Time series forecast settings for the SageMaker Canvas application.</p>
73737404
*/
73747405
TimeSeriesForecastingSettings?: TimeSeriesForecastingSettings;
73757406

@@ -7390,6 +7421,18 @@ export interface CanvasAppSettings {
73907421
* <p>The settings for connecting to an external data source with OAuth.</p>
73917422
*/
73927423
IdentityProviderOAuthSettings?: IdentityProviderOAuthSetting[];
7424+
7425+
/**
7426+
* @public
7427+
* <p>The settings for document querying.</p>
7428+
*/
7429+
KendraSettings?: KendraSettings;
7430+
7431+
/**
7432+
* @public
7433+
* <p>The model deployment settings for the SageMaker Canvas application.</p>
7434+
*/
7435+
DirectDeploySettings?: DirectDeploySettings;
73937436
}
73947437

73957438
/**
@@ -11436,27 +11479,3 @@ export interface CreateDataQualityJobDefinitionRequest {
1143611479
*/
1143711480
Tags?: Tag[];
1143811481
}
11439-
11440-
/**
11441-
* @public
11442-
*/
11443-
export interface CreateDataQualityJobDefinitionResponse {
11444-
/**
11445-
* @public
11446-
* <p>The Amazon Resource Name (ARN) of the job definition.</p>
11447-
*/
11448-
JobDefinitionArn: string | undefined;
11449-
}
11450-
11451-
/**
11452-
* @public
11453-
* @enum
11454-
*/
11455-
export const EdgePresetDeploymentType = {
11456-
GreengrassV2Component: "GreengrassV2Component",
11457-
} as const;
11458-
11459-
/**
11460-
* @public
11461-
*/
11462-
export type EdgePresetDeploymentType = (typeof EdgePresetDeploymentType)[keyof typeof EdgePresetDeploymentType];

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

+24-23
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@ import {
4343
ContentClassifier,
4444
ContinuousParameterRange,
4545
ConvergenceDetected,
46-
EdgePresetDeploymentType,
4746
EndpointInput,
4847
HyperParameterScalingType,
4948
HyperParameterTuningJobObjective,
@@ -77,6 +76,30 @@ import {
7776
VpcConfig,
7877
} from "./models_0";
7978

79+
/**
80+
* @public
81+
*/
82+
export interface CreateDataQualityJobDefinitionResponse {
83+
/**
84+
* @public
85+
* <p>The Amazon Resource Name (ARN) of the job definition.</p>
86+
*/
87+
JobDefinitionArn: string | undefined;
88+
}
89+
90+
/**
91+
* @public
92+
* @enum
93+
*/
94+
export const EdgePresetDeploymentType = {
95+
GreengrassV2Component: "GreengrassV2Component",
96+
} as const;
97+
98+
/**
99+
* @public
100+
*/
101+
export type EdgePresetDeploymentType = (typeof EdgePresetDeploymentType)[keyof typeof EdgePresetDeploymentType];
102+
80103
/**
81104
* @public
82105
* <p>The output configuration.</p>
@@ -11964,28 +11987,6 @@ export interface DeleteContextResponse {
1196411987
ContextArn?: string;
1196511988
}
1196611989

11967-
/**
11968-
* @public
11969-
*/
11970-
export interface DeleteDataQualityJobDefinitionRequest {
11971-
/**
11972-
* @public
11973-
* <p>The name of the data quality monitoring job definition to delete.</p>
11974-
*/
11975-
JobDefinitionName: string | undefined;
11976-
}
11977-
11978-
/**
11979-
* @public
11980-
*/
11981-
export interface DeleteDeviceFleetRequest {
11982-
/**
11983-
* @public
11984-
* <p>The name of the fleet to delete.</p>
11985-
*/
11986-
DeviceFleetName: string | undefined;
11987-
}
11988-
1198911990
/**
1199011991
* @internal
1199111992
*/

0 commit comments

Comments
 (0)