Skip to content

Commit 3f587d9

Browse files
committed
feat(client-nimble): update model as of 11/02/2021
1 parent 049533d commit 3f587d9

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

47 files changed

+5473
-1581
lines changed

clients/client-nimble/README.md

+7
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,13 @@
77

88
AWS SDK for JavaScript Nimble Client for Node.js, Browser and React Native.
99

10+
<p>Welcome to the Amazon Nimble Studio API reference. This API reference provides
11+
methods, schema, resources, parameters, and more to help you get the most out of Nimble
12+
Studio.</p>
13+
<p>Nimble Studio is a virtual studio that empowers visual effects, animation, and
14+
interactive content teams to create content securely within a scalable, private cloud
15+
service.</p>
16+
1017
## Installing
1118

1219
To install the this package, simply type add or install @aws-sdk/client-nimble

clients/client-nimble/package.json

+1
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@
4949
"@aws-sdk/util-user-agent-node": "3.39.0",
5050
"@aws-sdk/util-utf8-browser": "3.37.0",
5151
"@aws-sdk/util-utf8-node": "3.37.0",
52+
"@aws-sdk/util-waiter": "3.38.0",
5253
"tslib": "^2.3.0",
5354
"uuid": "^8.3.2"
5455
},

clients/client-nimble/src/Nimble.ts

