@aws-sdk/client-gamesparks
Advanced tools
Comparing version 3.315.0 to 3.316.0
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.GameSparks = void 0; | ||
const smithy_client_1 = require("@aws-sdk/smithy-client"); | ||
const CreateGameCommand_1 = require("./commands/CreateGameCommand"); | ||
@@ -38,466 +39,40 @@ const CreateSnapshotCommand_1 = require("./commands/CreateSnapshotCommand"); | ||
const GameSparksClient_1 = require("./GameSparksClient"); | ||
const commands = { | ||
CreateGameCommand: CreateGameCommand_1.CreateGameCommand, | ||
CreateSnapshotCommand: CreateSnapshotCommand_1.CreateSnapshotCommand, | ||
CreateStageCommand: CreateStageCommand_1.CreateStageCommand, | ||
DeleteGameCommand: DeleteGameCommand_1.DeleteGameCommand, | ||
DeleteStageCommand: DeleteStageCommand_1.DeleteStageCommand, | ||
DisconnectPlayerCommand: DisconnectPlayerCommand_1.DisconnectPlayerCommand, | ||
ExportSnapshotCommand: ExportSnapshotCommand_1.ExportSnapshotCommand, | ||
GetExtensionCommand: GetExtensionCommand_1.GetExtensionCommand, | ||
GetExtensionVersionCommand: GetExtensionVersionCommand_1.GetExtensionVersionCommand, | ||
GetGameCommand: GetGameCommand_1.GetGameCommand, | ||
GetGameConfigurationCommand: GetGameConfigurationCommand_1.GetGameConfigurationCommand, | ||
GetGeneratedCodeJobCommand: GetGeneratedCodeJobCommand_1.GetGeneratedCodeJobCommand, | ||
GetPlayerConnectionStatusCommand: GetPlayerConnectionStatusCommand_1.GetPlayerConnectionStatusCommand, | ||
GetSnapshotCommand: GetSnapshotCommand_1.GetSnapshotCommand, | ||
GetStageCommand: GetStageCommand_1.GetStageCommand, | ||
GetStageDeploymentCommand: GetStageDeploymentCommand_1.GetStageDeploymentCommand, | ||
ImportGameConfigurationCommand: ImportGameConfigurationCommand_1.ImportGameConfigurationCommand, | ||
ListExtensionsCommand: ListExtensionsCommand_1.ListExtensionsCommand, | ||
ListExtensionVersionsCommand: ListExtensionVersionsCommand_1.ListExtensionVersionsCommand, | ||
ListGamesCommand: ListGamesCommand_1.ListGamesCommand, | ||
ListGeneratedCodeJobsCommand: ListGeneratedCodeJobsCommand_1.ListGeneratedCodeJobsCommand, | ||
ListSnapshotsCommand: ListSnapshotsCommand_1.ListSnapshotsCommand, | ||
ListStageDeploymentsCommand: ListStageDeploymentsCommand_1.ListStageDeploymentsCommand, | ||
ListStagesCommand: ListStagesCommand_1.ListStagesCommand, | ||
ListTagsForResourceCommand: ListTagsForResourceCommand_1.ListTagsForResourceCommand, | ||
StartGeneratedCodeJobCommand: StartGeneratedCodeJobCommand_1.StartGeneratedCodeJobCommand, | ||
StartStageDeploymentCommand: StartStageDeploymentCommand_1.StartStageDeploymentCommand, | ||
TagResourceCommand: TagResourceCommand_1.TagResourceCommand, | ||
UntagResourceCommand: UntagResourceCommand_1.UntagResourceCommand, | ||
UpdateGameCommand: UpdateGameCommand_1.UpdateGameCommand, | ||
UpdateGameConfigurationCommand: UpdateGameConfigurationCommand_1.UpdateGameConfigurationCommand, | ||
UpdateSnapshotCommand: UpdateSnapshotCommand_1.UpdateSnapshotCommand, | ||
UpdateStageCommand: UpdateStageCommand_1.UpdateStageCommand, | ||
}; | ||
class GameSparks extends GameSparksClient_1.GameSparksClient { | ||
createGame(args, optionsOrCb, cb) { | ||
const command = new CreateGameCommand_1.CreateGameCommand(args); | ||
if (typeof optionsOrCb === "function") { | ||
this.send(command, optionsOrCb); | ||
} | ||
else if (typeof cb === "function") { | ||
if (typeof optionsOrCb !== "object") | ||
throw new Error(`Expect http options but get ${typeof optionsOrCb}`); | ||
this.send(command, optionsOrCb || {}, cb); | ||
} | ||
else { | ||
return this.send(command, optionsOrCb); | ||
} | ||
} | ||
createSnapshot(args, optionsOrCb, cb) { | ||
const command = new CreateSnapshotCommand_1.CreateSnapshotCommand(args); | ||
if (typeof optionsOrCb === "function") { | ||
this.send(command, optionsOrCb); | ||
} | ||
else if (typeof cb === "function") { | ||
if (typeof optionsOrCb !== "object") | ||
throw new Error(`Expect http options but get ${typeof optionsOrCb}`); | ||
this.send(command, optionsOrCb || {}, cb); | ||
} | ||
else { | ||
return this.send(command, optionsOrCb); | ||
} | ||
} | ||
createStage(args, optionsOrCb, cb) { | ||
const command = new CreateStageCommand_1.CreateStageCommand(args); | ||
if (typeof optionsOrCb === "function") { | ||
this.send(command, optionsOrCb); | ||
} | ||
else if (typeof cb === "function") { | ||
if (typeof optionsOrCb !== "object") | ||
throw new Error(`Expect http options but get ${typeof optionsOrCb}`); | ||
this.send(command, optionsOrCb || {}, cb); | ||
} | ||
else { | ||
return this.send(command, optionsOrCb); | ||
} | ||
} | ||
deleteGame(args, optionsOrCb, cb) { | ||
const command = new DeleteGameCommand_1.DeleteGameCommand(args); | ||
if (typeof optionsOrCb === "function") { | ||
this.send(command, optionsOrCb); | ||
} | ||
else if (typeof cb === "function") { | ||
if (typeof optionsOrCb !== "object") | ||
throw new Error(`Expect http options but get ${typeof optionsOrCb}`); | ||
this.send(command, optionsOrCb || {}, cb); | ||
} | ||
else { | ||
return this.send(command, optionsOrCb); | ||
} | ||
} | ||
deleteStage(args, optionsOrCb, cb) { | ||
const command = new DeleteStageCommand_1.DeleteStageCommand(args); | ||
if (typeof optionsOrCb === "function") { | ||
this.send(command, optionsOrCb); | ||
} | ||
else if (typeof cb === "function") { | ||
if (typeof optionsOrCb !== "object") | ||
throw new Error(`Expect http options but get ${typeof optionsOrCb}`); | ||
this.send(command, optionsOrCb || {}, cb); | ||
} | ||
else { | ||
return this.send(command, optionsOrCb); | ||
} | ||
} | ||
disconnectPlayer(args, optionsOrCb, cb) { | ||
const command = new DisconnectPlayerCommand_1.DisconnectPlayerCommand(args); | ||
if (typeof optionsOrCb === "function") { | ||
this.send(command, optionsOrCb); | ||
} | ||
else if (typeof cb === "function") { | ||
if (typeof optionsOrCb !== "object") | ||
throw new Error(`Expect http options but get ${typeof optionsOrCb}`); | ||
this.send(command, optionsOrCb || {}, cb); | ||
} | ||
else { | ||
return this.send(command, optionsOrCb); | ||
} | ||
} | ||
exportSnapshot(args, optionsOrCb, cb) { | ||
const command = new ExportSnapshotCommand_1.ExportSnapshotCommand(args); | ||
if (typeof optionsOrCb === "function") { | ||
this.send(command, optionsOrCb); | ||
} | ||
else if (typeof cb === "function") { | ||
if (typeof optionsOrCb !== "object") | ||
throw new Error(`Expect http options but get ${typeof optionsOrCb}`); | ||
this.send(command, optionsOrCb || {}, cb); | ||
} | ||
else { | ||
return this.send(command, optionsOrCb); | ||
} | ||
} | ||
getExtension(args, optionsOrCb, cb) { | ||
const command = new GetExtensionCommand_1.GetExtensionCommand(args); | ||
if (typeof optionsOrCb === "function") { | ||
this.send(command, optionsOrCb); | ||
} | ||
else if (typeof cb === "function") { | ||
if (typeof optionsOrCb !== "object") | ||
throw new Error(`Expect http options but get ${typeof optionsOrCb}`); | ||
this.send(command, optionsOrCb || {}, cb); | ||
} | ||
else { | ||
return this.send(command, optionsOrCb); | ||
} | ||
} | ||
getExtensionVersion(args, optionsOrCb, cb) { | ||
const command = new GetExtensionVersionCommand_1.GetExtensionVersionCommand(args); | ||
if (typeof optionsOrCb === "function") { | ||
this.send(command, optionsOrCb); | ||
} | ||
else if (typeof cb === "function") { | ||
if (typeof optionsOrCb !== "object") | ||
throw new Error(`Expect http options but get ${typeof optionsOrCb}`); | ||
this.send(command, optionsOrCb || {}, cb); | ||
} | ||
else { | ||
return this.send(command, optionsOrCb); | ||
} | ||
} | ||
getGame(args, optionsOrCb, cb) { | ||
const command = new GetGameCommand_1.GetGameCommand(args); | ||
if (typeof optionsOrCb === "function") { | ||
this.send(command, optionsOrCb); | ||
} | ||
else if (typeof cb === "function") { | ||
if (typeof optionsOrCb !== "object") | ||
throw new Error(`Expect http options but get ${typeof optionsOrCb}`); | ||
this.send(command, optionsOrCb || {}, cb); | ||
} | ||
else { | ||
return this.send(command, optionsOrCb); | ||
} | ||
} | ||
getGameConfiguration(args, optionsOrCb, cb) { | ||
const command = new GetGameConfigurationCommand_1.GetGameConfigurationCommand(args); | ||
if (typeof optionsOrCb === "function") { | ||
this.send(command, optionsOrCb); | ||
} | ||
else if (typeof cb === "function") { | ||
if (typeof optionsOrCb !== "object") | ||
throw new Error(`Expect http options but get ${typeof optionsOrCb}`); | ||
this.send(command, optionsOrCb || {}, cb); | ||
} | ||
else { | ||
return this.send(command, optionsOrCb); | ||
} | ||
} | ||
getGeneratedCodeJob(args, optionsOrCb, cb) { | ||
const command = new GetGeneratedCodeJobCommand_1.GetGeneratedCodeJobCommand(args); | ||
if (typeof optionsOrCb === "function") { | ||
this.send(command, optionsOrCb); | ||
} | ||
else if (typeof cb === "function") { | ||
if (typeof optionsOrCb !== "object") | ||
throw new Error(`Expect http options but get ${typeof optionsOrCb}`); | ||
this.send(command, optionsOrCb || {}, cb); | ||
} | ||
else { | ||
return this.send(command, optionsOrCb); | ||
} | ||
} | ||
getPlayerConnectionStatus(args, optionsOrCb, cb) { | ||
const command = new GetPlayerConnectionStatusCommand_1.GetPlayerConnectionStatusCommand(args); | ||
if (typeof optionsOrCb === "function") { | ||
this.send(command, optionsOrCb); | ||
} | ||
else if (typeof cb === "function") { | ||
if (typeof optionsOrCb !== "object") | ||
throw new Error(`Expect http options but get ${typeof optionsOrCb}`); | ||
this.send(command, optionsOrCb || {}, cb); | ||
} | ||
else { | ||
return this.send(command, optionsOrCb); | ||
} | ||
} | ||
getSnapshot(args, optionsOrCb, cb) { | ||
const command = new GetSnapshotCommand_1.GetSnapshotCommand(args); | ||
if (typeof optionsOrCb === "function") { | ||
this.send(command, optionsOrCb); | ||
} | ||
else if (typeof cb === "function") { | ||
if (typeof optionsOrCb !== "object") | ||
throw new Error(`Expect http options but get ${typeof optionsOrCb}`); | ||
this.send(command, optionsOrCb || {}, cb); | ||
} | ||
else { | ||
return this.send(command, optionsOrCb); | ||
} | ||
} | ||
getStage(args, optionsOrCb, cb) { | ||
const command = new GetStageCommand_1.GetStageCommand(args); | ||
if (typeof optionsOrCb === "function") { | ||
this.send(command, optionsOrCb); | ||
} | ||
else if (typeof cb === "function") { | ||
if (typeof optionsOrCb !== "object") | ||
throw new Error(`Expect http options but get ${typeof optionsOrCb}`); | ||
this.send(command, optionsOrCb || {}, cb); | ||
} | ||
else { | ||
return this.send(command, optionsOrCb); | ||
} | ||
} | ||
getStageDeployment(args, optionsOrCb, cb) { | ||
const command = new GetStageDeploymentCommand_1.GetStageDeploymentCommand(args); | ||
if (typeof optionsOrCb === "function") { | ||
this.send(command, optionsOrCb); | ||
} | ||
else if (typeof cb === "function") { | ||
if (typeof optionsOrCb !== "object") | ||
throw new Error(`Expect http options but get ${typeof optionsOrCb}`); | ||
this.send(command, optionsOrCb || {}, cb); | ||
} | ||
else { | ||
return this.send(command, optionsOrCb); | ||
} | ||
} | ||
importGameConfiguration(args, optionsOrCb, cb) { | ||
const command = new ImportGameConfigurationCommand_1.ImportGameConfigurationCommand(args); | ||
if (typeof optionsOrCb === "function") { | ||
this.send(command, optionsOrCb); | ||
} | ||
else if (typeof cb === "function") { | ||
if (typeof optionsOrCb !== "object") | ||
throw new Error(`Expect http options but get ${typeof optionsOrCb}`); | ||
this.send(command, optionsOrCb || {}, cb); | ||
} | ||
else { | ||
return this.send(command, optionsOrCb); | ||
} | ||
} | ||
listExtensions(args, optionsOrCb, cb) { | ||
const command = new ListExtensionsCommand_1.ListExtensionsCommand(args); | ||
if (typeof optionsOrCb === "function") { | ||
this.send(command, optionsOrCb); | ||
} | ||
else if (typeof cb === "function") { | ||
if (typeof optionsOrCb !== "object") | ||
throw new Error(`Expect http options but get ${typeof optionsOrCb}`); | ||
this.send(command, optionsOrCb || {}, cb); | ||
} | ||
else { | ||
return this.send(command, optionsOrCb); | ||
} | ||
} | ||
listExtensionVersions(args, optionsOrCb, cb) { | ||
const command = new ListExtensionVersionsCommand_1.ListExtensionVersionsCommand(args); | ||
if (typeof optionsOrCb === "function") { | ||
this.send(command, optionsOrCb); | ||
} | ||
else if (typeof cb === "function") { | ||
if (typeof optionsOrCb !== "object") | ||
throw new Error(`Expect http options but get ${typeof optionsOrCb}`); | ||
this.send(command, optionsOrCb || {}, cb); | ||
} | ||
else { | ||
return this.send(command, optionsOrCb); | ||
} | ||
} | ||
listGames(args, optionsOrCb, cb) { | ||
const command = new ListGamesCommand_1.ListGamesCommand(args); | ||
if (typeof optionsOrCb === "function") { | ||
this.send(command, optionsOrCb); | ||
} | ||
else if (typeof cb === "function") { | ||
if (typeof optionsOrCb !== "object") | ||
throw new Error(`Expect http options but get ${typeof optionsOrCb}`); | ||
this.send(command, optionsOrCb || {}, cb); | ||
} | ||
else { | ||
return this.send(command, optionsOrCb); | ||
} | ||
} | ||
listGeneratedCodeJobs(args, optionsOrCb, cb) { | ||
const command = new ListGeneratedCodeJobsCommand_1.ListGeneratedCodeJobsCommand(args); | ||
if (typeof optionsOrCb === "function") { | ||
this.send(command, optionsOrCb); | ||
} | ||
else if (typeof cb === "function") { | ||
if (typeof optionsOrCb !== "object") | ||
throw new Error(`Expect http options but get ${typeof optionsOrCb}`); | ||
this.send(command, optionsOrCb || {}, cb); | ||
} | ||
else { | ||
return this.send(command, optionsOrCb); | ||
} | ||
} | ||
listSnapshots(args, optionsOrCb, cb) { | ||
const command = new ListSnapshotsCommand_1.ListSnapshotsCommand(args); | ||
if (typeof optionsOrCb === "function") { | ||
this.send(command, optionsOrCb); | ||
} | ||
else if (typeof cb === "function") { | ||
if (typeof optionsOrCb !== "object") | ||
throw new Error(`Expect http options but get ${typeof optionsOrCb}`); | ||
this.send(command, optionsOrCb || {}, cb); | ||
} | ||
else { | ||
return this.send(command, optionsOrCb); | ||
} | ||
} | ||
listStageDeployments(args, optionsOrCb, cb) { | ||
const command = new ListStageDeploymentsCommand_1.ListStageDeploymentsCommand(args); | ||
if (typeof optionsOrCb === "function") { | ||
this.send(command, optionsOrCb); | ||
} | ||
else if (typeof cb === "function") { | ||
if (typeof optionsOrCb !== "object") | ||
throw new Error(`Expect http options but get ${typeof optionsOrCb}`); | ||
this.send(command, optionsOrCb || {}, cb); | ||
} | ||
else { | ||
return this.send(command, optionsOrCb); | ||
} | ||
} | ||
listStages(args, optionsOrCb, cb) { | ||
const command = new ListStagesCommand_1.ListStagesCommand(args); | ||
if (typeof optionsOrCb === "function") { | ||
this.send(command, optionsOrCb); | ||
} | ||
else if (typeof cb === "function") { | ||
if (typeof optionsOrCb !== "object") | ||
throw new Error(`Expect http options but get ${typeof optionsOrCb}`); | ||
this.send(command, optionsOrCb || {}, cb); | ||
} | ||
else { | ||
return this.send(command, optionsOrCb); | ||
} | ||
} | ||
listTagsForResource(args, optionsOrCb, cb) { | ||
const command = new ListTagsForResourceCommand_1.ListTagsForResourceCommand(args); | ||
if (typeof optionsOrCb === "function") { | ||
this.send(command, optionsOrCb); | ||
} | ||
else if (typeof cb === "function") { | ||
if (typeof optionsOrCb !== "object") | ||
throw new Error(`Expect http options but get ${typeof optionsOrCb}`); | ||
this.send(command, optionsOrCb || {}, cb); | ||
} | ||
else { | ||
return this.send(command, optionsOrCb); | ||
} | ||
} | ||
startGeneratedCodeJob(args, optionsOrCb, cb) { | ||
const command = new StartGeneratedCodeJobCommand_1.StartGeneratedCodeJobCommand(args); | ||
if (typeof optionsOrCb === "function") { | ||
this.send(command, optionsOrCb); | ||
} | ||
else if (typeof cb === "function") { | ||
if (typeof optionsOrCb !== "object") | ||
throw new Error(`Expect http options but get ${typeof optionsOrCb}`); | ||
this.send(command, optionsOrCb || {}, cb); | ||
} | ||
else { | ||
return this.send(command, optionsOrCb); | ||
} | ||
} | ||
startStageDeployment(args, optionsOrCb, cb) { | ||
const command = new StartStageDeploymentCommand_1.StartStageDeploymentCommand(args); | ||
if (typeof optionsOrCb === "function") { | ||
this.send(command, optionsOrCb); | ||
} | ||
else if (typeof cb === "function") { | ||
if (typeof optionsOrCb !== "object") | ||
throw new Error(`Expect http options but get ${typeof optionsOrCb}`); | ||
this.send(command, optionsOrCb || {}, cb); | ||
} | ||
else { | ||
return this.send(command, optionsOrCb); | ||
} | ||
} | ||
tagResource(args, optionsOrCb, cb) { | ||
const command = new TagResourceCommand_1.TagResourceCommand(args); | ||
if (typeof optionsOrCb === "function") { | ||
this.send(command, optionsOrCb); | ||
} | ||
else if (typeof cb === "function") { | ||
if (typeof optionsOrCb !== "object") | ||
throw new Error(`Expect http options but get ${typeof optionsOrCb}`); | ||
this.send(command, optionsOrCb || {}, cb); | ||
} | ||
else { | ||
return this.send(command, optionsOrCb); | ||
} | ||
} | ||
untagResource(args, optionsOrCb, cb) { | ||
const command = new UntagResourceCommand_1.UntagResourceCommand(args); | ||
if (typeof optionsOrCb === "function") { | ||
this.send(command, optionsOrCb); | ||
} | ||
else if (typeof cb === "function") { | ||
if (typeof optionsOrCb !== "object") | ||
throw new Error(`Expect http options but get ${typeof optionsOrCb}`); | ||
this.send(command, optionsOrCb || {}, cb); | ||
} | ||
else { | ||
return this.send(command, optionsOrCb); | ||
} | ||
} | ||
updateGame(args, optionsOrCb, cb) { | ||
const command = new UpdateGameCommand_1.UpdateGameCommand(args); | ||
if (typeof optionsOrCb === "function") { | ||
this.send(command, optionsOrCb); | ||
} | ||
else if (typeof cb === "function") { | ||
if (typeof optionsOrCb !== "object") | ||
throw new Error(`Expect http options but get ${typeof optionsOrCb}`); | ||
this.send(command, optionsOrCb || {}, cb); | ||
} | ||
else { | ||
return this.send(command, optionsOrCb); | ||
} | ||
} | ||
updateGameConfiguration(args, optionsOrCb, cb) { | ||
const command = new UpdateGameConfigurationCommand_1.UpdateGameConfigurationCommand(args); | ||
if (typeof optionsOrCb === "function") { | ||
this.send(command, optionsOrCb); | ||
} | ||
else if (typeof cb === "function") { | ||
if (typeof optionsOrCb !== "object") | ||
throw new Error(`Expect http options but get ${typeof optionsOrCb}`); | ||
this.send(command, optionsOrCb || {}, cb); | ||
} | ||
else { | ||
return this.send(command, optionsOrCb); | ||
} | ||
} | ||
updateSnapshot(args, optionsOrCb, cb) { | ||
const command = new UpdateSnapshotCommand_1.UpdateSnapshotCommand(args); | ||
if (typeof optionsOrCb === "function") { | ||
this.send(command, optionsOrCb); | ||
} | ||
else if (typeof cb === "function") { | ||
if (typeof optionsOrCb !== "object") | ||
throw new Error(`Expect http options but get ${typeof optionsOrCb}`); | ||
this.send(command, optionsOrCb || {}, cb); | ||
} | ||
else { | ||
return this.send(command, optionsOrCb); | ||
} | ||
} | ||
updateStage(args, optionsOrCb, cb) { | ||
const command = new UpdateStageCommand_1.UpdateStageCommand(args); | ||
if (typeof optionsOrCb === "function") { | ||
this.send(command, optionsOrCb); | ||
} | ||
else if (typeof cb === "function") { | ||
if (typeof optionsOrCb !== "object") | ||
throw new Error(`Expect http options but get ${typeof optionsOrCb}`); | ||
this.send(command, optionsOrCb || {}, cb); | ||
} | ||
else { | ||
return this.send(command, optionsOrCb); | ||
} | ||
} | ||
} | ||
exports.GameSparks = GameSparks; | ||
(0, smithy_client_1.createAggregatedClient)(commands, GameSparks); |
@@ -0,1 +1,2 @@ | ||
import { createAggregatedClient } from "@aws-sdk/smithy-client"; | ||
import { CreateGameCommand } from "./commands/CreateGameCommand"; | ||
@@ -35,465 +36,39 @@ import { CreateSnapshotCommand, } from "./commands/CreateSnapshotCommand"; | ||
import { GameSparksClient } from "./GameSparksClient"; | ||
const commands = { | ||
CreateGameCommand, | ||
CreateSnapshotCommand, | ||
CreateStageCommand, | ||
DeleteGameCommand, | ||
DeleteStageCommand, | ||
DisconnectPlayerCommand, | ||
ExportSnapshotCommand, | ||
GetExtensionCommand, | ||
GetExtensionVersionCommand, | ||
GetGameCommand, | ||
GetGameConfigurationCommand, | ||
GetGeneratedCodeJobCommand, | ||
GetPlayerConnectionStatusCommand, | ||
GetSnapshotCommand, | ||
GetStageCommand, | ||
GetStageDeploymentCommand, | ||
ImportGameConfigurationCommand, | ||
ListExtensionsCommand, | ||
ListExtensionVersionsCommand, | ||
ListGamesCommand, | ||
ListGeneratedCodeJobsCommand, | ||
ListSnapshotsCommand, | ||
ListStageDeploymentsCommand, | ||
ListStagesCommand, | ||
ListTagsForResourceCommand, | ||
StartGeneratedCodeJobCommand, | ||
StartStageDeploymentCommand, | ||
TagResourceCommand, | ||
UntagResourceCommand, | ||
UpdateGameCommand, | ||
UpdateGameConfigurationCommand, | ||
UpdateSnapshotCommand, | ||
UpdateStageCommand, | ||
}; | ||
export class GameSparks extends GameSparksClient { | ||
createGame(args, optionsOrCb, cb) { | ||
const command = new CreateGameCommand(args); | ||
if (typeof optionsOrCb === "function") { | ||
this.send(command, optionsOrCb); | ||
} | ||
else if (typeof cb === "function") { | ||
if (typeof optionsOrCb !== "object") | ||
throw new Error(`Expect http options but get ${typeof optionsOrCb}`); | ||
this.send(command, optionsOrCb || {}, cb); | ||
} | ||
else { | ||
return this.send(command, optionsOrCb); | ||
} | ||
} | ||
createSnapshot(args, optionsOrCb, cb) { | ||
const command = new CreateSnapshotCommand(args); | ||
if (typeof optionsOrCb === "function") { | ||
this.send(command, optionsOrCb); | ||
} | ||
else if (typeof cb === "function") { | ||
if (typeof optionsOrCb !== "object") | ||
throw new Error(`Expect http options but get ${typeof optionsOrCb}`); | ||
this.send(command, optionsOrCb || {}, cb); | ||
} | ||
else { | ||
return this.send(command, optionsOrCb); | ||
} | ||
} | ||
createStage(args, optionsOrCb, cb) { | ||
const command = new CreateStageCommand(args); | ||
if (typeof optionsOrCb === "function") { | ||
this.send(command, optionsOrCb); | ||
} | ||
else if (typeof cb === "function") { | ||
if (typeof optionsOrCb !== "object") | ||
throw new Error(`Expect http options but get ${typeof optionsOrCb}`); | ||
this.send(command, optionsOrCb || {}, cb); | ||
} | ||
else { | ||
return this.send(command, optionsOrCb); | ||
} | ||
} | ||
deleteGame(args, optionsOrCb, cb) { | ||
const command = new DeleteGameCommand(args); | ||
if (typeof optionsOrCb === "function") { | ||
this.send(command, optionsOrCb); | ||
} | ||
else if (typeof cb === "function") { | ||
if (typeof optionsOrCb !== "object") | ||
throw new Error(`Expect http options but get ${typeof optionsOrCb}`); | ||
this.send(command, optionsOrCb || {}, cb); | ||
} | ||
else { | ||
return this.send(command, optionsOrCb); | ||
} | ||
} | ||
deleteStage(args, optionsOrCb, cb) { | ||
const command = new DeleteStageCommand(args); | ||
if (typeof optionsOrCb === "function") { | ||
this.send(command, optionsOrCb); | ||
} | ||
else if (typeof cb === "function") { | ||
if (typeof optionsOrCb !== "object") | ||
throw new Error(`Expect http options but get ${typeof optionsOrCb}`); | ||
this.send(command, optionsOrCb || {}, cb); | ||
} | ||
else { | ||
return this.send(command, optionsOrCb); | ||
} | ||
} | ||
disconnectPlayer(args, optionsOrCb, cb) { | ||
const command = new DisconnectPlayerCommand(args); | ||
if (typeof optionsOrCb === "function") { | ||
this.send(command, optionsOrCb); | ||
} | ||
else if (typeof cb === "function") { | ||
if (typeof optionsOrCb !== "object") | ||
throw new Error(`Expect http options but get ${typeof optionsOrCb}`); | ||
this.send(command, optionsOrCb || {}, cb); | ||
} | ||
else { | ||
return this.send(command, optionsOrCb); | ||
} | ||
} | ||
exportSnapshot(args, optionsOrCb, cb) { | ||
const command = new ExportSnapshotCommand(args); | ||
if (typeof optionsOrCb === "function") { | ||
this.send(command, optionsOrCb); | ||
} | ||
else if (typeof cb === "function") { | ||
if (typeof optionsOrCb !== "object") | ||
throw new Error(`Expect http options but get ${typeof optionsOrCb}`); | ||
this.send(command, optionsOrCb || {}, cb); | ||
} | ||
else { | ||
return this.send(command, optionsOrCb); | ||
} | ||
} | ||
getExtension(args, optionsOrCb, cb) { | ||
const command = new GetExtensionCommand(args); | ||
if (typeof optionsOrCb === "function") { | ||
this.send(command, optionsOrCb); | ||
} | ||
else if (typeof cb === "function") { | ||
if (typeof optionsOrCb !== "object") | ||
throw new Error(`Expect http options but get ${typeof optionsOrCb}`); | ||
this.send(command, optionsOrCb || {}, cb); | ||
} | ||
else { | ||
return this.send(command, optionsOrCb); | ||
} | ||
} | ||
getExtensionVersion(args, optionsOrCb, cb) { | ||
const command = new GetExtensionVersionCommand(args); | ||
if (typeof optionsOrCb === "function") { | ||
this.send(command, optionsOrCb); | ||
} | ||
else if (typeof cb === "function") { | ||
if (typeof optionsOrCb !== "object") | ||
throw new Error(`Expect http options but get ${typeof optionsOrCb}`); | ||
this.send(command, optionsOrCb || {}, cb); | ||
} | ||
else { | ||
return this.send(command, optionsOrCb); | ||
} | ||
} | ||
getGame(args, optionsOrCb, cb) { | ||
const command = new GetGameCommand(args); | ||
if (typeof optionsOrCb === "function") { | ||
this.send(command, optionsOrCb); | ||
} | ||
else if (typeof cb === "function") { | ||
if (typeof optionsOrCb !== "object") | ||
throw new Error(`Expect http options but get ${typeof optionsOrCb}`); | ||
this.send(command, optionsOrCb || {}, cb); | ||
} | ||
else { | ||
return this.send(command, optionsOrCb); | ||
} | ||
} | ||
getGameConfiguration(args, optionsOrCb, cb) { | ||
const command = new GetGameConfigurationCommand(args); | ||
if (typeof optionsOrCb === "function") { | ||
this.send(command, optionsOrCb); | ||
} | ||
else if (typeof cb === "function") { | ||
if (typeof optionsOrCb !== "object") | ||
throw new Error(`Expect http options but get ${typeof optionsOrCb}`); | ||
this.send(command, optionsOrCb || {}, cb); | ||
} | ||
else { | ||
return this.send(command, optionsOrCb); | ||
} | ||
} | ||
getGeneratedCodeJob(args, optionsOrCb, cb) { | ||
const command = new GetGeneratedCodeJobCommand(args); | ||
if (typeof optionsOrCb === "function") { | ||
this.send(command, optionsOrCb); | ||
} | ||
else if (typeof cb === "function") { | ||
if (typeof optionsOrCb !== "object") | ||
throw new Error(`Expect http options but get ${typeof optionsOrCb}`); | ||
this.send(command, optionsOrCb || {}, cb); | ||
} | ||
else { | ||
return this.send(command, optionsOrCb); | ||
} | ||
} | ||
getPlayerConnectionStatus(args, optionsOrCb, cb) { | ||
const command = new GetPlayerConnectionStatusCommand(args); | ||
if (typeof optionsOrCb === "function") { | ||
this.send(command, optionsOrCb); | ||
} | ||
else if (typeof cb === "function") { | ||
if (typeof optionsOrCb !== "object") | ||
throw new Error(`Expect http options but get ${typeof optionsOrCb}`); | ||
this.send(command, optionsOrCb || {}, cb); | ||
} | ||
else { | ||
return this.send(command, optionsOrCb); | ||
} | ||
} | ||
getSnapshot(args, optionsOrCb, cb) { | ||
const command = new GetSnapshotCommand(args); | ||
if (typeof optionsOrCb === "function") { | ||
this.send(command, optionsOrCb); | ||
} | ||
else if (typeof cb === "function") { | ||
if (typeof optionsOrCb !== "object") | ||
throw new Error(`Expect http options but get ${typeof optionsOrCb}`); | ||
this.send(command, optionsOrCb || {}, cb); | ||
} | ||
else { | ||
return this.send(command, optionsOrCb); | ||
} | ||
} | ||
getStage(args, optionsOrCb, cb) { | ||
const command = new GetStageCommand(args); | ||
if (typeof optionsOrCb === "function") { | ||
this.send(command, optionsOrCb); | ||
} | ||
else if (typeof cb === "function") { | ||
if (typeof optionsOrCb !== "object") | ||
throw new Error(`Expect http options but get ${typeof optionsOrCb}`); | ||
this.send(command, optionsOrCb || {}, cb); | ||
} | ||
else { | ||
return this.send(command, optionsOrCb); | ||
} | ||
} | ||
getStageDeployment(args, optionsOrCb, cb) { | ||
const command = new GetStageDeploymentCommand(args); | ||
if (typeof optionsOrCb === "function") { | ||
this.send(command, optionsOrCb); | ||
} | ||
else if (typeof cb === "function") { | ||
if (typeof optionsOrCb !== "object") | ||
throw new Error(`Expect http options but get ${typeof optionsOrCb}`); | ||
this.send(command, optionsOrCb || {}, cb); | ||
} | ||
else { | ||
return this.send(command, optionsOrCb); | ||
} | ||
} | ||
importGameConfiguration(args, optionsOrCb, cb) { | ||
const command = new ImportGameConfigurationCommand(args); | ||
if (typeof optionsOrCb === "function") { | ||
this.send(command, optionsOrCb); | ||
} | ||
else if (typeof cb === "function") { | ||
if (typeof optionsOrCb !== "object") | ||
throw new Error(`Expect http options but get ${typeof optionsOrCb}`); | ||
this.send(command, optionsOrCb || {}, cb); | ||
} | ||
else { | ||
return this.send(command, optionsOrCb); | ||
} | ||
} | ||
listExtensions(args, optionsOrCb, cb) { | ||
const command = new ListExtensionsCommand(args); | ||
if (typeof optionsOrCb === "function") { | ||
this.send(command, optionsOrCb); | ||
} | ||
else if (typeof cb === "function") { | ||
if (typeof optionsOrCb !== "object") | ||
throw new Error(`Expect http options but get ${typeof optionsOrCb}`); | ||
this.send(command, optionsOrCb || {}, cb); | ||
} | ||
else { | ||
return this.send(command, optionsOrCb); | ||
} | ||
} | ||
listExtensionVersions(args, optionsOrCb, cb) { | ||
const command = new ListExtensionVersionsCommand(args); | ||
if (typeof optionsOrCb === "function") { | ||
this.send(command, optionsOrCb); | ||
} | ||
else if (typeof cb === "function") { | ||
if (typeof optionsOrCb !== "object") | ||
throw new Error(`Expect http options but get ${typeof optionsOrCb}`); | ||
this.send(command, optionsOrCb || {}, cb); | ||
} | ||
else { | ||
return this.send(command, optionsOrCb); | ||
} | ||
} | ||
listGames(args, optionsOrCb, cb) { | ||
const command = new ListGamesCommand(args); | ||
if (typeof optionsOrCb === "function") { | ||
this.send(command, optionsOrCb); | ||
} | ||
else if (typeof cb === "function") { | ||
if (typeof optionsOrCb !== "object") | ||
throw new Error(`Expect http options but get ${typeof optionsOrCb}`); | ||
this.send(command, optionsOrCb || {}, cb); | ||
} | ||
else { | ||
return this.send(command, optionsOrCb); | ||
} | ||
} | ||
listGeneratedCodeJobs(args, optionsOrCb, cb) { | ||
const command = new ListGeneratedCodeJobsCommand(args); | ||
if (typeof optionsOrCb === "function") { | ||
this.send(command, optionsOrCb); | ||
} | ||
else if (typeof cb === "function") { | ||
if (typeof optionsOrCb !== "object") | ||
throw new Error(`Expect http options but get ${typeof optionsOrCb}`); | ||
this.send(command, optionsOrCb || {}, cb); | ||
} | ||
else { | ||
return this.send(command, optionsOrCb); | ||
} | ||
} | ||
listSnapshots(args, optionsOrCb, cb) { | ||
const command = new ListSnapshotsCommand(args); | ||
if (typeof optionsOrCb === "function") { | ||
this.send(command, optionsOrCb); | ||
} | ||
else if (typeof cb === "function") { | ||
if (typeof optionsOrCb !== "object") | ||
throw new Error(`Expect http options but get ${typeof optionsOrCb}`); | ||
this.send(command, optionsOrCb || {}, cb); | ||
} | ||
else { | ||
return this.send(command, optionsOrCb); | ||
} | ||
} | ||
listStageDeployments(args, optionsOrCb, cb) { | ||
const command = new ListStageDeploymentsCommand(args); | ||
if (typeof optionsOrCb === "function") { | ||
this.send(command, optionsOrCb); | ||
} | ||
else if (typeof cb === "function") { | ||
if (typeof optionsOrCb !== "object") | ||
throw new Error(`Expect http options but get ${typeof optionsOrCb}`); | ||
this.send(command, optionsOrCb || {}, cb); | ||
} | ||
else { | ||
return this.send(command, optionsOrCb); | ||
} | ||
} | ||
listStages(args, optionsOrCb, cb) { | ||
const command = new ListStagesCommand(args); | ||
if (typeof optionsOrCb === "function") { | ||
this.send(command, optionsOrCb); | ||
} | ||
else if (typeof cb === "function") { | ||
if (typeof optionsOrCb !== "object") | ||
throw new Error(`Expect http options but get ${typeof optionsOrCb}`); | ||
this.send(command, optionsOrCb || {}, cb); | ||
} | ||
else { | ||
return this.send(command, optionsOrCb); | ||
} | ||
} | ||
listTagsForResource(args, optionsOrCb, cb) { | ||
const command = new ListTagsForResourceCommand(args); | ||
if (typeof optionsOrCb === "function") { | ||
this.send(command, optionsOrCb); | ||
} | ||
else if (typeof cb === "function") { | ||
if (typeof optionsOrCb !== "object") | ||
throw new Error(`Expect http options but get ${typeof optionsOrCb}`); | ||
this.send(command, optionsOrCb || {}, cb); | ||
} | ||
else { | ||
return this.send(command, optionsOrCb); | ||
} | ||
} | ||
startGeneratedCodeJob(args, optionsOrCb, cb) { | ||
const command = new StartGeneratedCodeJobCommand(args); | ||
if (typeof optionsOrCb === "function") { | ||
this.send(command, optionsOrCb); | ||
} | ||
else if (typeof cb === "function") { | ||
if (typeof optionsOrCb !== "object") | ||
throw new Error(`Expect http options but get ${typeof optionsOrCb}`); | ||
this.send(command, optionsOrCb || {}, cb); | ||
} | ||
else { | ||
return this.send(command, optionsOrCb); | ||
} | ||
} | ||
startStageDeployment(args, optionsOrCb, cb) { | ||
const command = new StartStageDeploymentCommand(args); | ||
if (typeof optionsOrCb === "function") { | ||
this.send(command, optionsOrCb); | ||
} | ||
else if (typeof cb === "function") { | ||
if (typeof optionsOrCb !== "object") | ||
throw new Error(`Expect http options but get ${typeof optionsOrCb}`); | ||
this.send(command, optionsOrCb || {}, cb); | ||
} | ||
else { | ||
return this.send(command, optionsOrCb); | ||
} | ||
} | ||
tagResource(args, optionsOrCb, cb) { | ||
const command = new TagResourceCommand(args); | ||
if (typeof optionsOrCb === "function") { | ||
this.send(command, optionsOrCb); | ||
} | ||
else if (typeof cb === "function") { | ||
if (typeof optionsOrCb !== "object") | ||
throw new Error(`Expect http options but get ${typeof optionsOrCb}`); | ||
this.send(command, optionsOrCb || {}, cb); | ||
} | ||
else { | ||
return this.send(command, optionsOrCb); | ||
} | ||
} | ||
untagResource(args, optionsOrCb, cb) { | ||
const command = new UntagResourceCommand(args); | ||
if (typeof optionsOrCb === "function") { | ||
this.send(command, optionsOrCb); | ||
} | ||
else if (typeof cb === "function") { | ||
if (typeof optionsOrCb !== "object") | ||
throw new Error(`Expect http options but get ${typeof optionsOrCb}`); | ||
this.send(command, optionsOrCb || {}, cb); | ||
} | ||
else { | ||
return this.send(command, optionsOrCb); | ||
} | ||
} | ||
updateGame(args, optionsOrCb, cb) { | ||
const command = new UpdateGameCommand(args); | ||
if (typeof optionsOrCb === "function") { | ||
this.send(command, optionsOrCb); | ||
} | ||
else if (typeof cb === "function") { | ||
if (typeof optionsOrCb !== "object") | ||
throw new Error(`Expect http options but get ${typeof optionsOrCb}`); | ||
this.send(command, optionsOrCb || {}, cb); | ||
} | ||
else { | ||
return this.send(command, optionsOrCb); | ||
} | ||
} | ||
updateGameConfiguration(args, optionsOrCb, cb) { | ||
const command = new UpdateGameConfigurationCommand(args); | ||
if (typeof optionsOrCb === "function") { | ||
this.send(command, optionsOrCb); | ||
} | ||
else if (typeof cb === "function") { | ||
if (typeof optionsOrCb !== "object") | ||
throw new Error(`Expect http options but get ${typeof optionsOrCb}`); | ||
this.send(command, optionsOrCb || {}, cb); | ||
} | ||
else { | ||
return this.send(command, optionsOrCb); | ||
} | ||
} | ||
updateSnapshot(args, optionsOrCb, cb) { | ||
const command = new UpdateSnapshotCommand(args); | ||
if (typeof optionsOrCb === "function") { | ||
this.send(command, optionsOrCb); | ||
} | ||
else if (typeof cb === "function") { | ||
if (typeof optionsOrCb !== "object") | ||
throw new Error(`Expect http options but get ${typeof optionsOrCb}`); | ||
this.send(command, optionsOrCb || {}, cb); | ||
} | ||
else { | ||
return this.send(command, optionsOrCb); | ||
} | ||
} | ||
updateStage(args, optionsOrCb, cb) { | ||
const command = new UpdateStageCommand(args); | ||
if (typeof optionsOrCb === "function") { | ||
this.send(command, optionsOrCb); | ||
} | ||
else if (typeof cb === "function") { | ||
if (typeof optionsOrCb !== "object") | ||
throw new Error(`Expect http options but get ${typeof optionsOrCb}`); | ||
this.send(command, optionsOrCb || {}, cb); | ||
} | ||
else { | ||
return this.send(command, optionsOrCb); | ||
} | ||
} | ||
} | ||
createAggregatedClient(commands, GameSparks); |
@@ -36,13 +36,5 @@ import { HttpHandlerOptions as __HttpHandlerOptions } from "@aws-sdk/types"; | ||
import { GameSparksClient } from "./GameSparksClient"; | ||
/** | ||
* @public | ||
* <p/> | ||
*/ | ||
export declare class GameSparks extends GameSparksClient { | ||
export interface GameSparks { | ||
/** | ||
* @public | ||
* <p> | ||
* Creates a new game with an empty configuration. | ||
* After creating your game, you can update the configuration using <code>UpdateGameConfiguration</code> or <code>ImportGameConfiguration</code>. | ||
* </p> | ||
* @see {@link CreateGameCommand} | ||
*/ | ||
@@ -53,4 +45,3 @@ createGame(args: CreateGameCommandInput, options?: __HttpHandlerOptions): Promise<CreateGameCommandOutput>; | ||
/** | ||
* @public | ||
* <p>Creates a snapshot of the game configuration.</p> | ||
* @see {@link CreateSnapshotCommand} | ||
*/ | ||
@@ -61,4 +52,3 @@ createSnapshot(args: CreateSnapshotCommandInput, options?: __HttpHandlerOptions): Promise<CreateSnapshotCommandOutput>; | ||
/** | ||
* @public | ||
* <p>Creates a new stage for stage-by-stage game development and deployment.</p> | ||
* @see {@link CreateStageCommand} | ||
*/ | ||
@@ -69,4 +59,3 @@ createStage(args: CreateStageCommandInput, options?: __HttpHandlerOptions): Promise<CreateStageCommandOutput>; | ||
/** | ||
* @public | ||
* <p>Deletes a game.</p> | ||
* @see {@link DeleteGameCommand} | ||
*/ | ||
@@ -77,4 +66,3 @@ deleteGame(args: DeleteGameCommandInput, options?: __HttpHandlerOptions): Promise<DeleteGameCommandOutput>; | ||
/** | ||
* @public | ||
* <p>Deletes a stage from a game, along with the associated game runtime.</p> | ||
* @see {@link DeleteStageCommand} | ||
*/ | ||
@@ -85,7 +73,3 @@ deleteStage(args: DeleteStageCommandInput, options?: __HttpHandlerOptions): Promise<DeleteStageCommandOutput>; | ||
/** | ||
* @public | ||
* <p>Disconnects a player from the game runtime.</p> | ||
* <p> | ||
* If a player has multiple connections, this operation attempts to close all of them. | ||
* </p> | ||
* @see {@link DisconnectPlayerCommand} | ||
*/ | ||
@@ -96,4 +80,3 @@ disconnectPlayer(args: DisconnectPlayerCommandInput, options?: __HttpHandlerOptions): Promise<DisconnectPlayerCommandOutput>; | ||
/** | ||
* @public | ||
* <p>Exports a game configuration snapshot.</p> | ||
* @see {@link ExportSnapshotCommand} | ||
*/ | ||
@@ -104,4 +87,3 @@ exportSnapshot(args: ExportSnapshotCommandInput, options?: __HttpHandlerOptions): Promise<ExportSnapshotCommandOutput>; | ||
/** | ||
* @public | ||
* <p>Gets details about a specified extension.</p> | ||
* @see {@link GetExtensionCommand} | ||
*/ | ||
@@ -112,4 +94,3 @@ getExtension(args: GetExtensionCommandInput, options?: __HttpHandlerOptions): Promise<GetExtensionCommandOutput>; | ||
/** | ||
* @public | ||
* <p>Gets details about a specified extension version.</p> | ||
* @see {@link GetExtensionVersionCommand} | ||
*/ | ||
@@ -120,4 +101,3 @@ getExtensionVersion(args: GetExtensionVersionCommandInput, options?: __HttpHandlerOptions): Promise<GetExtensionVersionCommandOutput>; | ||
/** | ||
* @public | ||
* <p>Gets details about a game.</p> | ||
* @see {@link GetGameCommand} | ||
*/ | ||
@@ -128,4 +108,3 @@ getGame(args: GetGameCommandInput, options?: __HttpHandlerOptions): Promise<GetGameCommandOutput>; | ||
/** | ||
* @public | ||
* <p>Gets the configuration of the game.</p> | ||
* @see {@link GetGameConfigurationCommand} | ||
*/ | ||
@@ -136,4 +115,3 @@ getGameConfiguration(args: GetGameConfigurationCommandInput, options?: __HttpHandlerOptions): Promise<GetGameConfigurationCommandOutput>; | ||
/** | ||
* @public | ||
* <p>Gets details about a job that is generating code for a snapshot.</p> | ||
* @see {@link GetGeneratedCodeJobCommand} | ||
*/ | ||
@@ -144,8 +122,3 @@ getGeneratedCodeJob(args: GetGeneratedCodeJobCommandInput, options?: __HttpHandlerOptions): Promise<GetGeneratedCodeJobCommandOutput>; | ||
/** | ||
* @public | ||
* <p>Gets the status of a player's connection to the game runtime.</p> | ||
* <p> | ||
* It's possible for a single player to have multiple connections to the game runtime. | ||
* If a player is not connected, this operation returns an empty list. | ||
* </p> | ||
* @see {@link GetPlayerConnectionStatusCommand} | ||
*/ | ||
@@ -156,4 +129,3 @@ getPlayerConnectionStatus(args: GetPlayerConnectionStatusCommandInput, options?: __HttpHandlerOptions): Promise<GetPlayerConnectionStatusCommandOutput>; | ||
/** | ||
* @public | ||
* <p>Gets a copy of the game configuration in a snapshot.</p> | ||
* @see {@link GetSnapshotCommand} | ||
*/ | ||
@@ -164,4 +136,3 @@ getSnapshot(args: GetSnapshotCommandInput, options?: __HttpHandlerOptions): Promise<GetSnapshotCommandOutput>; | ||
/** | ||
* @public | ||
* <p>Gets information about a stage.</p> | ||
* @see {@link GetStageCommand} | ||
*/ | ||
@@ -172,4 +143,3 @@ getStage(args: GetStageCommandInput, options?: __HttpHandlerOptions): Promise<GetStageCommandOutput>; | ||
/** | ||
* @public | ||
* <p>Gets information about a stage deployment.</p> | ||
* @see {@link GetStageDeploymentCommand} | ||
*/ | ||
@@ -180,9 +150,3 @@ getStageDeployment(args: GetStageDeploymentCommandInput, options?: __HttpHandlerOptions): Promise<GetStageDeploymentCommandOutput>; | ||
/** | ||
* @public | ||
* <p>Imports a game configuration.</p> | ||
* <p> | ||
* This operation replaces the current configuration of the game with the provided input. | ||
* This is not a reversible operation. If you want to preserve the previous configuration, | ||
* use <code>CreateSnapshot</code> to make a new snapshot before importing. | ||
* </p> | ||
* @see {@link ImportGameConfigurationCommand} | ||
*/ | ||
@@ -193,7 +157,3 @@ importGameConfiguration(args: ImportGameConfigurationCommandInput, options?: __HttpHandlerOptions): Promise<ImportGameConfigurationCommandOutput>; | ||
/** | ||
* @public | ||
* <p>Gets a paginated list of available extensions.</p> | ||
* <p> | ||
* Extensions provide features that games can use from scripts. | ||
* </p> | ||
* @see {@link ListExtensionsCommand} | ||
*/ | ||
@@ -204,8 +164,3 @@ listExtensions(args: ListExtensionsCommandInput, options?: __HttpHandlerOptions): Promise<ListExtensionsCommandOutput>; | ||
/** | ||
* @public | ||
* <p>Gets a paginated list of available versions for the extension.</p> | ||
* <p> | ||
* Each time an API change is made to an extension, the version is incremented. | ||
* The list retrieved by this operation shows the versions that are currently available. | ||
* </p> | ||
* @see {@link ListExtensionVersionsCommand} | ||
*/ | ||
@@ -216,4 +171,3 @@ listExtensionVersions(args: ListExtensionVersionsCommandInput, options?: __HttpHandlerOptions): Promise<ListExtensionVersionsCommandOutput>; | ||
/** | ||
* @public | ||
* <p>Gets a paginated list of games.</p> | ||
* @see {@link ListGamesCommand} | ||
*/ | ||
@@ -224,4 +178,3 @@ listGames(args: ListGamesCommandInput, options?: __HttpHandlerOptions): Promise<ListGamesCommandOutput>; | ||
/** | ||
* @public | ||
* <p>Gets a paginated list of code generation jobs for a snapshot.</p> | ||
* @see {@link ListGeneratedCodeJobsCommand} | ||
*/ | ||
@@ -232,4 +185,3 @@ listGeneratedCodeJobs(args: ListGeneratedCodeJobsCommandInput, options?: __HttpHandlerOptions): Promise<ListGeneratedCodeJobsCommandOutput>; | ||
/** | ||
* @public | ||
* <p>Gets a paginated list of snapshot summaries from the game.</p> | ||
* @see {@link ListSnapshotsCommand} | ||
*/ | ||
@@ -240,4 +192,3 @@ listSnapshots(args: ListSnapshotsCommandInput, options?: __HttpHandlerOptions): Promise<ListSnapshotsCommandOutput>; | ||
/** | ||
* @public | ||
* <p>Gets a paginated list of stage deployment summaries from the game.</p> | ||
* @see {@link ListStageDeploymentsCommand} | ||
*/ | ||
@@ -248,4 +199,3 @@ listStageDeployments(args: ListStageDeploymentsCommandInput, options?: __HttpHandlerOptions): Promise<ListStageDeploymentsCommandOutput>; | ||
/** | ||
* @public | ||
* <p>Gets a paginated list of stage summaries from the game.</p> | ||
* @see {@link ListStagesCommand} | ||
*/ | ||
@@ -256,4 +206,3 @@ listStages(args: ListStagesCommandInput, options?: __HttpHandlerOptions): Promise<ListStagesCommandOutput>; | ||
/** | ||
* @public | ||
* <p>Lists the tags associated with a GameSparks resource.</p> | ||
* @see {@link ListTagsForResourceCommand} | ||
*/ | ||
@@ -264,7 +213,3 @@ listTagsForResource(args: ListTagsForResourceCommandInput, options?: __HttpHandlerOptions): Promise<ListTagsForResourceCommandOutput>; | ||
/** | ||
* @public | ||
* <p> | ||
* Starts an asynchronous process that generates client code for system-defined and custom messages. | ||
* The resulting code is collected as a .zip file and uploaded to a pre-signed Amazon S3 URL. | ||
* </p> | ||
* @see {@link StartGeneratedCodeJobCommand} | ||
*/ | ||
@@ -275,13 +220,3 @@ startGeneratedCodeJob(args: StartGeneratedCodeJobCommandInput, options?: __HttpHandlerOptions): Promise<StartGeneratedCodeJobCommandOutput>; | ||
/** | ||
* @public | ||
* <p>Deploys a snapshot to the stage and creates a new game runtime.</p> | ||
* <p> | ||
* After you call this operation, you can check the deployment status by using <code>GetStageDeployment</code>. | ||
* </p> | ||
* <p> | ||
* If there are any players connected to the previous game runtime, then both runtimes persist. | ||
* Existing connections to the previous runtime are maintained. | ||
* When players disconnect and reconnect, they connect to the new runtime. | ||
* After there are no connections to the previous game runtime, it is deleted. | ||
* </p> | ||
* @see {@link StartStageDeploymentCommand} | ||
*/ | ||
@@ -292,4 +227,3 @@ startStageDeployment(args: StartStageDeploymentCommandInput, options?: __HttpHandlerOptions): Promise<StartStageDeploymentCommandOutput>; | ||
/** | ||
* @public | ||
* <p>Adds tags to a GameSparks resource.</p> | ||
* @see {@link TagResourceCommand} | ||
*/ | ||
@@ -300,4 +234,3 @@ tagResource(args: TagResourceCommandInput, options?: __HttpHandlerOptions): Promise<TagResourceCommandOutput>; | ||
/** | ||
* @public | ||
* <p>Removes tags from a GameSparks resource.</p> | ||
* @see {@link UntagResourceCommand} | ||
*/ | ||
@@ -308,4 +241,3 @@ untagResource(args: UntagResourceCommandInput, options?: __HttpHandlerOptions): Promise<UntagResourceCommandOutput>; | ||
/** | ||
* @public | ||
* <p>Updates details of the game.</p> | ||
* @see {@link UpdateGameCommand} | ||
*/ | ||
@@ -316,4 +248,3 @@ updateGame(args: UpdateGameCommandInput, options?: __HttpHandlerOptions): Promise<UpdateGameCommandOutput>; | ||
/** | ||
* @public | ||
* <p>Updates one or more sections of the game configuration.</p> | ||
* @see {@link UpdateGameConfigurationCommand} | ||
*/ | ||
@@ -324,4 +255,3 @@ updateGameConfiguration(args: UpdateGameConfigurationCommandInput, options?: __HttpHandlerOptions): Promise<UpdateGameConfigurationCommandOutput>; | ||
/** | ||
* @public | ||
* <p>Updates the metadata of a GameSparks snapshot.</p> | ||
* @see {@link UpdateSnapshotCommand} | ||
*/ | ||
@@ -332,4 +262,3 @@ updateSnapshot(args: UpdateSnapshotCommandInput, options?: __HttpHandlerOptions): Promise<UpdateSnapshotCommandOutput>; | ||
/** | ||
* @public | ||
* <p>Updates the metadata of a stage.</p> | ||
* @see {@link UpdateStageCommand} | ||
*/ | ||
@@ -340,1 +269,7 @@ updateStage(args: UpdateStageCommandInput, options?: __HttpHandlerOptions): Promise<UpdateStageCommandOutput>; | ||
} | ||
/** | ||
* @public | ||
* <p/> | ||
*/ | ||
export declare class GameSparks extends GameSparksClient implements GameSparks { | ||
} |
@@ -135,3 +135,3 @@ import { HttpHandlerOptions as __HttpHandlerOptions } from "@aws-sdk/types"; | ||
import { GameSparksClient } from "./GameSparksClient"; | ||
export declare class GameSparks extends GameSparksClient { | ||
export interface GameSparks { | ||
createGame( | ||
@@ -567,1 +567,4 @@ args: CreateGameCommandInput, | ||
} | ||
export declare class GameSparks | ||
extends GameSparksClient | ||
implements GameSparks {} |
{ | ||
"name": "@aws-sdk/client-gamesparks", | ||
"description": "AWS SDK for JavaScript Gamesparks Client for Node.js, Browser and React Native", | ||
"version": "3.315.0", | ||
"version": "3.316.0", | ||
"scripts": { | ||
@@ -24,5 +24,5 @@ "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'", | ||
"@aws-crypto/sha256-js": "3.0.0", | ||
"@aws-sdk/client-sts": "3.315.0", | ||
"@aws-sdk/client-sts": "3.316.0", | ||
"@aws-sdk/config-resolver": "3.310.0", | ||
"@aws-sdk/credential-provider-node": "3.315.0", | ||
"@aws-sdk/credential-provider-node": "3.316.0", | ||
"@aws-sdk/fetch-http-handler": "3.310.0", | ||
@@ -44,3 +44,3 @@ "@aws-sdk/hash-node": "3.310.0", | ||
"@aws-sdk/protocol-http": "3.310.0", | ||
"@aws-sdk/smithy-client": "3.315.0", | ||
"@aws-sdk/smithy-client": "3.316.0", | ||
"@aws-sdk/types": "3.310.0", | ||
@@ -51,4 +51,4 @@ "@aws-sdk/url-parser": "3.310.0", | ||
"@aws-sdk/util-body-length-node": "3.310.0", | ||
"@aws-sdk/util-defaults-mode-browser": "3.315.0", | ||
"@aws-sdk/util-defaults-mode-node": "3.315.0", | ||
"@aws-sdk/util-defaults-mode-browser": "3.316.0", | ||
"@aws-sdk/util-defaults-mode-node": "3.316.0", | ||
"@aws-sdk/util-endpoints": "3.310.0", | ||
@@ -55,0 +55,0 @@ "@aws-sdk/util-retry": "3.310.0", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
775448
17839
+ Added@aws-sdk/client-sso@3.316.0(transitive)
+ Added@aws-sdk/client-sso-oidc@3.316.0(transitive)
+ Added@aws-sdk/client-sts@3.316.0(transitive)
+ Added@aws-sdk/credential-provider-ini@3.316.0(transitive)
+ Added@aws-sdk/credential-provider-node@3.316.0(transitive)
+ Added@aws-sdk/credential-provider-sso@3.316.0(transitive)
+ Added@aws-sdk/smithy-client@3.316.0(transitive)
+ Added@aws-sdk/token-providers@3.316.0(transitive)
+ Added@aws-sdk/util-defaults-mode-browser@3.316.0(transitive)
+ Added@aws-sdk/util-defaults-mode-node@3.316.0(transitive)
- Removed@aws-sdk/client-sso@3.315.0(transitive)
- Removed@aws-sdk/client-sso-oidc@3.315.0(transitive)
- Removed@aws-sdk/client-sts@3.315.0(transitive)
- Removed@aws-sdk/credential-provider-ini@3.315.0(transitive)
- Removed@aws-sdk/credential-provider-node@3.315.0(transitive)
- Removed@aws-sdk/credential-provider-sso@3.315.0(transitive)
- Removed@aws-sdk/smithy-client@3.315.0(transitive)
- Removed@aws-sdk/token-providers@3.315.0(transitive)
- Removed@aws-sdk/util-defaults-mode-browser@3.315.0(transitive)
- Removed@aws-sdk/util-defaults-mode-node@3.315.0(transitive)
Updated@aws-sdk/client-sts@3.316.0