+148-12
Original file line numberDiff line numberDiff line change
@@ -165,11 +165,21 @@ import {
165165
PutStudioMembersCommandInput,
166166
PutStudioMembersCommandOutput,
167167
} from "./commands/PutStudioMembersCommand";
168+
import {
169+
StartStreamingSessionCommand,
170+
StartStreamingSessionCommandInput,
171+
StartStreamingSessionCommandOutput,
172+
} from "./commands/StartStreamingSessionCommand";
168173
import {
169174
StartStudioSSOConfigurationRepairCommand,
170175
StartStudioSSOConfigurationRepairCommandInput,
171176
StartStudioSSOConfigurationRepairCommandOutput,
172177
} from "./commands/StartStudioSSOConfigurationRepairCommand";
178+
import {
179+
StopStreamingSessionCommand,
180+
StopStreamingSessionCommandInput,
181+
StopStreamingSessionCommandOutput,
182+
} from "./commands/StopStreamingSessionCommand";
173183
import { TagResourceCommand, TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand";
174184
import {
175185
UntagResourceCommand,
@@ -203,6 +213,14 @@ import {
203213
} from "./commands/UpdateStudioComponentCommand";
204214
import { NimbleClient } from "./NimbleClient";
205215

216+
/**
217+
* <p>Welcome to the Amazon Nimble Studio API reference. This API reference provides
218+
* methods, schema, resources, parameters, and more to help you get the most out of Nimble
219+
* Studio.</p>
220+
* <p>Nimble Studio is a virtual studio that empowers visual effects, animation, and
221+
* interactive content teams to create content securely within a scalable, private cloud
222+
* service.</p>
223+
*/
206224
export class Nimble extends NimbleClient {
207225
/**
208226
* <p>Accept EULAs.</p>
@@ -295,7 +313,9 @@ export class Nimble extends NimbleClient {
295313
}
296314

297315
/**
298-
* <p>Creates a streaming session in a studio.</p> <p>After invoking this operation, you must poll GetStreamingSession until the streaming session is in state READY.</p>
316+
* <p>Creates a streaming session in a studio.</p>
317+
* <p>After invoking this operation, you must poll GetStreamingSession until the streaming
318+
* session is in state READY.</p>
299319
*/
300320
public createStreamingSession(
301321
args: CreateStreamingSessionCommandInput,
@@ -327,7 +347,9 @@ export class Nimble extends NimbleClient {
327347
}
328348

329349
/**
330-
* <p>Creates a streaming session stream for a streaming session.</p> <p>After invoking this API, invoke GetStreamingSessionStream with the returned streamId to poll the resource until it is in state READY.</p>
350+
* <p>Creates a streaming session stream for a streaming session.</p>
351+
* <p>After invoking this API, invoke GetStreamingSessionStream with the returned streamId
352+
* to poll the resource until it is in state READY.</p>
331353
*/
332354
public createStreamingSessionStream(
333355
args: CreateStreamingSessionStreamCommandInput,
@@ -359,7 +381,26 @@ export class Nimble extends NimbleClient {
359381
}
360382

361383
/**
362-
* <p>Create a new Studio.</p> <p>When creating a Studio, two IAM roles must be provided: the admin role and the user Role. These roles are assumed by your users when they log in to the Nimble Studio portal.</p> <p>The user role must have the AmazonNimbleStudio-StudioUser managed policy attached for the portal to function properly.</p> <p>The Admin Role must have the AmazonNimbleStudio-StudioAdmin managed policy attached for the portal to function properly.</p> <p>You may optionally specify a KMS key in the StudioEncryptionConfiguration.</p> <p>In Nimble Studio, resource names, descriptions, initialization scripts, and other data you provide are always encrypted at rest using an KMS key. By default, this key is owned by Amazon Web Services and managed on your behalf. You may provide your own KMS key when calling CreateStudio to encrypt this data using a key you own and manage.</p> <p>When providing an KMS key during studio creation, Nimble Studio creates KMS grants in your account to provide your studio user and admin roles access to these KMS keys.</p> <p>If you delete this grant, the studio will no longer be accessible to your portal users.</p> <p>If you delete the studio KMS key, your studio will no longer be accessible.</p>
384+
* <p>Create a new Studio.</p>
385+
* <p>When creating a Studio, two IAM roles must be provided: the admin role and the user
386+
* Role. These roles are assumed by your users when they log in to the Nimble Studio
387+
* portal.</p>
388+
* <p>The user role must have the AmazonNimbleStudio-StudioUser managed policy attached for
389+
* the portal to function properly.</p>
390+
* <p>The Admin Role must have the AmazonNimbleStudio-StudioAdmin managed policy attached
391+
* for the portal to function properly.</p>
392+
* <p>You may optionally specify a KMS key in the StudioEncryptionConfiguration.</p>
393+
* <p>In Nimble Studio, resource names, descriptions, initialization scripts, and other
394+
* data you provide are always encrypted at rest using an KMS key. By default, this key is
395+
* owned by Amazon Web Services and managed on your behalf. You may provide your own KMS
396+
* key when calling CreateStudio to encrypt this data using a key you own and
397+
* manage.</p>
398+
* <p>When providing an KMS key during studio creation, Nimble Studio creates KMS
399+
* grants in your account to provide your studio user and admin roles access to these KMS
400+
* keys.</p>
401+
* <p>If you delete this grant, the studio will no longer be accessible to your portal
402+
* users.</p>
403+
* <p>If you delete the studio KMS key, your studio will no longer be accessible.</p>
363404
*/
364405
public createStudio(
365406
args: CreateStudioCommandInput,
@@ -516,7 +557,11 @@ export class Nimble extends NimbleClient {
516557
}
517558

518559
/**
519-
* <p>Deletes streaming session resource.</p> <p>After invoking this operation, use GetStreamingSession to poll the resource until it transitions to a DELETED state.</p> <p>A streaming session will count against your streaming session quota until it is marked DELETED.</p>
560+
* <p>Deletes streaming session resource.</p>
561+
* <p>After invoking this operation, use GetStreamingSession to poll the resource until it
562+
* transitions to a DELETED state.</p>
563+
* <p>A streaming session will count against your streaming session quota until it is marked
564+
* DELETED.</p>
520565
*/
521566
public deleteStreamingSession(
522567
args: DeleteStreamingSessionCommandInput,
@@ -699,7 +744,10 @@ export class Nimble extends NimbleClient {
699744
}
700745

701746
/**
702-
* <p>Launch profile details include the launch profile resource and summary information of resources that are used by, or available to, the launch profile. This includes the name and description of all studio components used by the launch profiles, and the name and description of streaming images that can be used with this launch profile.</p>
747+
* <p>Launch profile details include the launch profile resource and summary information of
748+
* resources that are used by, or available to, the launch profile. This includes the name
749+
* and description of all studio components used by the launch profiles, and the name and
750+
* description of streaming images that can be used with this launch profile.</p>
703751
*/
704752
public getLaunchProfileDetails(
705753
args: GetLaunchProfileDetailsCommandInput,
@@ -827,7 +875,9 @@ export class Nimble extends NimbleClient {
827875
}
828876

829877
/**
830-
* <p>Gets StreamingSession resource.</p> <p>Invoke this operation to poll for a streaming session state while creating or deleting a session.</p>
878+
* <p>Gets StreamingSession resource.</p>
879+
* <p>anvoke this operation to poll for a streaming session state while creating or deleting
880+
* a session.</p>
831881
*/
832882
public getStreamingSession(
833883
args: GetStreamingSessionCommandInput,
@@ -859,7 +909,11 @@ export class Nimble extends NimbleClient {
859909
}
860910

861911
/**
862-
* <p>Gets a StreamingSessionStream for a streaming session.</p> <p>Invoke this operation to poll the resource after invoking CreateStreamingSessionStream.</p> <p>After the StreamingSessionStream changes to the state READY, the url property will contain a stream to be used with the DCV streaming client.</p>
912+
* <p>Gets a StreamingSessionStream for a streaming session.</p>
913+
* <p>Invoke this operation to poll the resource after invoking
914+
* CreateStreamingSessionStream.</p>
915+
* <p>After the StreamingSessionStream changes to the state READY, the url property will
916+
* contain a stream to be used with the DCV streaming client.</p>
863917
*/
864918
public getStreamingSessionStream(
865919
args: GetStreamingSessionStreamCommandInput,
@@ -1103,7 +1157,9 @@ export class Nimble extends NimbleClient {
11031157
}
11041158

11051159
/**
1106-
* <p>List the streaming image resources available to this studio.</p> <p>This list will contain both images provided by Amazon Web Services, as well as streaming images that you have created in your studio.</p>
1160+
* <p>List the streaming image resources available to this studio.</p>
1161+
* <p>This list will contain both images provided by Amazon Web Services, as well as
1162+
* streaming images that you have created in your studio.</p>
11071163
*/
11081164
public listStreamingImages(
11091165
args: ListStreamingImagesCommandInput,
@@ -1231,7 +1287,8 @@ export class Nimble extends NimbleClient {
12311287
}
12321288

12331289
/**
1234-
* <p>List studios in your Amazon Web Services account in the requested Amazon Web Services Region.</p>
1290+
* <p>List studios in your Amazon Web Services account in the requested Amazon Web Services
1291+
* Region.</p>
12351292
*/
12361293
public listStudios(args: ListStudiosCommandInput, options?: __HttpHandlerOptions): Promise<ListStudiosCommandOutput>;
12371294
public listStudios(args: ListStudiosCommandInput, cb: (err: any, data?: ListStudiosCommandOutput) => void): void;
@@ -1257,7 +1314,11 @@ export class Nimble extends NimbleClient {
12571314
}
12581315

12591316
/**
1260-
* <p>Gets the tags for a resource, given its Amazon Resource Names (ARN).</p> <p>This operation supports ARNs for all resource types in Nimble Studio that support tags, including studio, studio component, launch profile, streaming image, and streaming session. All resources that can be tagged will contain an ARN property, so you do not have to create this ARN yourself.</p>
1317+
* <p>Gets the tags for a resource, given its Amazon Resource Names (ARN).</p>
1318+
* <p>This operation supports ARNs for all resource types in Nimble Studio that support
1319+
* tags, including studio, studio component, launch profile, streaming image, and streaming
1320+
* session. All resources that can be tagged will contain an ARN property, so you do not
1321+
* have to create this ARN yourself.</p>
12611322
*/
12621323
public listTagsForResource(
12631324
args: ListTagsForResourceCommandInput,
@@ -1353,7 +1414,47 @@ export class Nimble extends NimbleClient {
13531414
}
13541415

13551416
/**
1356-
* <p>Repairs the SSO configuration for a given studio.</p> <p>If the studio has a valid Amazon Web Services SSO configuration currently associated with it, this operation will fail with a validation error.</p> <p>If the studio does not have a valid Amazon Web Services SSO configuration currently associated with it, then a new Amazon Web Services SSO application is created for the studio and the studio is changed to the READY state.</p> <p>After the Amazon Web Services SSO application is repaired, you must use the Amazon Nimble Studio console to add administrators and users to your studio.</p>
1417+
* <p> Transitions sessions from the STOPPED state into the READY state. The
1418+
* START_IN_PROGRESS state is the intermediate state between the STOPPED and READY
1419+
* states.</p>
1420+
*/
1421+
public startStreamingSession(
1422+
args: StartStreamingSessionCommandInput,
1423+
options?: __HttpHandlerOptions
1424+
): Promise<StartStreamingSessionCommandOutput>;
1425+
public startStreamingSession(
1426+
args: StartStreamingSessionCommandInput,
1427+
cb: (err: any, data?: StartStreamingSessionCommandOutput) => void
1428+
): void;
1429+
public startStreamingSession(
1430+
args: StartStreamingSessionCommandInput,
1431+
options: __HttpHandlerOptions,
1432+
cb: (err: any, data?: StartStreamingSessionCommandOutput) => void
1433+
): void;
1434+
public startStreamingSession(
1435+
args: StartStreamingSessionCommandInput,
1436+
optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: StartStreamingSessionCommandOutput) => void),
1437+
cb?: (err: any, data?: StartStreamingSessionCommandOutput) => void
1438+
): Promise<StartStreamingSessionCommandOutput> | void {
1439+
const command = new StartStreamingSessionCommand(args);
1440+
if (typeof optionsOrCb === "function") {
1441+
this.send(command, optionsOrCb);
1442+
} else if (typeof cb === "function") {
1443+
if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1444+
this.send(command, optionsOrCb || {}, cb);
1445+
} else {
1446+
return this.send(command, optionsOrCb);
1447+
}
1448+
}
1449+
1450+
/**
1451+
* <p>Repairs the Amazon Web Services SSO configuration for a given studio.</p>
1452+
* <p>If the studio has a valid Amazon Web Services SSO configuration currently associated with
1453+
* it, this operation will fail with a validation error.</p>
1454+
* <p>If the studio does not have a valid Amazon Web Services SSO configuration currently
1455+
* associated with it, then a new Amazon Web Services SSO application is created for the studio
1456+
* and the studio is changed to the READY state.</p>
1457+
* <p>After the Amazon Web Services SSO application is repaired, you must use the Amazon Nimble Studio console to add administrators and users to your studio.</p>
13571458
*/
13581459
public startStudioSSOConfigurationRepair(
13591460
args: StartStudioSSOConfigurationRepairCommandInput,
@@ -1384,6 +1485,39 @@ export class Nimble extends NimbleClient {
13841485
}
13851486
}
13861487

1488+
/**
1489+
* <p>Transitions sessions from the READY state into the STOPPED state. The STOP_IN_PROGRESS
1490+
* state is the intermediate state between the READY and STOPPED states.</p>
1491+
*/
1492+
public stopStreamingSession(
1493+
args: StopStreamingSessionCommandInput,
1494+
options?: __HttpHandlerOptions
1495+
): Promise<StopStreamingSessionCommandOutput>;
1496+
public stopStreamingSession(
1497+
args: StopStreamingSessionCommandInput,
1498+
cb: (err: any, data?: StopStreamingSessionCommandOutput) => void
1499+
): void;
1500+
public stopStreamingSession(
1501+
args: StopStreamingSessionCommandInput,
1502+
options: __HttpHandlerOptions,
1503+
cb: (err: any, data?: StopStreamingSessionCommandOutput) => void
1504+
): void;
1505+
public stopStreamingSession(
1506+
args: StopStreamingSessionCommandInput,
1507+
optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: StopStreamingSessionCommandOutput) => void),
1508+
cb?: (err: any, data?: StopStreamingSessionCommandOutput) => void
1509+
): Promise<StopStreamingSessionCommandOutput> | void {
1510+
const command = new StopStreamingSessionCommand(args);
1511+
if (typeof optionsOrCb === "function") {
1512+
this.send(command, optionsOrCb);
1513+
} else if (typeof cb === "function") {
1514+
if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1515+
this.send(command, optionsOrCb || {}, cb);
1516+
} else {
1517+
return this.send(command, optionsOrCb);
1518+
}
1519+
}
1520+
13871521
/**
13881522
* <p>Creates tags for a resource, given its ARN.</p>
13891523
*/
@@ -1539,7 +1673,9 @@ export class Nimble extends NimbleClient {
15391673
}
15401674

15411675
/**
1542-
* <p>Update a Studio resource.</p> <p>Currently, this operation only supports updating the displayName of your studio.</p>
1676+
* <p>Update a Studio resource.</p>
1677+
* <p>Currently, this operation only supports updating the displayName of your
1678+
* studio.</p>
15431679
*/
15441680
public updateStudio(
15451681
args: UpdateStudioCommandInput,

clients/client-nimble/src/NimbleClient.ts

+20
Original file line numberDiff line numberDiff line change
@@ -152,10 +152,18 @@ import {
152152
PutLaunchProfileMembersCommandOutput,
153153
} from "./commands/PutLaunchProfileMembersCommand";
154154
import { PutStudioMembersCommandInput, PutStudioMembersCommandOutput } from "./commands/PutStudioMembersCommand";
155+
import {
156+
StartStreamingSessionCommandInput,
157+
StartStreamingSessionCommandOutput,
158+
} from "./commands/StartStreamingSessionCommand";
155159
import {
156160
StartStudioSSOConfigurationRepairCommandInput,
157161
StartStudioSSOConfigurationRepairCommandOutput,
158162
} from "./commands/StartStudioSSOConfigurationRepairCommand";
163+
import {
164+
StopStreamingSessionCommandInput,
165+
StopStreamingSessionCommandOutput,
166+
} from "./commands/StopStreamingSessionCommand";
159167
import { TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand";
160168
import { UntagResourceCommandInput, UntagResourceCommandOutput } from "./commands/UntagResourceCommand";
161169
import {
@@ -215,7 +223,9 @@ export type ServiceInputTypes =
215223
| ListTagsForResourceCommandInput
216224
| PutLaunchProfileMembersCommandInput
217225
| PutStudioMembersCommandInput
226+
| StartStreamingSessionCommandInput
218227
| StartStudioSSOConfigurationRepairCommandInput
228+
| StopStreamingSessionCommandInput
219229
| TagResourceCommandInput
220230
| UntagResourceCommandInput
221231
| UpdateLaunchProfileCommandInput
@@ -262,7 +272,9 @@ export type ServiceOutputTypes =
262272
| ListTagsForResourceCommandOutput
263273
| PutLaunchProfileMembersCommandOutput
264274
| PutStudioMembersCommandOutput
275+
| StartStreamingSessionCommandOutput
265276
| StartStudioSSOConfigurationRepairCommandOutput
277+
| StopStreamingSessionCommandOutput
266278
| TagResourceCommandOutput
267279
| UntagResourceCommandOutput
268280
| UpdateLaunchProfileCommandOutput
@@ -419,6 +431,14 @@ type NimbleClientResolvedConfigType = __SmithyResolvedConfiguration<__HttpHandle
419431
*/
420432
export interface NimbleClientResolvedConfig extends NimbleClientResolvedConfigType {}
421433

434+
/**
435+
* <p>Welcome to the Amazon Nimble Studio API reference. This API reference provides
436+
* methods, schema, resources, parameters, and more to help you get the most out of Nimble
437+
* Studio.</p>
438+
* <p>Nimble Studio is a virtual studio that empowers visual effects, animation, and
439+
* interactive content teams to create content securely within a scalable, private cloud
440+
* service.</p>
441+
*/
422442
export class NimbleClient extends __Client<
423443
__HttpHandlerOptions,
424444
ServiceInputTypes,

clients/client-nimble/src/commands/CreateStreamingSessionCommand.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,9 @@ export interface CreateStreamingSessionCommandInput extends CreateStreamingSessi
2222
export interface CreateStreamingSessionCommandOutput extends CreateStreamingSessionResponse, __MetadataBearer {}
2323

2424
/**
25-
* <p>Creates a streaming session in a studio.</p> <p>After invoking this operation, you must poll GetStreamingSession until the streaming session is in state READY.</p>
25+
* <p>Creates a streaming session in a studio.</p>
26+
* <p>After invoking this operation, you must poll GetStreamingSession until the streaming
27+
* session is in state READY.</p>
2628
* @example
2729
* Use a bare-bones client and the command you need to make an API call.
2830
* ```javascript

0 commit comments

Comments
 (0)