From 4089c56a8b2d6190dddc113d63b2ef2d2550f3f7 Mon Sep 17 00:00:00 2001 From: Isaiah Vita <82135527+isaiahvita@users.noreply.github.com> Date: Thu, 19 Oct 2023 09:40:21 -0700 Subject: [PATCH] Remove gamesparks (#5027) --- CHANGELOG_PENDING.md | 2 + models/apis/gamesparks/2021-08-17/api-2.json | 2793 ------ models/apis/gamesparks/2021-08-17/docs-2.json | 1024 -- .../2021-08-17/endpoint-rule-set-1.json | 315 - .../2021-08-17/endpoint-tests-1.json | 147 - .../gamesparks/2021-08-17/examples-1.json | 5 - .../gamesparks/2021-08-17/paginators-1.json | 46 - service/gamesparks/api.go | 8773 ----------------- service/gamesparks/doc.go | 26 - service/gamesparks/errors.go | 62 - .../gamesparks/gamesparksiface/interface.go | 217 - service/gamesparks/service.go | 106 - 12 files changed, 2 insertions(+), 13514 deletions(-) delete mode 100644 models/apis/gamesparks/2021-08-17/api-2.json delete mode 100644 models/apis/gamesparks/2021-08-17/docs-2.json delete mode 100644 models/apis/gamesparks/2021-08-17/endpoint-rule-set-1.json delete mode 100644 models/apis/gamesparks/2021-08-17/endpoint-tests-1.json delete mode 100644 models/apis/gamesparks/2021-08-17/examples-1.json delete mode 100644 models/apis/gamesparks/2021-08-17/paginators-1.json delete mode 100644 service/gamesparks/api.go delete mode 100644 service/gamesparks/doc.go delete mode 100644 service/gamesparks/errors.go delete mode 100644 service/gamesparks/gamesparksiface/interface.go delete mode 100644 service/gamesparks/service.go diff --git a/CHANGELOG_PENDING.md b/CHANGELOG_PENDING.md index 8a1927a39c..7088521e18 100644 --- a/CHANGELOG_PENDING.md +++ b/CHANGELOG_PENDING.md @@ -1,4 +1,6 @@ ### SDK Features +* `service/gamesparks`: Deprecate Gamesparks + * This change removes the gamesparks service, since it is deprecated. ### SDK Enhancements diff --git a/models/apis/gamesparks/2021-08-17/api-2.json b/models/apis/gamesparks/2021-08-17/api-2.json deleted file mode 100644 index 8152d4772f..0000000000 --- a/models/apis/gamesparks/2021-08-17/api-2.json +++ /dev/null @@ -1,2793 +0,0 @@ -{ - "metadata": { - "apiVersion": "2021-08-17", - "endpointPrefix": "gamesparks", - "jsonVersion": "1.1", - "protocol": "rest-json", - "serviceFullName": "GameSparks", - "serviceId": "GameSparks", - "signatureVersion": "v4", - "signingName": "gamesparks", - "uid": "gamesparks-2021-08-17" - }, - "operations": { - "CreateGame": { - "errors": [ - { - "shape": "ValidationException" - }, - { - "shape": "AccessDeniedException" - }, - { - "shape": "ThrottlingException" - }, - { - "shape": "ConflictException" - }, - { - "shape": "InternalServerException" - }, - { - "shape": "ServiceQuotaExceededException" - } - ], - "http": { - "method": "POST", - "requestUri": "/game", - "responseCode": 200 - }, - "idempotent": true, - "input": { - "shape": "CreateGameRequest" - }, - "name": "CreateGame", - "output": { - "shape": "CreateGameResult" - } - }, - "CreateSnapshot": { - "errors": [ - { - "shape": "ValidationException" - }, - { - "shape": "AccessDeniedException" - }, - { - "shape": "ThrottlingException" - }, - { - "shape": "ConflictException" - }, - { - "shape": "ResourceNotFoundException" - }, - { - "shape": "InternalServerException" - } - ], - "http": { - "method": "POST", - "requestUri": "/game/{GameName}/snapshot", - "responseCode": 200 - }, - "input": { - "shape": "CreateSnapshotRequest" - }, - "name": "CreateSnapshot", - "output": { - "shape": "CreateSnapshotResult" - } - }, - "CreateStage": { - "errors": [ - { - "shape": "ValidationException" - }, - { - "shape": "AccessDeniedException" - }, - { - "shape": "ThrottlingException" - }, - { - "shape": "ConflictException" - }, - { - "shape": "ResourceNotFoundException" - }, - { - "shape": "InternalServerException" - } - ], - "http": { - "method": "POST", - "requestUri": "/game/{GameName}/stage", - "responseCode": 200 - }, - "idempotent": true, - "input": { - "shape": "CreateStageRequest" - }, - "name": "CreateStage", - "output": { - "shape": "CreateStageResult" - } - }, - "DeleteGame": { - "errors": [ - { - "shape": "ValidationException" - }, - { - "shape": "AccessDeniedException" - }, - { - "shape": "ThrottlingException" - }, - { - "shape": "ConflictException" - }, - { - "shape": "InternalServerException" - } - ], - "http": { - "method": "DELETE", - "requestUri": "/game/{GameName}", - "responseCode": 200 - }, - "idempotent": true, - "input": { - "shape": "DeleteGameRequest" - }, - "name": "DeleteGame", - "output": { - "shape": "DeleteGameResult" - } - }, - "DeleteStage": { - "errors": [ - { - "shape": "ValidationException" - }, - { - "shape": "AccessDeniedException" - }, - { - "shape": "ThrottlingException" - }, - { - "shape": "ConflictException" - }, - { - "shape": "ResourceNotFoundException" - }, - { - "shape": "InternalServerException" - } - ], - "http": { - "method": "DELETE", - "requestUri": "/game/{GameName}/stage/{StageName}", - "responseCode": 200 - }, - "idempotent": true, - "input": { - "shape": "DeleteStageRequest" - }, - "name": "DeleteStage", - "output": { - "shape": "DeleteStageResult" - } - }, - "DisconnectPlayer": { - "errors": [ - { - "shape": "ValidationException" - }, - { - "shape": "AccessDeniedException" - }, - { - "shape": "ThrottlingException" - }, - { - "shape": "ResourceNotFoundException" - }, - { - "shape": "InternalServerException" - } - ], - "http": { - "method": "POST", - "requestUri": "/runtime/game/{GameName}/stage/{StageName}/player/{PlayerId}/disconnect", - "responseCode": 200 - }, - "idempotent": true, - "input": { - "shape": "DisconnectPlayerRequest" - }, - "name": "DisconnectPlayer", - "output": { - "shape": "DisconnectPlayerResult" - } - }, - "ExportSnapshot": { - "errors": [ - { - "shape": "ValidationException" - }, - { - "shape": "AccessDeniedException" - }, - { - "shape": "ThrottlingException" - }, - { - "shape": "ResourceNotFoundException" - }, - { - "shape": "InternalServerException" - } - ], - "http": { - "method": "GET", - "requestUri": "/game/{GameName}/snapshot/{SnapshotId}/export", - "responseCode": 200 - }, - "input": { - "shape": "ExportSnapshotRequest" - }, - "name": "ExportSnapshot", - "output": { - "shape": "ExportSnapshotResult" - } - }, - "GetExtension": { - "errors": [ - { - "shape": "ValidationException" - }, - { - "shape": "AccessDeniedException" - }, - { - "shape": "ThrottlingException" - }, - { - "shape": "ResourceNotFoundException" - }, - { - "shape": "InternalServerException" - } - ], - "http": { - "method": "GET", - "requestUri": "/extension/{Namespace}/{Name}", - "responseCode": 200 - }, - "input": { - "shape": "GetExtensionRequest" - }, - "name": "GetExtension", - "output": { - "shape": "GetExtensionResult" - } - }, - "GetExtensionVersion": { - "errors": [ - { - "shape": "ValidationException" - }, - { - "shape": "AccessDeniedException" - }, - { - "shape": "ThrottlingException" - }, - { - "shape": "ResourceNotFoundException" - }, - { - "shape": "InternalServerException" - } - ], - "http": { - "method": "GET", - "requestUri": "/extension/{Namespace}/{Name}/version/{ExtensionVersion}", - "responseCode": 200 - }, - "input": { - "shape": "GetExtensionVersionRequest" - }, - "name": "GetExtensionVersion", - "output": { - "shape": "GetExtensionVersionResult" - } - }, - "GetGame": { - "errors": [ - { - "shape": "ValidationException" - }, - { - "shape": "AccessDeniedException" - }, - { - "shape": "ThrottlingException" - }, - { - "shape": "ResourceNotFoundException" - }, - { - "shape": "InternalServerException" - } - ], - "http": { - "method": "GET", - "requestUri": "/game/{GameName}", - "responseCode": 200 - }, - "input": { - "shape": "GetGameRequest" - }, - "name": "GetGame", - "output": { - "shape": "GetGameResult" - } - }, - "GetGameConfiguration": { - "errors": [ - { - "shape": "ValidationException" - }, - { - "shape": "AccessDeniedException" - }, - { - "shape": "ThrottlingException" - }, - { - "shape": "ResourceNotFoundException" - }, - { - "shape": "InternalServerException" - } - ], - "http": { - "method": "GET", - "requestUri": "/game/{GameName}/configuration", - "responseCode": 200 - }, - "input": { - "shape": "GetGameConfigurationRequest" - }, - "name": "GetGameConfiguration", - "output": { - "shape": "GetGameConfigurationResult" - } - }, - "GetGeneratedCodeJob": { - "errors": [ - { - "shape": "ValidationException" - }, - { - "shape": "AccessDeniedException" - }, - { - "shape": "ThrottlingException" - }, - { - "shape": "ResourceNotFoundException" - }, - { - "shape": "InternalServerException" - } - ], - "http": { - "method": "GET", - "requestUri": "/game/{GameName}/snapshot/{SnapshotId}/generated-sdk-code-job/{JobId}", - "responseCode": 200 - }, - "input": { - "shape": "GetGeneratedCodeJobRequest" - }, - "name": "GetGeneratedCodeJob", - "output": { - "shape": "GetGeneratedCodeJobResult" - } - }, - "GetPlayerConnectionStatus": { - "errors": [ - { - "shape": "ValidationException" - }, - { - "shape": "AccessDeniedException" - }, - { - "shape": "ThrottlingException" - }, - { - "shape": "ResourceNotFoundException" - }, - { - "shape": "InternalServerException" - } - ], - "http": { - "method": "GET", - "requestUri": "/runtime/game/{GameName}/stage/{StageName}/player/{PlayerId}/connection", - "responseCode": 200 - }, - "input": { - "shape": "GetPlayerConnectionStatusRequest" - }, - "name": "GetPlayerConnectionStatus", - "output": { - "shape": "GetPlayerConnectionStatusResult" - } - }, - "GetSnapshot": { - "errors": [ - { - "shape": "ValidationException" - }, - { - "shape": "AccessDeniedException" - }, - { - "shape": "ThrottlingException" - }, - { - "shape": "ResourceNotFoundException" - }, - { - "shape": "InternalServerException" - } - ], - "http": { - "method": "GET", - "requestUri": "/game/{GameName}/snapshot/{SnapshotId}", - "responseCode": 200 - }, - "input": { - "shape": "GetSnapshotRequest" - }, - "name": "GetSnapshot", - "output": { - "shape": "GetSnapshotResult" - } - }, - "GetStage": { - "errors": [ - { - "shape": "ValidationException" - }, - { - "shape": "AccessDeniedException" - }, - { - "shape": "ThrottlingException" - }, - { - "shape": "ResourceNotFoundException" - }, - { - "shape": "InternalServerException" - } - ], - "http": { - "method": "GET", - "requestUri": "/game/{GameName}/stage/{StageName}", - "responseCode": 200 - }, - "input": { - "shape": "GetStageRequest" - }, - "name": "GetStage", - "output": { - "shape": "GetStageResult" - } - }, - "GetStageDeployment": { - "errors": [ - { - "shape": "ValidationException" - }, - { - "shape": "AccessDeniedException" - }, - { - "shape": "ThrottlingException" - }, - { - "shape": "ResourceNotFoundException" - }, - { - "shape": "InternalServerException" - } - ], - "http": { - "method": "GET", - "requestUri": "/game/{GameName}/stage/{StageName}/deployment", - "responseCode": 200 - }, - "input": { - "shape": "GetStageDeploymentRequest" - }, - "name": "GetStageDeployment", - "output": { - "shape": "GetStageDeploymentResult" - } - }, - "ImportGameConfiguration": { - "errors": [ - { - "shape": "ValidationException" - }, - { - "shape": "AccessDeniedException" - }, - { - "shape": "ThrottlingException" - }, - { - "shape": "ResourceNotFoundException" - }, - { - "shape": "InternalServerException" - }, - { - "shape": "ServiceQuotaExceededException" - } - ], - "http": { - "method": "PUT", - "requestUri": "/game/{GameName}/configuration", - "responseCode": 200 - }, - "idempotent": true, - "input": { - "shape": "ImportGameConfigurationRequest" - }, - "name": "ImportGameConfiguration", - "output": { - "shape": "ImportGameConfigurationResult" - } - }, - "ListExtensionVersions": { - "errors": [ - { - "shape": "ValidationException" - }, - { - "shape": "AccessDeniedException" - }, - { - "shape": "ThrottlingException" - }, - { - "shape": "ResourceNotFoundException" - }, - { - "shape": "InternalServerException" - } - ], - "http": { - "method": "GET", - "requestUri": "/extension/{Namespace}/{Name}/version", - "responseCode": 200 - }, - "input": { - "shape": "ListExtensionVersionsRequest" - }, - "name": "ListExtensionVersions", - "output": { - "shape": "ListExtensionVersionsResult" - } - }, - "ListExtensions": { - "errors": [ - { - "shape": "ValidationException" - }, - { - "shape": "AccessDeniedException" - }, - { - "shape": "ThrottlingException" - }, - { - "shape": "InternalServerException" - } - ], - "http": { - "method": "GET", - "requestUri": "/extension", - "responseCode": 200 - }, - "input": { - "shape": "ListExtensionsRequest" - }, - "name": "ListExtensions", - "output": { - "shape": "ListExtensionsResult" - } - }, - "ListGames": { - "errors": [ - { - "shape": "ValidationException" - }, - { - "shape": "AccessDeniedException" - }, - { - "shape": "ThrottlingException" - }, - { - "shape": "InternalServerException" - } - ], - "http": { - "method": "GET", - "requestUri": "/game", - "responseCode": 200 - }, - "input": { - "shape": "ListGamesRequest" - }, - "name": "ListGames", - "output": { - "shape": "ListGamesResult" - } - }, - "ListGeneratedCodeJobs": { - "errors": [ - { - "shape": "ValidationException" - }, - { - "shape": "AccessDeniedException" - }, - { - "shape": "ThrottlingException" - }, - { - "shape": "ResourceNotFoundException" - }, - { - "shape": "InternalServerException" - } - ], - "http": { - "method": "GET", - "requestUri": "/game/{GameName}/snapshot/{SnapshotId}/generated-sdk-code-jobs", - "responseCode": 200 - }, - "input": { - "shape": "ListGeneratedCodeJobsRequest" - }, - "name": "ListGeneratedCodeJobs", - "output": { - "shape": "ListGeneratedCodeJobsResult" - } - }, - "ListSnapshots": { - "errors": [ - { - "shape": "ValidationException" - }, - { - "shape": "AccessDeniedException" - }, - { - "shape": "ThrottlingException" - }, - { - "shape": "ResourceNotFoundException" - }, - { - "shape": "InternalServerException" - } - ], - "http": { - "method": "GET", - "requestUri": "/game/{GameName}/snapshot", - "responseCode": 200 - }, - "input": { - "shape": "ListSnapshotsRequest" - }, - "name": "ListSnapshots", - "output": { - "shape": "ListSnapshotsResult" - } - }, - "ListStageDeployments": { - "errors": [ - { - "shape": "ValidationException" - }, - { - "shape": "AccessDeniedException" - }, - { - "shape": "ThrottlingException" - }, - { - "shape": "ResourceNotFoundException" - }, - { - "shape": "InternalServerException" - } - ], - "http": { - "method": "GET", - "requestUri": "/game/{GameName}/stage/{StageName}/deployments", - "responseCode": 200 - }, - "input": { - "shape": "ListStageDeploymentsRequest" - }, - "name": "ListStageDeployments", - "output": { - "shape": "ListStageDeploymentsResult" - } - }, - "ListStages": { - "errors": [ - { - "shape": "ValidationException" - }, - { - "shape": "AccessDeniedException" - }, - { - "shape": "ThrottlingException" - }, - { - "shape": "ResourceNotFoundException" - }, - { - "shape": "InternalServerException" - } - ], - "http": { - "method": "GET", - "requestUri": "/game/{GameName}/stage", - "responseCode": 200 - }, - "input": { - "shape": "ListStagesRequest" - }, - "name": "ListStages", - "output": { - "shape": "ListStagesResult" - } - }, - "ListTagsForResource": { - "errors": [ - { - "shape": "ValidationException" - }, - { - "shape": "ResourceNotFoundException" - }, - { - "shape": "InternalServerException" - } - ], - "http": { - "method": "GET", - "requestUri": "/tags/{ResourceArn}", - "responseCode": 200 - }, - "input": { - "shape": "ListTagsForResourceRequest" - }, - "name": "ListTagsForResource", - "output": { - "shape": "ListTagsForResourceResult" - } - }, - "StartGeneratedCodeJob": { - "errors": [ - { - "shape": "ValidationException" - }, - { - "shape": "AccessDeniedException" - }, - { - "shape": "ThrottlingException" - }, - { - "shape": "ResourceNotFoundException" - }, - { - "shape": "InternalServerException" - } - ], - "http": { - "method": "POST", - "requestUri": "/game/{GameName}/snapshot/{SnapshotId}/generated-sdk-code-job", - "responseCode": 200 - }, - "input": { - "shape": "StartGeneratedCodeJobRequest" - }, - "name": "StartGeneratedCodeJob", - "output": { - "shape": "StartGeneratedCodeJobResult" - } - }, - "StartStageDeployment": { - "errors": [ - { - "shape": "ValidationException" - }, - { - "shape": "AccessDeniedException" - }, - { - "shape": "ThrottlingException" - }, - { - "shape": "ConflictException" - }, - { - "shape": "ResourceNotFoundException" - }, - { - "shape": "InternalServerException" - } - ], - "http": { - "method": "POST", - "requestUri": "/game/{GameName}/stage/{StageName}/deployment", - "responseCode": 200 - }, - "idempotent": true, - "input": { - "shape": "StartStageDeploymentRequest" - }, - "name": "StartStageDeployment", - "output": { - "shape": "StartStageDeploymentResult" - } - }, - "TagResource": { - "errors": [ - { - "shape": "ValidationException" - }, - { - "shape": "ResourceNotFoundException" - }, - { - "shape": "InternalServerException" - } - ], - "http": { - "method": "POST", - "requestUri": "/tags/{ResourceArn}", - "responseCode": 200 - }, - "input": { - "shape": "TagResourceRequest" - }, - "name": "TagResource", - "output": { - "shape": "TagResourceResult" - } - }, - "UntagResource": { - "errors": [ - { - "shape": "ValidationException" - }, - { - "shape": "ResourceNotFoundException" - }, - { - "shape": "InternalServerException" - } - ], - "http": { - "method": "DELETE", - "requestUri": "/tags/{ResourceArn}", - "responseCode": 200 - }, - "idempotent": true, - "input": { - "shape": "UntagResourceRequest" - }, - "name": "UntagResource", - "output": { - "shape": "UntagResourceResult" - } - }, - "UpdateGame": { - "errors": [ - { - "shape": "ValidationException" - }, - { - "shape": "AccessDeniedException" - }, - { - "shape": "ThrottlingException" - }, - { - "shape": "ResourceNotFoundException" - }, - { - "shape": "InternalServerException" - } - ], - "http": { - "method": "PATCH", - "requestUri": "/game/{GameName}", - "responseCode": 200 - }, - "idempotent": true, - "input": { - "shape": "UpdateGameRequest" - }, - "name": "UpdateGame", - "output": { - "shape": "UpdateGameResult" - } - }, - "UpdateGameConfiguration": { - "errors": [ - { - "shape": "ValidationException" - }, - { - "shape": "AccessDeniedException" - }, - { - "shape": "ThrottlingException" - }, - { - "shape": "ResourceNotFoundException" - }, - { - "shape": "InternalServerException" - }, - { - "shape": "ServiceQuotaExceededException" - } - ], - "http": { - "method": "PATCH", - "requestUri": "/game/{GameName}/configuration", - "responseCode": 200 - }, - "idempotent": true, - "input": { - "shape": "UpdateGameConfigurationRequest" - }, - "name": "UpdateGameConfiguration", - "output": { - "shape": "UpdateGameConfigurationResult" - } - }, - "UpdateSnapshot": { - "errors": [ - { - "shape": "ValidationException" - }, - { - "shape": "AccessDeniedException" - }, - { - "shape": "ThrottlingException" - }, - { - "shape": "ResourceNotFoundException" - }, - { - "shape": "InternalServerException" - } - ], - "http": { - "method": "PATCH", - "requestUri": "/game/{GameName}/snapshot/{SnapshotId}", - "responseCode": 200 - }, - "idempotent": true, - "input": { - "shape": "UpdateSnapshotRequest" - }, - "name": "UpdateSnapshot", - "output": { - "shape": "UpdateSnapshotResult" - } - }, - "UpdateStage": { - "errors": [ - { - "shape": "ValidationException" - }, - { - "shape": "AccessDeniedException" - }, - { - "shape": "ThrottlingException" - }, - { - "shape": "ResourceNotFoundException" - }, - { - "shape": "InternalServerException" - } - ], - "http": { - "method": "PATCH", - "requestUri": "/game/{GameName}/stage/{StageName}", - "responseCode": 200 - }, - "idempotent": true, - "input": { - "shape": "UpdateStageRequest" - }, - "name": "UpdateStage", - "output": { - "shape": "UpdateStageResult" - } - } - }, - "shapes": { - "ARN": { - "max": 2048, - "min": 20, - "pattern": "^[A-Za-z0-9:_/-]+$", - "type": "string" - }, - "AccessDeniedException": { - "error": { - "httpStatusCode": 403, - "senderFault": true - }, - "exception": true, - "members": { - "Message": { - "shape": "ExceptionMessage" - } - }, - "type": "structure" - }, - "ByteSize": { - "min": 0, - "type": "integer" - }, - "ClientToken": { - "max": 126, - "min": 33, - "type": "string" - }, - "ConflictException": { - "error": { - "httpStatusCode": 409, - "senderFault": true - }, - "exception": true, - "members": { - "Message": { - "shape": "ExceptionMessage" - } - }, - "type": "structure" - }, - "Connection": { - "members": { - "Created": { - "shape": "DateTime" - }, - "Id": { - "shape": "ConnectionId" - } - }, - "type": "structure" - }, - "ConnectionId": { - "max": 36, - "min": 1, - "type": "string" - }, - "ConnectionIdList": { - "member": { - "shape": "ConnectionId" - }, - "type": "list" - }, - "ConnectionList": { - "member": { - "shape": "Connection" - }, - "type": "list" - }, - "CreateGameRequest": { - "members": { - "ClientToken": { - "shape": "ClientToken" - }, - "Description": { - "shape": "GameDescription" - }, - "GameName": { - "shape": "GameName" - }, - "Tags": { - "shape": "TagMap" - } - }, - "required": [ - "GameName" - ], - "type": "structure" - }, - "CreateGameResult": { - "members": { - "Game": { - "shape": "GameDetails" - } - }, - "type": "structure" - }, - "CreateSnapshotRequest": { - "members": { - "Description": { - "shape": "SnapshotDescription" - }, - "GameName": { - "location": "uri", - "locationName": "GameName", - "shape": "GameName" - } - }, - "required": [ - "GameName" - ], - "type": "structure" - }, - "CreateSnapshotResult": { - "members": { - "Snapshot": { - "shape": "SnapshotDetails" - } - }, - "type": "structure" - }, - "CreateStageRequest": { - "members": { - "ClientToken": { - "shape": "ClientToken" - }, - "Description": { - "shape": "StageDescription" - }, - "GameName": { - "location": "uri", - "locationName": "GameName", - "shape": "GameName" - }, - "Role": { - "shape": "RoleARN" - }, - "StageName": { - "shape": "StageName" - }, - "Tags": { - "shape": "TagMap" - } - }, - "required": [ - "GameName", - "Role", - "StageName" - ], - "type": "structure" - }, - "CreateStageResult": { - "members": { - "Stage": { - "shape": "StageDetails" - } - }, - "type": "structure" - }, - "DateTime": { - "timestampFormat": "iso8601", - "type": "timestamp" - }, - "DeleteGameRequest": { - "members": { - "GameName": { - "location": "uri", - "locationName": "GameName", - "shape": "GameName" - } - }, - "required": [ - "GameName" - ], - "type": "structure" - }, - "DeleteGameResult": { - "members": {}, - "type": "structure" - }, - "DeleteStageRequest": { - "members": { - "GameName": { - "location": "uri", - "locationName": "GameName", - "shape": "GameName" - }, - "StageName": { - "location": "uri", - "locationName": "StageName", - "shape": "StageName" - } - }, - "required": [ - "GameName", - "StageName" - ], - "type": "structure" - }, - "DeleteStageResult": { - "members": {}, - "type": "structure" - }, - "DeploymentAction": { - "enum": [ - "DEPLOY", - "UNDEPLOY" - ], - "type": "string" - }, - "DeploymentId": { - "max": 128, - "min": 1, - "pattern": "^\\S(.*\\S)?$", - "type": "string" - }, - "DeploymentResult": { - "members": { - "Message": { - "shape": "Message" - }, - "ResultCode": { - "shape": "ResultCode" - } - }, - "type": "structure" - }, - "DeploymentState": { - "enum": [ - "PENDING", - "IN_PROGRESS", - "COMPLETED", - "FAILED" - ], - "type": "string" - }, - "DisconnectPlayerRequest": { - "members": { - "GameName": { - "location": "uri", - "locationName": "GameName", - "shape": "GameName" - }, - "PlayerId": { - "location": "uri", - "locationName": "PlayerId", - "shape": "PlayerId" - }, - "StageName": { - "location": "uri", - "locationName": "StageName", - "shape": "StageName" - } - }, - "required": [ - "GameName", - "PlayerId", - "StageName" - ], - "type": "structure" - }, - "DisconnectPlayerResult": { - "members": { - "DisconnectFailures": { - "shape": "ConnectionIdList" - }, - "DisconnectSuccesses": { - "shape": "ConnectionIdList" - } - }, - "type": "structure" - }, - "ExceptionMessage": { - "type": "string" - }, - "ExportSnapshotRequest": { - "members": { - "GameName": { - "location": "uri", - "locationName": "GameName", - "shape": "GameName" - }, - "SnapshotId": { - "location": "uri", - "locationName": "SnapshotId", - "shape": "SnapshotId" - } - }, - "required": [ - "GameName", - "SnapshotId" - ], - "type": "structure" - }, - "ExportSnapshotResult": { - "members": { - "S3Url": { - "shape": "S3PresignedUrl" - } - }, - "type": "structure" - }, - "ExtensionDescription": { - "max": 250, - "min": 0, - "pattern": "^\\S(.*\\S)?$|^$", - "type": "string" - }, - "ExtensionDetails": { - "members": { - "Description": { - "shape": "ExtensionDescription" - }, - "Name": { - "shape": "ExtensionName" - }, - "Namespace": { - "shape": "ExtensionNamespace" - } - }, - "type": "structure" - }, - "ExtensionDetailsList": { - "member": { - "shape": "ExtensionDetails" - }, - "type": "list" - }, - "ExtensionName": { - "max": 36, - "min": 1, - "pattern": "^[a-zA-Z0-9_-]+$", - "type": "string" - }, - "ExtensionNamespace": { - "max": 36, - "min": 1, - "pattern": "^[a-zA-Z0-9_-]+$", - "type": "string" - }, - "ExtensionVersion": { - "max": 20, - "min": 0, - "type": "string" - }, - "ExtensionVersionDetails": { - "members": { - "Name": { - "shape": "ExtensionName" - }, - "Namespace": { - "shape": "ExtensionNamespace" - }, - "Schema": { - "shape": "ExtensionVersionSchema" - }, - "Version": { - "shape": "ExtensionVersion" - } - }, - "type": "structure" - }, - "ExtensionVersionDetailsList": { - "member": { - "shape": "ExtensionVersionDetails" - }, - "type": "list" - }, - "ExtensionVersionSchema": { - "max": 2048, - "min": 0, - "type": "string" - }, - "GameConfigurationDetails": { - "members": { - "Created": { - "shape": "DateTime" - }, - "LastUpdated": { - "shape": "DateTime" - }, - "Sections": { - "shape": "Sections" - } - }, - "type": "structure" - }, - "GameDescription": { - "max": 250, - "min": 0, - "pattern": "^\\S(.*\\S)?$|^$", - "type": "string" - }, - "GameDetails": { - "members": { - "Arn": { - "shape": "ARN" - }, - "Created": { - "shape": "DateTime" - }, - "Description": { - "shape": "GameDescription" - }, - "EnableTerminationProtection": { - "shape": "GameTerminationProtection" - }, - "LastUpdated": { - "shape": "DateTime" - }, - "Name": { - "shape": "GameName" - }, - "State": { - "shape": "GameState" - }, - "Tags": { - "shape": "TagMap" - } - }, - "type": "structure" - }, - "GameKey": { - "max": 44, - "min": 1, - "type": "string" - }, - "GameName": { - "max": 36, - "min": 1, - "pattern": "^[a-zA-Z0-9_-]+$", - "type": "string" - }, - "GameSdkVersion": { - "max": 10, - "min": 5, - "pattern": "^((\\d|[1-9]\\d*)\\.(\\d|[0-9]\\d*)\\.(\\d|[0-9]\\d*)|LATEST)$", - "type": "string" - }, - "GameState": { - "enum": [ - "ACTIVE", - "DELETING" - ], - "type": "string" - }, - "GameSummary": { - "members": { - "Description": { - "shape": "GameDescription" - }, - "Name": { - "shape": "GameName" - }, - "State": { - "shape": "GameState" - }, - "Tags": { - "shape": "TagMap" - } - }, - "type": "structure" - }, - "GameSummaryList": { - "member": { - "shape": "GameSummary" - }, - "type": "list" - }, - "GameTerminationProtection": { - "type": "boolean" - }, - "GeneratedCodeJobDescription": { - "max": 250, - "min": 0, - "pattern": "^\\S(.*\\S)?$|^$", - "type": "string" - }, - "GeneratedCodeJobDetails": { - "members": { - "Description": { - "shape": "GeneratedCodeJobDescription" - }, - "ExpirationTime": { - "shape": "DateTime" - }, - "GeneratedCodeJobId": { - "shape": "GeneratedCodeJobId" - }, - "S3Url": { - "shape": "S3PresignedUrl" - }, - "Status": { - "shape": "GeneratedCodeJobState" - } - }, - "type": "structure" - }, - "GeneratedCodeJobDetailsList": { - "member": { - "shape": "GeneratedCodeJobDetails" - }, - "type": "list" - }, - "GeneratedCodeJobId": { - "pattern": "^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$", - "type": "string" - }, - "GeneratedCodeJobState": { - "enum": [ - "IN_PROGRESS", - "COMPLETED", - "FAILED", - "PENDING" - ], - "type": "string" - }, - "Generator": { - "members": { - "GameSdkVersion": { - "shape": "GameSdkVersion" - }, - "Language": { - "shape": "Language" - }, - "TargetPlatform": { - "shape": "TargetPlatform" - } - }, - "type": "structure" - }, - "GetExtensionRequest": { - "members": { - "Name": { - "location": "uri", - "locationName": "Name", - "shape": "ExtensionName" - }, - "Namespace": { - "location": "uri", - "locationName": "Namespace", - "shape": "ExtensionNamespace" - } - }, - "required": [ - "Name", - "Namespace" - ], - "type": "structure" - }, - "GetExtensionResult": { - "members": { - "Extension": { - "shape": "ExtensionDetails" - } - }, - "type": "structure" - }, - "GetExtensionVersionRequest": { - "members": { - "ExtensionVersion": { - "location": "uri", - "locationName": "ExtensionVersion", - "shape": "ExtensionVersion" - }, - "Name": { - "location": "uri", - "locationName": "Name", - "shape": "ExtensionName" - }, - "Namespace": { - "location": "uri", - "locationName": "Namespace", - "shape": "ExtensionNamespace" - } - }, - "required": [ - "ExtensionVersion", - "Name", - "Namespace" - ], - "type": "structure" - }, - "GetExtensionVersionResult": { - "members": { - "ExtensionVersion": { - "shape": "ExtensionVersionDetails" - } - }, - "type": "structure" - }, - "GetGameConfigurationRequest": { - "members": { - "GameName": { - "location": "uri", - "locationName": "GameName", - "shape": "GameName" - }, - "Sections": { - "location": "querystring", - "locationName": "Sections", - "shape": "SectionList" - } - }, - "required": [ - "GameName" - ], - "type": "structure" - }, - "GetGameConfigurationResult": { - "members": { - "GameConfiguration": { - "shape": "GameConfigurationDetails" - } - }, - "type": "structure" - }, - "GetGameRequest": { - "members": { - "GameName": { - "location": "uri", - "locationName": "GameName", - "shape": "GameName" - } - }, - "required": [ - "GameName" - ], - "type": "structure" - }, - "GetGameResult": { - "members": { - "Game": { - "shape": "GameDetails" - } - }, - "type": "structure" - }, - "GetGeneratedCodeJobRequest": { - "members": { - "GameName": { - "location": "uri", - "locationName": "GameName", - "shape": "GameName" - }, - "JobId": { - "location": "uri", - "locationName": "JobId", - "shape": "GeneratedCodeJobId" - }, - "SnapshotId": { - "location": "uri", - "locationName": "SnapshotId", - "shape": "SnapshotId" - } - }, - "required": [ - "GameName", - "JobId", - "SnapshotId" - ], - "type": "structure" - }, - "GetGeneratedCodeJobResult": { - "members": { - "GeneratedCodeJob": { - "shape": "GeneratedCodeJobDetails" - } - }, - "type": "structure" - }, - "GetPlayerConnectionStatusRequest": { - "members": { - "GameName": { - "location": "uri", - "locationName": "GameName", - "shape": "GameName" - }, - "PlayerId": { - "location": "uri", - "locationName": "PlayerId", - "shape": "PlayerId" - }, - "StageName": { - "location": "uri", - "locationName": "StageName", - "shape": "StageName" - } - }, - "required": [ - "GameName", - "PlayerId", - "StageName" - ], - "type": "structure" - }, - "GetPlayerConnectionStatusResult": { - "members": { - "Connections": { - "shape": "ConnectionList" - } - }, - "type": "structure" - }, - "GetSnapshotRequest": { - "members": { - "GameName": { - "location": "uri", - "locationName": "GameName", - "shape": "GameName" - }, - "Sections": { - "location": "querystring", - "locationName": "Sections", - "shape": "SectionList" - }, - "SnapshotId": { - "location": "uri", - "locationName": "SnapshotId", - "shape": "SnapshotId" - } - }, - "required": [ - "GameName", - "SnapshotId" - ], - "type": "structure" - }, - "GetSnapshotResult": { - "members": { - "Snapshot": { - "shape": "SnapshotDetails" - } - }, - "type": "structure" - }, - "GetStageDeploymentRequest": { - "members": { - "DeploymentId": { - "location": "querystring", - "locationName": "DeploymentId", - "shape": "DeploymentId" - }, - "GameName": { - "location": "uri", - "locationName": "GameName", - "shape": "GameName" - }, - "StageName": { - "location": "uri", - "locationName": "StageName", - "shape": "StageName" - } - }, - "required": [ - "GameName", - "StageName" - ], - "type": "structure" - }, - "GetStageDeploymentResult": { - "members": { - "StageDeployment": { - "shape": "StageDeploymentDetails" - } - }, - "type": "structure" - }, - "GetStageRequest": { - "members": { - "GameName": { - "location": "uri", - "locationName": "GameName", - "shape": "GameName" - }, - "StageName": { - "location": "uri", - "locationName": "StageName", - "shape": "StageName" - } - }, - "required": [ - "GameName", - "StageName" - ], - "type": "structure" - }, - "GetStageResult": { - "members": { - "Stage": { - "shape": "StageDetails" - } - }, - "type": "structure" - }, - "ImportGameConfigurationRequest": { - "members": { - "GameName": { - "location": "uri", - "locationName": "GameName", - "shape": "GameName" - }, - "ImportSource": { - "shape": "ImportGameConfigurationSource" - } - }, - "required": [ - "GameName", - "ImportSource" - ], - "type": "structure" - }, - "ImportGameConfigurationResult": { - "members": { - "GameConfiguration": { - "shape": "GameConfigurationDetails" - } - }, - "type": "structure" - }, - "ImportGameConfigurationSource": { - "members": { - "File": { - "shape": "RawGameConfigurationData" - } - }, - "required": [ - "File" - ], - "type": "structure" - }, - "InternalServerException": { - "error": { - "httpStatusCode": 500 - }, - "exception": true, - "fault": true, - "members": { - "Message": { - "shape": "ExceptionMessage" - } - }, - "type": "structure" - }, - "Language": { - "max": 16, - "min": 1, - "pattern": "^[a-zA-Z_]+$", - "type": "string" - }, - "ListExtensionVersionsRequest": { - "members": { - "MaxResults": { - "location": "querystring", - "locationName": "MaxResults", - "shape": "MaxResults" - }, - "Name": { - "location": "uri", - "locationName": "Name", - "shape": "ExtensionName" - }, - "Namespace": { - "location": "uri", - "locationName": "Namespace", - "shape": "ExtensionNamespace" - }, - "NextToken": { - "location": "querystring", - "locationName": "NextToken", - "shape": "NextToken" - } - }, - "required": [ - "Name", - "Namespace" - ], - "type": "structure" - }, - "ListExtensionVersionsResult": { - "members": { - "ExtensionVersions": { - "shape": "ExtensionVersionDetailsList" - }, - "NextToken": { - "shape": "NextToken" - } - }, - "type": "structure" - }, - "ListExtensionsRequest": { - "members": { - "MaxResults": { - "location": "querystring", - "locationName": "MaxResults", - "shape": "MaxResults" - }, - "NextToken": { - "location": "querystring", - "locationName": "NextToken", - "shape": "NextToken" - } - }, - "type": "structure" - }, - "ListExtensionsResult": { - "members": { - "Extensions": { - "shape": "ExtensionDetailsList" - }, - "NextToken": { - "shape": "NextToken" - } - }, - "type": "structure" - }, - "ListGamesRequest": { - "members": { - "MaxResults": { - "location": "querystring", - "locationName": "MaxResults", - "shape": "MaxResults" - }, - "NextToken": { - "location": "querystring", - "locationName": "NextToken", - "shape": "NextToken" - } - }, - "type": "structure" - }, - "ListGamesResult": { - "members": { - "Games": { - "shape": "GameSummaryList" - }, - "NextToken": { - "shape": "NextToken" - } - }, - "type": "structure" - }, - "ListGeneratedCodeJobsRequest": { - "members": { - "GameName": { - "location": "uri", - "locationName": "GameName", - "shape": "GameName" - }, - "MaxResults": { - "location": "querystring", - "locationName": "MaxResults", - "shape": "MaxResults" - }, - "NextToken": { - "location": "querystring", - "locationName": "NextToken", - "shape": "NextToken" - }, - "SnapshotId": { - "location": "uri", - "locationName": "SnapshotId", - "shape": "SnapshotId" - } - }, - "required": [ - "GameName", - "SnapshotId" - ], - "type": "structure" - }, - "ListGeneratedCodeJobsResult": { - "members": { - "GeneratedCodeJobs": { - "shape": "GeneratedCodeJobDetailsList" - }, - "NextToken": { - "shape": "NextToken" - } - }, - "type": "structure" - }, - "ListSnapshotsRequest": { - "members": { - "GameName": { - "location": "uri", - "locationName": "GameName", - "shape": "GameName" - }, - "MaxResults": { - "location": "querystring", - "locationName": "MaxResults", - "shape": "MaxResults" - }, - "NextToken": { - "location": "querystring", - "locationName": "NextToken", - "shape": "NextToken" - } - }, - "required": [ - "GameName" - ], - "type": "structure" - }, - "ListSnapshotsResult": { - "members": { - "NextToken": { - "shape": "NextToken" - }, - "Snapshots": { - "shape": "SnapshotSummaryList" - } - }, - "type": "structure" - }, - "ListStageDeploymentsRequest": { - "members": { - "GameName": { - "location": "uri", - "locationName": "GameName", - "shape": "GameName" - }, - "MaxResults": { - "location": "querystring", - "locationName": "MaxResults", - "shape": "MaxResults" - }, - "NextToken": { - "location": "querystring", - "locationName": "NextToken", - "shape": "NextToken" - }, - "StageName": { - "location": "uri", - "locationName": "StageName", - "shape": "StageName" - } - }, - "required": [ - "GameName", - "StageName" - ], - "type": "structure" - }, - "ListStageDeploymentsResult": { - "members": { - "NextToken": { - "shape": "NextToken" - }, - "StageDeployments": { - "shape": "StageDeploymentList" - } - }, - "type": "structure" - }, - "ListStagesRequest": { - "members": { - "GameName": { - "location": "uri", - "locationName": "GameName", - "shape": "GameName" - }, - "MaxResults": { - "location": "querystring", - "locationName": "MaxResults", - "shape": "MaxResults" - }, - "NextToken": { - "location": "querystring", - "locationName": "NextToken", - "shape": "NextToken" - } - }, - "required": [ - "GameName" - ], - "type": "structure" - }, - "ListStagesResult": { - "members": { - "NextToken": { - "shape": "NextToken" - }, - "Stages": { - "shape": "StageSummaryList" - } - }, - "type": "structure" - }, - "ListTagsForResourceRequest": { - "members": { - "ResourceArn": { - "location": "uri", - "locationName": "ResourceArn", - "shape": "ResourceArn" - } - }, - "required": [ - "ResourceArn" - ], - "type": "structure" - }, - "ListTagsForResourceResult": { - "members": { - "tags": { - "shape": "TagMap" - } - }, - "type": "structure" - }, - "LogGroupName": { - "max": 512, - "min": 1, - "type": "string" - }, - "MaxResults": { - "box": true, - "max": 100, - "min": 1, - "type": "integer" - }, - "Message": { - "type": "string" - }, - "NextToken": { - "max": 1024, - "min": 1, - "pattern": "^\\S(.*\\S)?$", - "type": "string" - }, - "Operation": { - "enum": [ - "ADD", - "REMOVE", - "REPLACE" - ], - "type": "string" - }, - "Path": { - "max": 500, - "min": 1, - "pattern": "^\\/.*[^\\/]$", - "type": "string" - }, - "PlayerId": { - "max": 44, - "min": 1, - "pattern": "^[a-zA-Z0-9_-]+$", - "type": "string" - }, - "RawGameConfigurationData": { - "max": 1024000, - "min": 10, - "type": "blob" - }, - "ResourceArn": { - "max": 2048, - "min": 20, - "pattern": "^arn:aws:gamesparks:", - "type": "string" - }, - "ResourceNotFoundException": { - "error": { - "httpStatusCode": 404, - "senderFault": true - }, - "exception": true, - "members": { - "Message": { - "shape": "ExceptionMessage" - } - }, - "type": "structure" - }, - "ResultCode": { - "enum": [ - "SUCCESS", - "INVALID_ROLE_FAILURE", - "UNSPECIFIED_FAILURE" - ], - "type": "string" - }, - "RoleARN": { - "max": 2048, - "min": 20, - "pattern": "^arn:(aws[a-zA-Z-]*)?:iam::\\d{12}:role/.+$", - "type": "string" - }, - "S3PresignedUrl": { - "max": 2048, - "min": 10, - "pattern": "^https:\\/\\/(.*)\\.s3(.*)\\.amazonaws\\.com\\/(.*)$", - "type": "string" - }, - "Section": { - "members": { - "Name": { - "shape": "SectionName" - }, - "Size": { - "shape": "ByteSize" - } - }, - "type": "structure" - }, - "SectionList": { - "max": 100, - "member": { - "shape": "SectionName" - }, - "min": 1, - "type": "list" - }, - "SectionModification": { - "members": { - "Operation": { - "shape": "Operation" - }, - "Path": { - "shape": "Path" - }, - "Section": { - "shape": "SectionName" - } - }, - "required": [ - "Operation", - "Path", - "Section" - ], - "type": "structure" - }, - "SectionModificationList": { - "max": 100, - "member": { - "shape": "SectionModification" - }, - "min": 1, - "type": "list" - }, - "SectionName": { - "max": 36, - "min": 1, - "pattern": "^[a-zA-Z0-9.]+$", - "type": "string" - }, - "Sections": { - "key": { - "shape": "SectionName" - }, - "type": "map", - "value": { - "shape": "Section" - } - }, - "ServiceQuotaExceededException": { - "error": { - "httpStatusCode": 402, - "senderFault": true - }, - "exception": true, - "members": { - "Message": { - "shape": "ExceptionMessage" - } - }, - "type": "structure" - }, - "SnapshotDescription": { - "max": 250, - "min": 0, - "pattern": "^\\S(.*\\S)?$|^$", - "type": "string" - }, - "SnapshotDetails": { - "members": { - "Created": { - "shape": "DateTime" - }, - "Description": { - "shape": "SnapshotDescription" - }, - "Id": { - "shape": "SnapshotId" - }, - "LastUpdated": { - "shape": "DateTime" - }, - "Sections": { - "shape": "Sections" - } - }, - "type": "structure" - }, - "SnapshotId": { - "max": 36, - "min": 33, - "pattern": "^Snapshot_\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3,6}Z$", - "type": "string" - }, - "SnapshotSummary": { - "members": { - "Created": { - "shape": "DateTime" - }, - "Description": { - "shape": "SnapshotDescription" - }, - "Id": { - "shape": "SnapshotId" - }, - "LastUpdated": { - "shape": "DateTime" - } - }, - "type": "structure" - }, - "SnapshotSummaryList": { - "member": { - "shape": "SnapshotSummary" - }, - "type": "list" - }, - "StageDeploymentDetails": { - "members": { - "Created": { - "shape": "DateTime" - }, - "DeploymentAction": { - "shape": "DeploymentAction" - }, - "DeploymentId": { - "shape": "DeploymentId" - }, - "DeploymentResult": { - "shape": "DeploymentResult" - }, - "DeploymentState": { - "shape": "DeploymentState" - }, - "LastUpdated": { - "shape": "DateTime" - }, - "SnapshotId": { - "shape": "SnapshotId" - } - }, - "type": "structure" - }, - "StageDeploymentList": { - "member": { - "shape": "StageDeploymentSummary" - }, - "type": "list" - }, - "StageDeploymentSummary": { - "members": { - "DeploymentAction": { - "shape": "DeploymentAction" - }, - "DeploymentId": { - "shape": "DeploymentId" - }, - "DeploymentResult": { - "shape": "DeploymentResult" - }, - "DeploymentState": { - "shape": "DeploymentState" - }, - "LastUpdated": { - "shape": "DateTime" - }, - "SnapshotId": { - "shape": "SnapshotId" - } - }, - "type": "structure" - }, - "StageDescription": { - "max": 250, - "min": 0, - "pattern": "^\\S(.*\\S)?$|^$", - "type": "string" - }, - "StageDetails": { - "members": { - "Arn": { - "shape": "ARN" - }, - "Created": { - "shape": "DateTime" - }, - "Description": { - "shape": "StageDescription" - }, - "GameKey": { - "shape": "GameKey" - }, - "LastUpdated": { - "shape": "DateTime" - }, - "LogGroup": { - "shape": "LogGroupName" - }, - "Name": { - "shape": "StageName" - }, - "Role": { - "shape": "RoleARN" - }, - "State": { - "shape": "StageState" - }, - "Tags": { - "shape": "TagMap" - } - }, - "type": "structure" - }, - "StageName": { - "max": 36, - "min": 1, - "pattern": "^[a-zA-Z0-9_-]+$", - "type": "string" - }, - "StageState": { - "enum": [ - "ACTIVE", - "DELETING" - ], - "type": "string" - }, - "StageSummary": { - "members": { - "Description": { - "shape": "StageDescription" - }, - "GameKey": { - "shape": "GameKey" - }, - "Name": { - "shape": "StageName" - }, - "State": { - "shape": "StageState" - }, - "Tags": { - "shape": "TagMap" - } - }, - "type": "structure" - }, - "StageSummaryList": { - "member": { - "shape": "StageSummary" - }, - "type": "list" - }, - "StartGeneratedCodeJobRequest": { - "members": { - "GameName": { - "location": "uri", - "locationName": "GameName", - "shape": "GameName" - }, - "Generator": { - "shape": "Generator" - }, - "SnapshotId": { - "location": "uri", - "locationName": "SnapshotId", - "shape": "SnapshotId" - } - }, - "required": [ - "GameName", - "Generator", - "SnapshotId" - ], - "type": "structure" - }, - "StartGeneratedCodeJobResult": { - "members": { - "GeneratedCodeJobId": { - "shape": "GeneratedCodeJobId" - } - }, - "type": "structure" - }, - "StartStageDeploymentRequest": { - "members": { - "ClientToken": { - "shape": "ClientToken" - }, - "GameName": { - "location": "uri", - "locationName": "GameName", - "shape": "GameName" - }, - "SnapshotId": { - "shape": "SnapshotId" - }, - "StageName": { - "location": "uri", - "locationName": "StageName", - "shape": "StageName" - } - }, - "required": [ - "GameName", - "SnapshotId", - "StageName" - ], - "type": "structure" - }, - "StartStageDeploymentResult": { - "members": { - "StageDeployment": { - "shape": "StageDeploymentDetails" - } - }, - "type": "structure" - }, - "TagKey": { - "max": 128, - "min": 1, - "pattern": "^(?!aws:)[a-zA-Z+-=._:/]+$", - "type": "string" - }, - "TagKeyList": { - "max": 50, - "member": { - "shape": "TagKey" - }, - "min": 1, - "type": "list" - }, - "TagMap": { - "key": { - "shape": "TagKey" - }, - "max": 50, - "min": 1, - "type": "map", - "value": { - "shape": "TagValue" - } - }, - "TagResourceRequest": { - "members": { - "ResourceArn": { - "location": "uri", - "locationName": "ResourceArn", - "shape": "ResourceArn" - }, - "tags": { - "shape": "TagMap" - } - }, - "required": [ - "ResourceArn", - "tags" - ], - "type": "structure" - }, - "TagResourceResult": { - "members": {}, - "type": "structure" - }, - "TagValue": { - "max": 256, - "min": 0, - "pattern": "^[\\s\\w+-=\\.:/@]*$", - "type": "string" - }, - "TargetPlatform": { - "max": 16, - "min": 1, - "pattern": "^[a-zA-Z]+$", - "type": "string" - }, - "ThrottlingException": { - "error": { - "httpStatusCode": 429, - "senderFault": true - }, - "exception": true, - "members": { - "Message": { - "shape": "ExceptionMessage" - } - }, - "type": "structure" - }, - "UntagResourceRequest": { - "members": { - "ResourceArn": { - "location": "uri", - "locationName": "ResourceArn", - "shape": "ResourceArn" - }, - "tagKeys": { - "location": "querystring", - "locationName": "tagKeys", - "shape": "TagKeyList" - } - }, - "required": [ - "ResourceArn", - "tagKeys" - ], - "type": "structure" - }, - "UntagResourceResult": { - "members": {}, - "type": "structure" - }, - "UpdateGameConfigurationRequest": { - "members": { - "GameName": { - "location": "uri", - "locationName": "GameName", - "shape": "GameName" - }, - "Modifications": { - "shape": "SectionModificationList" - } - }, - "required": [ - "GameName", - "Modifications" - ], - "type": "structure" - }, - "UpdateGameConfigurationResult": { - "members": { - "GameConfiguration": { - "shape": "GameConfigurationDetails" - } - }, - "type": "structure" - }, - "UpdateGameRequest": { - "members": { - "Description": { - "shape": "GameDescription" - }, - "GameName": { - "location": "uri", - "locationName": "GameName", - "shape": "GameName" - } - }, - "required": [ - "GameName" - ], - "type": "structure" - }, - "UpdateGameResult": { - "members": { - "Game": { - "shape": "GameDetails" - } - }, - "type": "structure" - }, - "UpdateSnapshotRequest": { - "members": { - "Description": { - "shape": "SnapshotDescription" - }, - "GameName": { - "location": "uri", - "locationName": "GameName", - "shape": "GameName" - }, - "SnapshotId": { - "location": "uri", - "locationName": "SnapshotId", - "shape": "SnapshotId" - } - }, - "required": [ - "GameName", - "SnapshotId" - ], - "type": "structure" - }, - "UpdateSnapshotResult": { - "members": { - "Snapshot": { - "shape": "SnapshotDetails" - } - }, - "type": "structure" - }, - "UpdateStageRequest": { - "members": { - "Description": { - "shape": "StageDescription" - }, - "GameName": { - "location": "uri", - "locationName": "GameName", - "shape": "GameName" - }, - "Role": { - "shape": "RoleARN" - }, - "StageName": { - "location": "uri", - "locationName": "StageName", - "shape": "StageName" - } - }, - "required": [ - "GameName", - "StageName" - ], - "type": "structure" - }, - "UpdateStageResult": { - "members": { - "Stage": { - "shape": "StageDetails" - } - }, - "type": "structure" - }, - "ValidationException": { - "error": { - "httpStatusCode": 400, - "senderFault": true - }, - "exception": true, - "members": { - "Message": { - "shape": "ExceptionMessage" - } - }, - "type": "structure" - } - }, - "version": "2.0" -} \ No newline at end of file diff --git a/models/apis/gamesparks/2021-08-17/docs-2.json b/models/apis/gamesparks/2021-08-17/docs-2.json deleted file mode 100644 index 0ba404e74e..0000000000 --- a/models/apis/gamesparks/2021-08-17/docs-2.json +++ /dev/null @@ -1,1024 +0,0 @@ -{ - "version": "2.0", - "service": "

", - "operations": { - "CreateGame": "

Creates a new game with an empty configuration. After creating your game, you can update the configuration using UpdateGameConfiguration or ImportGameConfiguration.

", - "CreateSnapshot": "

Creates a snapshot of the game configuration.

", - "CreateStage": "

Creates a new stage for stage-by-stage game development and deployment.

", - "DeleteGame": "

Deletes a game.

", - "DeleteStage": "

Deletes a stage from a game, along with the associated game runtime.

", - "DisconnectPlayer": "

Disconnects a player from the game runtime.

If a player has multiple connections, this operation attempts to close all of them.

", - "ExportSnapshot": "

Exports a game configuration snapshot.

", - "GetExtension": "

Gets details about a specified extension.

", - "GetExtensionVersion": "

Gets details about a specified extension version.

", - "GetGame": "

Gets details about a game.

", - "GetGameConfiguration": "

Gets the configuration of the game.

", - "GetGeneratedCodeJob": "

Gets details about a job that is generating code for a snapshot.

", - "GetPlayerConnectionStatus": "

Gets the status of a player's connection to the game runtime.

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.

", - "GetSnapshot": "

Gets a copy of the game configuration in a snapshot.

", - "GetStage": "

Gets information about a stage.

", - "GetStageDeployment": "

Gets information about a stage deployment.

", - "ImportGameConfiguration": "

Imports a game configuration.

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 CreateSnapshot to make a new snapshot before importing.

", - "ListExtensionVersions": "

Gets a paginated list of available versions for the extension.

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.

", - "ListExtensions": "

Gets a paginated list of available extensions.

Extensions provide features that games can use from scripts.

", - "ListGames": "

Gets a paginated list of games.

", - "ListGeneratedCodeJobs": "

Gets a paginated list of code generation jobs for a snapshot.

", - "ListSnapshots": "

Gets a paginated list of snapshot summaries from the game.

", - "ListStageDeployments": "

Gets a paginated list of stage deployment summaries from the game.

", - "ListStages": "

Gets a paginated list of stage summaries from the game.

", - "ListTagsForResource": "

Lists the tags associated with a GameSparks resource.

", - "StartGeneratedCodeJob": "

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.

", - "StartStageDeployment": "

Deploys a snapshot to the stage and creates a new game runtime.

After you call this operation, you can check the deployment status by using GetStageDeployment.

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.

", - "TagResource": "

Adds tags to a GameSparks resource.

", - "UntagResource": "

Removes tags from a GameSparks resource.

", - "UpdateGame": "

Updates details of the game.

", - "UpdateGameConfiguration": "

Updates one or more sections of the game configuration.

", - "UpdateSnapshot": "

Updates the metadata of a GameSparks snapshot.

", - "UpdateStage": "

Updates the metadata of a stage.

" - }, - "shapes": { - "ARN": { - "base": null, - "refs": { - "GameDetails$Arn": "

The Amazon Resource Name (ARN) of this game.

", - "StageDetails$Arn": "

The Amazon Resource Name (ARN) of the stage.

" - } - }, - "AccessDeniedException": { - "base": "

You do not have sufficient access to perform this action.

", - "refs": { - } - }, - "ByteSize": { - "base": null, - "refs": { - "Section$Size": "

The size, in bytes, of the section contents.

" - } - }, - "ClientToken": { - "base": null, - "refs": { - "CreateGameRequest$ClientToken": "

A client-defined token. With an active client token in the request, this action is idempotent.

", - "CreateStageRequest$ClientToken": "

A client-defined token. With an active client token in the request, this action is idempotent.

", - "StartStageDeploymentRequest$ClientToken": "

A client-defined token. With an active client token in the request, this action is idempotent.

" - } - }, - "ConflictException": { - "base": "

The resource already exists, or another operation is in progress.

", - "refs": { - } - }, - "Connection": { - "base": "

Details about a WebSocket connection.

", - "refs": { - "ConnectionList$member": null - } - }, - "ConnectionId": { - "base": null, - "refs": { - "Connection$Id": "

The identifier used to indicate a specific WebSocket connection.

", - "ConnectionIdList$member": null - } - }, - "ConnectionIdList": { - "base": null, - "refs": { - "DisconnectPlayerResult$DisconnectFailures": "

The list of the connection ids that could not be disconnected.

", - "DisconnectPlayerResult$DisconnectSuccesses": "

The list of the connection ids that were disconnected.

" - } - }, - "ConnectionList": { - "base": null, - "refs": { - "GetPlayerConnectionStatusResult$Connections": "

The list of connection ids, one for each connection in use by the player.

" - } - }, - "CreateGameRequest": { - "base": null, - "refs": { - } - }, - "CreateGameResult": { - "base": null, - "refs": { - } - }, - "CreateSnapshotRequest": { - "base": null, - "refs": { - } - }, - "CreateSnapshotResult": { - "base": null, - "refs": { - } - }, - "CreateStageRequest": { - "base": null, - "refs": { - } - }, - "CreateStageResult": { - "base": null, - "refs": { - } - }, - "DateTime": { - "base": null, - "refs": { - "Connection$Created": "

The date and time when the connection was created.

", - "GameConfigurationDetails$Created": "

The date when the game was created.

", - "GameConfigurationDetails$LastUpdated": "

The date when the game was last modified.

", - "GameDetails$Created": "

The date when the game was created.

", - "GameDetails$LastUpdated": "

The date when the game was last modified.

", - "GeneratedCodeJobDetails$ExpirationTime": "

The expiration date and time for the download URL.

The download URL us guaranteed to be available until at least this time.

", - "SnapshotDetails$Created": "

The timestamp of when the snapshot was created.

", - "SnapshotDetails$LastUpdated": "

The timestamp of when the snapshot was last updated.

", - "SnapshotSummary$Created": "

The timestamp of when the snapshot was created.

", - "SnapshotSummary$LastUpdated": "

Then timestamp of when the snapshot was last updated.

", - "StageDeploymentDetails$Created": "

The timestamp of when the stage deployment was created.

", - "StageDeploymentDetails$LastUpdated": "

The timestamp of when the deployment was last updated.

", - "StageDeploymentSummary$LastUpdated": "

The timestamp of when the deployment was last updated.

", - "StageDetails$Created": "

The timestamp of when the stage was created.

", - "StageDetails$LastUpdated": "

The timestamp of when the stage was last updated.

" - } - }, - "DeleteGameRequest": { - "base": null, - "refs": { - } - }, - "DeleteGameResult": { - "base": null, - "refs": { - } - }, - "DeleteStageRequest": { - "base": null, - "refs": { - } - }, - "DeleteStageResult": { - "base": null, - "refs": { - } - }, - "DeploymentAction": { - "base": null, - "refs": { - "StageDeploymentDetails$DeploymentAction": "

The type of action of the stage deployment.

", - "StageDeploymentSummary$DeploymentAction": "

The type of action of the deployment.

" - } - }, - "DeploymentId": { - "base": null, - "refs": { - "GetStageDeploymentRequest$DeploymentId": "

The identifier of the stage deployment. StartStageDeployment returns the identifier that you use here.

", - "StageDeploymentDetails$DeploymentId": "

The identifier of the deployment.

", - "StageDeploymentSummary$DeploymentId": "

The identifier of the deployment.

" - } - }, - "DeploymentResult": { - "base": "

The result of the deployment.

", - "refs": { - "StageDeploymentDetails$DeploymentResult": "

The result of the deployment.

", - "StageDeploymentSummary$DeploymentResult": "

The result of the deployment.

" - } - }, - "DeploymentState": { - "base": null, - "refs": { - "StageDeploymentDetails$DeploymentState": "

The state of the deployment.

", - "StageDeploymentSummary$DeploymentState": "

The state of the deployment.

" - } - }, - "DisconnectPlayerRequest": { - "base": null, - "refs": { - } - }, - "DisconnectPlayerResult": { - "base": null, - "refs": { - } - }, - "Document": { - "base": "

", - "refs": { - "Section$Attributes": "

The content of a configuration section.

", - "SectionModification$Value": "

For add and replace operations, this is the value that will be used.

This field should be omitted for delete operations.

" - } - }, - "ExceptionMessage": { - "base": null, - "refs": { - "AccessDeniedException$Message": null, - "ConflictException$Message": null, - "InternalServerException$Message": null, - "ResourceNotFoundException$Message": null, - "ServiceQuotaExceededException$Message": null, - "ThrottlingException$Message": null, - "ValidationException$Message": null - } - }, - "ExportSnapshotRequest": { - "base": null, - "refs": { - } - }, - "ExportSnapshotResult": { - "base": null, - "refs": { - } - }, - "ExtensionDescription": { - "base": null, - "refs": { - "ExtensionDetails$Description": "

The description of the extension.

" - } - }, - "ExtensionDetails": { - "base": "

Details about the extension.

", - "refs": { - "ExtensionDetailsList$member": null, - "GetExtensionResult$Extension": "

Details about the extension.

" - } - }, - "ExtensionDetailsList": { - "base": null, - "refs": { - "ListExtensionsResult$Extensions": "

The list of extensions.

" - } - }, - "ExtensionName": { - "base": null, - "refs": { - "ExtensionDetails$Name": "

The name of the extension.

", - "ExtensionVersionDetails$Name": "

The name of the extension.

", - "GetExtensionRequest$Name": "

The name of the extension.

", - "GetExtensionVersionRequest$Name": "

The name of the extension.

", - "ListExtensionVersionsRequest$Name": "

The name of the extension.

" - } - }, - "ExtensionNamespace": { - "base": null, - "refs": { - "ExtensionDetails$Namespace": "

The namespace (qualifier) of the extension.

", - "ExtensionVersionDetails$Namespace": "

The namespace (qualifier) of the extension.

", - "GetExtensionRequest$Namespace": "

The namespace (qualifier) of the extension.

", - "GetExtensionVersionRequest$Namespace": "

The namespace (qualifier) of the extension.

", - "ListExtensionVersionsRequest$Namespace": "

The namespace (qualifier) of the extension.

" - } - }, - "ExtensionVersion": { - "base": null, - "refs": { - "ExtensionVersionDetails$Version": "

The version of the extension.

", - "GetExtensionVersionRequest$ExtensionVersion": "

The version of the extension.

" - } - }, - "ExtensionVersionDetails": { - "base": "

Details about the extension version.

", - "refs": { - "ExtensionVersionDetailsList$member": null, - "GetExtensionVersionResult$ExtensionVersion": "

The version of the extension.

" - } - }, - "ExtensionVersionDetailsList": { - "base": null, - "refs": { - "ListExtensionVersionsResult$ExtensionVersions": "

The list of extension versions.

" - } - }, - "ExtensionVersionSchema": { - "base": null, - "refs": { - "ExtensionVersionDetails$Schema": "

The model that defines the interface for this extension version.

" - } - }, - "GameConfigurationDetails": { - "base": "

Details about the game configuration.

The game configuration is organized into named sections, where the schema of each section is defined by an extension. The schema for these sections can be retrieved using the GetExtensionVersion operation.

", - "refs": { - "GetGameConfigurationResult$GameConfiguration": "

Details about the game configuration.

", - "ImportGameConfigurationResult$GameConfiguration": "

Details about the game configuration.

", - "UpdateGameConfigurationResult$GameConfiguration": "

Details about the game configuration.

" - } - }, - "GameDescription": { - "base": null, - "refs": { - "CreateGameRequest$Description": "

The description of the game.

", - "GameDetails$Description": "

The description of the game.

", - "GameSummary$Description": "

The description of the game.

", - "UpdateGameRequest$Description": "

The description of the game.

" - } - }, - "GameDetails": { - "base": "

Details about a game.

", - "refs": { - "CreateGameResult$Game": "

Details about the game that was created.

", - "GetGameResult$Game": "

The details of the game.

", - "UpdateGameResult$Game": "

The details of the game.

" - } - }, - "GameKey": { - "base": null, - "refs": { - "StageDetails$GameKey": "

The game key associated with the stage.

The game key is a unique identifier that the game client uses to connect to the GameSparks backend.

", - "StageSummary$GameKey": "

The game key associated with the stage.

The game key is a unique identifier that the game client uses to connect to the GameSparks backend.

" - } - }, - "GameName": { - "base": null, - "refs": { - "CreateGameRequest$GameName": "

The name of the game.

", - "CreateSnapshotRequest$GameName": "

The name of the game.

", - "CreateStageRequest$GameName": "

The name of the game.

", - "DeleteGameRequest$GameName": "

The name of the game to delete.

", - "DeleteStageRequest$GameName": "

The name of the game.

", - "DisconnectPlayerRequest$GameName": "

The name of the game.

", - "ExportSnapshotRequest$GameName": "

The name of the game.

", - "GameDetails$Name": "

The name of the game.

", - "GameSummary$Name": "

The name of the game.

", - "GetGameConfigurationRequest$GameName": "

The name of the game.

", - "GetGameRequest$GameName": "

The name of the game.

", - "GetGeneratedCodeJobRequest$GameName": "

The name of the game.

", - "GetPlayerConnectionStatusRequest$GameName": "

The name of the game.

", - "GetSnapshotRequest$GameName": "

The name of the game.

", - "GetStageDeploymentRequest$GameName": "

The name of the game.

", - "GetStageRequest$GameName": "

The name of the game.

", - "ImportGameConfigurationRequest$GameName": "

The name of the game.

", - "ListGeneratedCodeJobsRequest$GameName": "

The name of the game.

", - "ListSnapshotsRequest$GameName": "

The name of the game.

", - "ListStageDeploymentsRequest$GameName": "

The name of the game.

", - "ListStagesRequest$GameName": "

The name of the game.

", - "StartGeneratedCodeJobRequest$GameName": "

The name of the game.

", - "StartStageDeploymentRequest$GameName": "

The name of the game.

", - "UpdateGameConfigurationRequest$GameName": "

The name of the game.

", - "UpdateGameRequest$GameName": "

The name of the game.

", - "UpdateSnapshotRequest$GameName": "

The name of the game.

", - "UpdateStageRequest$GameName": "

The name of the game.

" - } - }, - "GameSdkVersion": { - "base": null, - "refs": { - "Generator$GameSdkVersion": "

The target version of the GameSparks Game SDK.

" - } - }, - "GameState": { - "base": null, - "refs": { - "GameDetails$State": "

The state of the game.

", - "GameSummary$State": "

The state of the game.

" - } - }, - "GameSummary": { - "base": "

The summary of the properties of a game.

", - "refs": { - "GameSummaryList$member": null - } - }, - "GameSummaryList": { - "base": null, - "refs": { - "ListGamesResult$Games": "

The list of games.

" - } - }, - "GameTerminationProtection": { - "base": null, - "refs": { - "GameDetails$EnableTerminationProtection": "

Determines if the game can be deleted.

" - } - }, - "GeneratedCodeJobDescription": { - "base": null, - "refs": { - "GeneratedCodeJobDetails$Description": "

The description of the generated code job.

" - } - }, - "GeneratedCodeJobDetails": { - "base": "

Details about a generated code job.

", - "refs": { - "GeneratedCodeJobDetailsList$member": null, - "GetGeneratedCodeJobResult$GeneratedCodeJob": "

Details about the generated code job.

" - } - }, - "GeneratedCodeJobDetailsList": { - "base": null, - "refs": { - "ListGeneratedCodeJobsResult$GeneratedCodeJobs": "

The list of generated code jobs.

" - } - }, - "GeneratedCodeJobId": { - "base": null, - "refs": { - "GeneratedCodeJobDetails$GeneratedCodeJobId": "

The identifier for the generated code job.

", - "GetGeneratedCodeJobRequest$JobId": "

The identifier of the code generation job.

", - "StartGeneratedCodeJobResult$GeneratedCodeJobId": "

The identifier of the code generation job. You can use this identifier in the GetGeneratedCodeJob operation.

" - } - }, - "GeneratedCodeJobState": { - "base": null, - "refs": { - "GeneratedCodeJobDetails$Status": "

The status of the generated code job

" - } - }, - "Generator": { - "base": "

Properties that specify the code generator for a generated code job.

", - "refs": { - "StartGeneratedCodeJobRequest$Generator": "

Properties of the generator to use for the job.

" - } - }, - "GetExtensionRequest": { - "base": null, - "refs": { - } - }, - "GetExtensionResult": { - "base": null, - "refs": { - } - }, - "GetExtensionVersionRequest": { - "base": null, - "refs": { - } - }, - "GetExtensionVersionResult": { - "base": null, - "refs": { - } - }, - "GetGameConfigurationRequest": { - "base": null, - "refs": { - } - }, - "GetGameConfigurationResult": { - "base": null, - "refs": { - } - }, - "GetGameRequest": { - "base": null, - "refs": { - } - }, - "GetGameResult": { - "base": null, - "refs": { - } - }, - "GetGeneratedCodeJobRequest": { - "base": null, - "refs": { - } - }, - "GetGeneratedCodeJobResult": { - "base": null, - "refs": { - } - }, - "GetPlayerConnectionStatusRequest": { - "base": null, - "refs": { - } - }, - "GetPlayerConnectionStatusResult": { - "base": null, - "refs": { - } - }, - "GetSnapshotRequest": { - "base": null, - "refs": { - } - }, - "GetSnapshotResult": { - "base": null, - "refs": { - } - }, - "GetStageDeploymentRequest": { - "base": null, - "refs": { - } - }, - "GetStageDeploymentResult": { - "base": null, - "refs": { - } - }, - "GetStageRequest": { - "base": null, - "refs": { - } - }, - "GetStageResult": { - "base": null, - "refs": { - } - }, - "ImportGameConfigurationRequest": { - "base": null, - "refs": { - } - }, - "ImportGameConfigurationResult": { - "base": null, - "refs": { - } - }, - "ImportGameConfigurationSource": { - "base": "

The source used to import configuration sections.

", - "refs": { - "ImportGameConfigurationRequest$ImportSource": "

The source used to import configuration sections.

" - } - }, - "InternalServerException": { - "base": "

The service encountered an internal error.

", - "refs": { - } - }, - "Language": { - "base": null, - "refs": { - "Generator$Language": "

The programming language for the generated code.

Not all languages are supported for each platform. For cases where multiple languages are supported, this parameter specifies the language to be used. If this value is omitted, the default language for the target platform will be used.

" - } - }, - "ListExtensionVersionsRequest": { - "base": null, - "refs": { - } - }, - "ListExtensionVersionsResult": { - "base": null, - "refs": { - } - }, - "ListExtensionsRequest": { - "base": null, - "refs": { - } - }, - "ListExtensionsResult": { - "base": null, - "refs": { - } - }, - "ListGamesRequest": { - "base": null, - "refs": { - } - }, - "ListGamesResult": { - "base": null, - "refs": { - } - }, - "ListGeneratedCodeJobsRequest": { - "base": null, - "refs": { - } - }, - "ListGeneratedCodeJobsResult": { - "base": null, - "refs": { - } - }, - "ListSnapshotsRequest": { - "base": null, - "refs": { - } - }, - "ListSnapshotsResult": { - "base": null, - "refs": { - } - }, - "ListStageDeploymentsRequest": { - "base": null, - "refs": { - } - }, - "ListStageDeploymentsResult": { - "base": null, - "refs": { - } - }, - "ListStagesRequest": { - "base": null, - "refs": { - } - }, - "ListStagesResult": { - "base": null, - "refs": { - } - }, - "ListTagsForResourceRequest": { - "base": null, - "refs": { - } - }, - "ListTagsForResourceResult": { - "base": null, - "refs": { - } - }, - "LogGroupName": { - "base": null, - "refs": { - "StageDetails$LogGroup": "

The Amazon CloudWatch log group for game runtimes deployed to the stage.

" - } - }, - "MaxResults": { - "base": null, - "refs": { - "ListExtensionVersionsRequest$MaxResults": "

The maximum number of results to return.

Use this parameter with NextToken to get results as a set of sequential pages.

", - "ListExtensionsRequest$MaxResults": "

The maximum number of results to return.

Use this parameter with NextToken to get results as a set of sequential pages.

", - "ListGamesRequest$MaxResults": "

The maximum number of results to return.

Use this parameter with NextToken to get results as a set of sequential pages.

", - "ListGeneratedCodeJobsRequest$MaxResults": "

The maximum number of results to return.

Use this parameter with NextToken to get results as a set of sequential pages.

", - "ListSnapshotsRequest$MaxResults": "

The maximum number of results to return.

Use this parameter with NextToken to get results as a set of sequential pages.

", - "ListStageDeploymentsRequest$MaxResults": "

The maximum number of results to return.

Use this parameter with NextToken to get results as a set of sequential pages.

", - "ListStagesRequest$MaxResults": "

The maximum number of results to return.

Use this parameter with NextToken to get results as a set of sequential pages.

" - } - }, - "Message": { - "base": null, - "refs": { - "DeploymentResult$Message": "

Details about the deployment result.

" - } - }, - "NextToken": { - "base": null, - "refs": { - "ListExtensionVersionsRequest$NextToken": "

The token that indicates the start of the next sequential page of results.

Use the token that is returned with a previous call to this operation. To start at the beginning of the result set, do not specify a value.

", - "ListExtensionVersionsResult$NextToken": "

The token that indicates the start of the next sequential page of results.

Use this value when making the next call to this operation to continue where the last one finished.

", - "ListExtensionsRequest$NextToken": "

The token that indicates the start of the next sequential page of results.

Use the token that is returned with a previous call to this operation. To start at the beginning of the result set, do not specify a value.

", - "ListExtensionsResult$NextToken": "

The token that indicates the start of the next sequential page of results.

Use this value when making the next call to this operation to continue where the last one finished.

", - "ListGamesRequest$NextToken": "

The token that indicates the start of the next sequential page of results.

Use the token that is returned with a previous call to this operation. To start at the beginning of the result set, do not specify a value.

", - "ListGamesResult$NextToken": "

The token that indicates the start of the next sequential page of results.

Use this value when making the next call to this operation to continue where the last one finished.

", - "ListGeneratedCodeJobsRequest$NextToken": "

The token that indicates the start of the next sequential page of results.

Use the token that is returned with a previous call to this operation. To start at the beginning of the result set, do not specify a value.

", - "ListGeneratedCodeJobsResult$NextToken": "

The token that indicates the start of the next sequential page of results.

Use this value when making the next call to this operation to continue where the last one finished.

", - "ListSnapshotsRequest$NextToken": "

The token that indicates the start of the next sequential page of results.

Use the token that is returned with a previous call to this operation. To start at the beginning of the result set, do not specify a value.

", - "ListSnapshotsResult$NextToken": "

The token that indicates the start of the next sequential page of results.

Use this value when making the next call to this operation to continue where the last one finished.

", - "ListStageDeploymentsRequest$NextToken": "

The token that indicates the start of the next sequential page of results.

Use the token that is returned with a previous call to this operation. To start at the beginning of the result set, do not specify a value.

", - "ListStageDeploymentsResult$NextToken": "

The token that indicates the start of the next sequential page of results.

Use this value when making the next call to this operation to continue where the last one finished.

", - "ListStagesRequest$NextToken": "

The token that indicates the start of the next sequential page of results.

Use the token that is returned with a previous call to this operation. To start at the beginning of the result set, do not specify a value.

", - "ListStagesResult$NextToken": "

The token that indicates the start of the next sequential page of results.

Use this value when making the next call to this operation to continue where the last one finished.

" - } - }, - "Operation": { - "base": null, - "refs": { - "SectionModification$Operation": "

The operation to be performed on a configuration section.

Content can be added, deleted, or replaced within a section.

" - } - }, - "Path": { - "base": null, - "refs": { - "SectionModification$Path": "

The path within the section content to be modified.

" - } - }, - "PlayerId": { - "base": null, - "refs": { - "DisconnectPlayerRequest$PlayerId": "

The unique identifier representing a player.

", - "GetPlayerConnectionStatusRequest$PlayerId": "

The unique identifier representing a player.

" - } - }, - "RawGameConfigurationData": { - "base": null, - "refs": { - "ImportGameConfigurationSource$File": "

The JSON string containing the configuration sections.

" - } - }, - "ResourceArn": { - "base": null, - "refs": { - "ListTagsForResourceRequest$ResourceArn": "

The Amazon Resource Name (ARN) of the GameSparks resource.

", - "TagResourceRequest$ResourceArn": "

The Amazon Resource Name (ARN) of the resource to add the tags to.

", - "UntagResourceRequest$ResourceArn": "

The Amazon Resource Name (ARN) of the resource to remove the tags from.

" - } - }, - "ResourceNotFoundException": { - "base": "

The resource specified in the request does not exist.

", - "refs": { - } - }, - "ResultCode": { - "base": null, - "refs": { - "DeploymentResult$ResultCode": "

The type of deployment result.

" - } - }, - "RoleARN": { - "base": null, - "refs": { - "CreateStageRequest$Role": "

The Amazon Resource Name (ARN) of the role to run the game with. This role can be a game-defined role or the default role that GameSparks created.

", - "StageDetails$Role": "

The Amazon Resource Name (ARN) of the role used to run the game runtimes deployed to the stage.

", - "UpdateStageRequest$Role": "

The Amazon Resource Name (ARN) of the role to use for the game snapshots deployed to this stage.

" - } - }, - "S3PresignedUrl": { - "base": null, - "refs": { - "ExportSnapshotResult$S3Url": "

The presigned URL for the snapshot data.

This URL will be available for 10 minutes, and can be used to download the snapshot content. If the URL expires, a new one can be requested using the same operation.

", - "GeneratedCodeJobDetails$S3Url": "

A presigned URL that can be used to download the generated code.

" - } - }, - "Section": { - "base": "

The configuration section.

", - "refs": { - "Sections$value": null - } - }, - "SectionList": { - "base": null, - "refs": { - "GetGameConfigurationRequest$Sections": "

The list of sections to return.

", - "GetSnapshotRequest$Sections": "

The list of game configuration sections to be described.

" - } - }, - "SectionModification": { - "base": "

A single modification to the configuration section.

", - "refs": { - "SectionModificationList$member": null - } - }, - "SectionModificationList": { - "base": null, - "refs": { - "UpdateGameConfigurationRequest$Modifications": "

The list of modifications to make.

" - } - }, - "SectionName": { - "base": null, - "refs": { - "Section$Name": "

The name of the section.

", - "SectionList$member": null, - "SectionModification$Section": "

The name of the section to be modified.

", - "Sections$key": null - } - }, - "Sections": { - "base": null, - "refs": { - "GameConfigurationDetails$Sections": "

Configuration data, organized by section name.

", - "SnapshotDetails$Sections": "

The sections in the snapshot.

" - } - }, - "ServiceQuotaExceededException": { - "base": "

The request would result in exceeding service quota.

", - "refs": { - } - }, - "SnapshotDescription": { - "base": null, - "refs": { - "CreateSnapshotRequest$Description": "

The description of the snapshot.

", - "SnapshotDetails$Description": "

The description of the snapshot.

", - "SnapshotSummary$Description": "

The description of the snapshot.

", - "UpdateSnapshotRequest$Description": "

The description of the snapshot.

" - } - }, - "SnapshotDetails": { - "base": "

Properties that provide details of a snapshot.

", - "refs": { - "CreateSnapshotResult$Snapshot": "

Properties that provide details of the created snapshot.

", - "GetSnapshotResult$Snapshot": "

Properties that provide details of the snapshot.

", - "UpdateSnapshotResult$Snapshot": "

Properties that provide details of the updated snapshot.

" - } - }, - "SnapshotId": { - "base": null, - "refs": { - "ExportSnapshotRequest$SnapshotId": "

The identifier of the snapshot to export.

", - "GetGeneratedCodeJobRequest$SnapshotId": "

The identifier of the snapshot for the code generation job.

", - "GetSnapshotRequest$SnapshotId": "

The identifier of the snapshot.

", - "ListGeneratedCodeJobsRequest$SnapshotId": "

The identifier of the snapshot.

", - "SnapshotDetails$Id": "

The identifier of the snapshot.

", - "SnapshotSummary$Id": "

The identifier of the snapshot.

", - "StageDeploymentDetails$SnapshotId": "

The identifier of the snapshot associated with the stage deployment.

", - "StageDeploymentSummary$SnapshotId": "

The identifier of the snapshot associated with the stage deployment.

", - "StartGeneratedCodeJobRequest$SnapshotId": "

The identifier of the snapshot for which to generate code.

", - "StartStageDeploymentRequest$SnapshotId": "

The identifier of the snapshot to deploy.

", - "UpdateSnapshotRequest$SnapshotId": "

The identifier of the snapshot.

" - } - }, - "SnapshotSummary": { - "base": "

The summary of the properties of a snapshot.

", - "refs": { - "SnapshotSummaryList$member": null - } - }, - "SnapshotSummaryList": { - "base": null, - "refs": { - "ListSnapshotsResult$Snapshots": "

A list of snapshot summaries. You can use the returned snapshot IDs in the UpdateSnapshot and GetSnapshot operations.

" - } - }, - "StageDeploymentDetails": { - "base": "

Properties that provide details of a stage deployment.

", - "refs": { - "GetStageDeploymentResult$StageDeployment": "

Properties that provide details of the stage deployment.

", - "StartStageDeploymentResult$StageDeployment": "

Properties that describe the stage deployment.

" - } - }, - "StageDeploymentList": { - "base": null, - "refs": { - "ListStageDeploymentsResult$StageDeployments": "

A list of stage deployment summaries. You can use the deployment IDs in the UpdateStageDeployment and GetStageDeployment actions.

" - } - }, - "StageDeploymentSummary": { - "base": "

The summary of the properties of a stage deployment.

", - "refs": { - "StageDeploymentList$member": null - } - }, - "StageDescription": { - "base": null, - "refs": { - "CreateStageRequest$Description": "

The description of the stage.

", - "StageDetails$Description": "

The description of the stage.

", - "StageSummary$Description": "

The description of the stage.

", - "UpdateStageRequest$Description": "

The description of the stage.

" - } - }, - "StageDetails": { - "base": "

Properties that provide details of a stage.

", - "refs": { - "CreateStageResult$Stage": "

Properties that describe the stage.

", - "GetStageResult$Stage": "

Properties that provide details of the stage.

", - "UpdateStageResult$Stage": "

Properties that provide details of the updated stage.

" - } - }, - "StageName": { - "base": null, - "refs": { - "CreateStageRequest$StageName": "

The name of the stage.

", - "DeleteStageRequest$StageName": "

The name of the stage to delete.

", - "DisconnectPlayerRequest$StageName": "

The name of the stage.

", - "GetPlayerConnectionStatusRequest$StageName": "

The name of the stage.

", - "GetStageDeploymentRequest$StageName": "

The name of the stage.

", - "GetStageRequest$StageName": "

The name of the stage.

", - "ListStageDeploymentsRequest$StageName": "

The name of the stage.

", - "StageDetails$Name": "

The name of the stage.

", - "StageSummary$Name": "

The name of the stage.

", - "StartStageDeploymentRequest$StageName": "

The name of the stage to deploy the snapshot onto.

", - "UpdateStageRequest$StageName": "

The name of the stage.

" - } - }, - "StageState": { - "base": null, - "refs": { - "StageDetails$State": "

The state of the stage.

", - "StageSummary$State": "

The state of the stage.

" - } - }, - "StageSummary": { - "base": "

The summary of the properties of a stage.

", - "refs": { - "StageSummaryList$member": null - } - }, - "StageSummaryList": { - "base": null, - "refs": { - "ListStagesResult$Stages": "

A list of stage summaries. You can use the stage names in the UpdateStage and GetStage actions.

" - } - }, - "StartGeneratedCodeJobRequest": { - "base": null, - "refs": { - } - }, - "StartGeneratedCodeJobResult": { - "base": null, - "refs": { - } - }, - "StartStageDeploymentRequest": { - "base": null, - "refs": { - } - }, - "StartStageDeploymentResult": { - "base": null, - "refs": { - } - }, - "TagKey": { - "base": null, - "refs": { - "TagKeyList$member": null, - "TagMap$key": null - } - }, - "TagKeyList": { - "base": null, - "refs": { - "UntagResourceRequest$tagKeys": "

The keys of the tags to remove.

" - } - }, - "TagMap": { - "base": null, - "refs": { - "CreateGameRequest$Tags": "

The list of tags to apply to the game.

", - "CreateStageRequest$Tags": "

The list of tags to apply to the stage.

", - "GameDetails$Tags": "

The tags associated with the game.

", - "GameSummary$Tags": "

The tags associated with the game.

", - "ListTagsForResourceResult$tags": "

The tags associated with the resource.

", - "StageDetails$Tags": "

The tags associated with the stage.

", - "StageSummary$Tags": "

The tags associated with the stage.

", - "TagResourceRequest$tags": "

The tags to add to the resource.

" - } - }, - "TagResourceRequest": { - "base": null, - "refs": { - } - }, - "TagResourceResult": { - "base": null, - "refs": { - } - }, - "TagValue": { - "base": null, - "refs": { - "TagMap$value": null - } - }, - "TargetPlatform": { - "base": null, - "refs": { - "Generator$TargetPlatform": "

The platform that will be used to run the generated code.

" - } - }, - "ThrottlingException": { - "base": "

The request throughput limit was exceeded.

", - "refs": { - } - }, - "UntagResourceRequest": { - "base": null, - "refs": { - } - }, - "UntagResourceResult": { - "base": null, - "refs": { - } - }, - "UpdateGameConfigurationRequest": { - "base": null, - "refs": { - } - }, - "UpdateGameConfigurationResult": { - "base": null, - "refs": { - } - }, - "UpdateGameRequest": { - "base": null, - "refs": { - } - }, - "UpdateGameResult": { - "base": null, - "refs": { - } - }, - "UpdateSnapshotRequest": { - "base": null, - "refs": { - } - }, - "UpdateSnapshotResult": { - "base": null, - "refs": { - } - }, - "UpdateStageRequest": { - "base": null, - "refs": { - } - }, - "UpdateStageResult": { - "base": null, - "refs": { - } - }, - "ValidationException": { - "base": "

One of the parameters in the request is invalid.

", - "refs": { - } - } - } -} diff --git a/models/apis/gamesparks/2021-08-17/endpoint-rule-set-1.json b/models/apis/gamesparks/2021-08-17/endpoint-rule-set-1.json deleted file mode 100644 index d80f7a883e..0000000000 --- a/models/apis/gamesparks/2021-08-17/endpoint-rule-set-1.json +++ /dev/null @@ -1,315 +0,0 @@ -{ - "version": "1.0", - "parameters": { - "Region": { - "builtIn": "AWS::Region", - "required": false, - "documentation": "The AWS region used to dispatch the request.", - "type": "String" - }, - "UseDualStack": { - "builtIn": "AWS::UseDualStack", - "required": true, - "default": false, - "documentation": "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", - "type": "Boolean" - }, - "UseFIPS": { - "builtIn": "AWS::UseFIPS", - "required": true, - "default": false, - "documentation": "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", - "type": "Boolean" - }, - "Endpoint": { - "builtIn": "SDK::Endpoint", - "required": false, - "documentation": "Override the endpoint used to send this request", - "type": "String" - } - }, - "rules": [ - { - "conditions": [ - { - "fn": "aws.partition", - "argv": [ - { - "ref": "Region" - } - ], - "assign": "PartitionResult" - } - ], - "type": "tree", - "rules": [ - { - "conditions": [ - { - "fn": "isSet", - "argv": [ - { - "ref": "Endpoint" - } - ] - }, - { - "fn": "parseURL", - "argv": [ - { - "ref": "Endpoint" - } - ], - "assign": "url" - } - ], - "type": "tree", - "rules": [ - { - "conditions": [ - { - "fn": "booleanEquals", - "argv": [ - { - "ref": "UseFIPS" - }, - true - ] - } - ], - "error": "Invalid Configuration: FIPS and custom endpoint are not supported", - "type": "error" - }, - { - "conditions": [], - "type": "tree", - "rules": [ - { - "conditions": [ - { - "fn": "booleanEquals", - "argv": [ - { - "ref": "UseDualStack" - }, - true - ] - } - ], - "error": "Invalid Configuration: Dualstack and custom endpoint are not supported", - "type": "error" - }, - { - "conditions": [], - "endpoint": { - "url": { - "ref": "Endpoint" - }, - "properties": {}, - "headers": {} - }, - "type": "endpoint" - } - ] - } - ] - }, - { - "conditions": [ - { - "fn": "booleanEquals", - "argv": [ - { - "ref": "UseFIPS" - }, - true - ] - }, - { - "fn": "booleanEquals", - "argv": [ - { - "ref": "UseDualStack" - }, - true - ] - } - ], - "type": "tree", - "rules": [ - { - "conditions": [ - { - "fn": "booleanEquals", - "argv": [ - true, - { - "fn": "getAttr", - "argv": [ - { - "ref": "PartitionResult" - }, - "supportsFIPS" - ] - } - ] - }, - { - "fn": "booleanEquals", - "argv": [ - true, - { - "fn": "getAttr", - "argv": [ - { - "ref": "PartitionResult" - }, - "supportsDualStack" - ] - } - ] - } - ], - "type": "tree", - "rules": [ - { - "conditions": [], - "endpoint": { - "url": "https://gamesparks-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - "properties": {}, - "headers": {} - }, - "type": "endpoint" - } - ] - }, - { - "conditions": [], - "error": "FIPS and DualStack are enabled, but this partition does not support one or both", - "type": "error" - } - ] - }, - { - "conditions": [ - { - "fn": "booleanEquals", - "argv": [ - { - "ref": "UseFIPS" - }, - true - ] - } - ], - "type": "tree", - "rules": [ - { - "conditions": [ - { - "fn": "booleanEquals", - "argv": [ - true, - { - "fn": "getAttr", - "argv": [ - { - "ref": "PartitionResult" - }, - "supportsFIPS" - ] - } - ] - } - ], - "type": "tree", - "rules": [ - { - "conditions": [], - "type": "tree", - "rules": [ - { - "conditions": [], - "endpoint": { - "url": "https://gamesparks-fips.{Region}.{PartitionResult#dnsSuffix}", - "properties": {}, - "headers": {} - }, - "type": "endpoint" - } - ] - } - ] - }, - { - "conditions": [], - "error": "FIPS is enabled but this partition does not support FIPS", - "type": "error" - } - ] - }, - { - "conditions": [ - { - "fn": "booleanEquals", - "argv": [ - { - "ref": "UseDualStack" - }, - true - ] - } - ], - "type": "tree", - "rules": [ - { - "conditions": [ - { - "fn": "booleanEquals", - "argv": [ - true, - { - "fn": "getAttr", - "argv": [ - { - "ref": "PartitionResult" - }, - "supportsDualStack" - ] - } - ] - } - ], - "type": "tree", - "rules": [ - { - "conditions": [], - "endpoint": { - "url": "https://gamesparks.{Region}.{PartitionResult#dualStackDnsSuffix}", - "properties": {}, - "headers": {} - }, - "type": "endpoint" - } - ] - }, - { - "conditions": [], - "error": "DualStack is enabled but this partition does not support DualStack", - "type": "error" - } - ] - }, - { - "conditions": [], - "endpoint": { - "url": "https://gamesparks.{Region}.{PartitionResult#dnsSuffix}", - "properties": {}, - "headers": {} - }, - "type": "endpoint" - } - ] - } - ] -} \ No newline at end of file diff --git a/models/apis/gamesparks/2021-08-17/endpoint-tests-1.json b/models/apis/gamesparks/2021-08-17/endpoint-tests-1.json deleted file mode 100644 index 8f44637245..0000000000 --- a/models/apis/gamesparks/2021-08-17/endpoint-tests-1.json +++ /dev/null @@ -1,147 +0,0 @@ -{ - "testCases": [ - { - "documentation": "For region ap-northeast-1 with FIPS enabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://gamesparks-fips.ap-northeast-1.api.aws" - } - }, - "params": { - "Region": "ap-northeast-1", - "UseFIPS": true, - "UseDualStack": true - } - }, - { - "documentation": "For region ap-northeast-1 with FIPS enabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://gamesparks-fips.ap-northeast-1.amazonaws.com" - } - }, - "params": { - "Region": "ap-northeast-1", - "UseFIPS": true, - "UseDualStack": false - } - }, - { - "documentation": "For region ap-northeast-1 with FIPS disabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://gamesparks.ap-northeast-1.api.aws" - } - }, - "params": { - "Region": "ap-northeast-1", - "UseFIPS": false, - "UseDualStack": true - } - }, - { - "documentation": "For region ap-northeast-1 with FIPS disabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://gamesparks.ap-northeast-1.amazonaws.com" - } - }, - "params": { - "Region": "ap-northeast-1", - "UseFIPS": false, - "UseDualStack": false - } - }, - { - "documentation": "For region us-east-1 with FIPS enabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://gamesparks-fips.us-east-1.api.aws" - } - }, - "params": { - "Region": "us-east-1", - "UseFIPS": true, - "UseDualStack": true - } - }, - { - "documentation": "For region us-east-1 with FIPS enabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://gamesparks-fips.us-east-1.amazonaws.com" - } - }, - "params": { - "Region": "us-east-1", - "UseFIPS": true, - "UseDualStack": false - } - }, - { - "documentation": "For region us-east-1 with FIPS disabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://gamesparks.us-east-1.api.aws" - } - }, - "params": { - "Region": "us-east-1", - "UseFIPS": false, - "UseDualStack": true - } - }, - { - "documentation": "For region us-east-1 with FIPS disabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://gamesparks.us-east-1.amazonaws.com" - } - }, - "params": { - "Region": "us-east-1", - "UseFIPS": false, - "UseDualStack": false - } - }, - { - "documentation": "For custom endpoint with fips disabled and dualstack disabled", - "expect": { - "endpoint": { - "url": "https://example.com" - } - }, - "params": { - "Region": "us-east-1", - "UseFIPS": false, - "UseDualStack": false, - "Endpoint": "https://example.com" - } - }, - { - "documentation": "For custom endpoint with fips enabled and dualstack disabled", - "expect": { - "error": "Invalid Configuration: FIPS and custom endpoint are not supported" - }, - "params": { - "Region": "us-east-1", - "UseFIPS": true, - "UseDualStack": false, - "Endpoint": "https://example.com" - } - }, - { - "documentation": "For custom endpoint with fips disabled and dualstack enabled", - "expect": { - "error": "Invalid Configuration: Dualstack and custom endpoint are not supported" - }, - "params": { - "Region": "us-east-1", - "UseFIPS": false, - "UseDualStack": true, - "Endpoint": "https://example.com" - } - } - ], - "version": "1.0" -} \ No newline at end of file diff --git a/models/apis/gamesparks/2021-08-17/examples-1.json b/models/apis/gamesparks/2021-08-17/examples-1.json deleted file mode 100644 index 0ea7e3b0bb..0000000000 --- a/models/apis/gamesparks/2021-08-17/examples-1.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "version": "1.0", - "examples": { - } -} diff --git a/models/apis/gamesparks/2021-08-17/paginators-1.json b/models/apis/gamesparks/2021-08-17/paginators-1.json deleted file mode 100644 index 755ad2baa0..0000000000 --- a/models/apis/gamesparks/2021-08-17/paginators-1.json +++ /dev/null @@ -1,46 +0,0 @@ -{ - "pagination": { - "ListExtensionVersions": { - "input_token": "NextToken", - "output_token": "NextToken", - "limit_key": "MaxResults", - "result_key": "ExtensionVersions" - }, - "ListExtensions": { - "input_token": "NextToken", - "output_token": "NextToken", - "limit_key": "MaxResults", - "result_key": "Extensions" - }, - "ListGames": { - "input_token": "NextToken", - "output_token": "NextToken", - "limit_key": "MaxResults", - "result_key": "Games" - }, - "ListGeneratedCodeJobs": { - "input_token": "NextToken", - "output_token": "NextToken", - "limit_key": "MaxResults", - "result_key": "GeneratedCodeJobs" - }, - "ListSnapshots": { - "input_token": "NextToken", - "output_token": "NextToken", - "limit_key": "MaxResults", - "result_key": "Snapshots" - }, - "ListStageDeployments": { - "input_token": "NextToken", - "output_token": "NextToken", - "limit_key": "MaxResults", - "result_key": "StageDeployments" - }, - "ListStages": { - "input_token": "NextToken", - "output_token": "NextToken", - "limit_key": "MaxResults", - "result_key": "Stages" - } - } -} diff --git a/service/gamesparks/api.go b/service/gamesparks/api.go deleted file mode 100644 index 9f7aa86ca0..0000000000 --- a/service/gamesparks/api.go +++ /dev/null @@ -1,8773 +0,0 @@ -// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. - -package gamesparks - -import ( - "fmt" - "time" - - "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/awsutil" - "github.com/aws/aws-sdk-go/aws/request" - "github.com/aws/aws-sdk-go/private/protocol" - "github.com/aws/aws-sdk-go/private/protocol/restjson" -) - -const opCreateGame = "CreateGame" - -// CreateGameRequest generates a "aws/request.Request" representing the -// client's request for the CreateGame operation. The "output" return -// value will be populated with the request's response once the request completes -// successfully. -// -// Use "Send" method on the returned Request to send the API call to the service. -// the "output" return value is not valid until after Send returns without error. -// -// See CreateGame for more information on using the CreateGame -// API call, and error handling. -// -// This method is useful when you want to inject custom logic or configuration -// into the SDK's request lifecycle. Such as custom headers, or retry logic. -// -// // Example sending a request using the CreateGameRequest method. -// req, resp := client.CreateGameRequest(params) -// -// err := req.Send() -// if err == nil { // resp is now filled -// fmt.Println(resp) -// } -// -// See also, https://docs.aws.amazon.com/goto/WebAPI/gamesparks-2021-08-17/CreateGame -func (c *GameSparks) CreateGameRequest(input *CreateGameInput) (req *request.Request, output *CreateGameOutput) { - op := &request.Operation{ - Name: opCreateGame, - HTTPMethod: "POST", - HTTPPath: "/game", - } - - if input == nil { - input = &CreateGameInput{} - } - - output = &CreateGameOutput{} - req = c.newRequest(op, input, output) - return -} - -// CreateGame API operation for GameSparks. -// -// Creates a new game with an empty configuration. After creating your game, -// you can update the configuration using UpdateGameConfiguration or ImportGameConfiguration. -// -// Returns awserr.Error for service API and SDK errors. Use runtime type assertions -// with awserr.Error's Code and Message methods to get detailed information about -// the error. -// -// See the AWS API reference guide for GameSparks's -// API operation CreateGame for usage and error information. -// -// Returned Error Types: -// -// - ValidationException -// One of the parameters in the request is invalid. -// -// - AccessDeniedException -// You do not have sufficient access to perform this action. -// -// - ThrottlingException -// The request throughput limit was exceeded. -// -// - ConflictException -// The resource already exists, or another operation is in progress. -// -// - InternalServerException -// The service encountered an internal error. -// -// - ServiceQuotaExceededException -// The request would result in exceeding service quota. -// -// See also, https://docs.aws.amazon.com/goto/WebAPI/gamesparks-2021-08-17/CreateGame -func (c *GameSparks) CreateGame(input *CreateGameInput) (*CreateGameOutput, error) { - req, out := c.CreateGameRequest(input) - return out, req.Send() -} - -// CreateGameWithContext is the same as CreateGame with the addition of -// the ability to pass a context and additional request options. -// -// See CreateGame for details on how to use this API operation. -// -// The context must be non-nil and will be used for request cancellation. If -// the context is nil a panic will occur. In the future the SDK may create -// sub-contexts for http.Requests. See https://golang.org/pkg/context/ -// for more information on using Contexts. -func (c *GameSparks) CreateGameWithContext(ctx aws.Context, input *CreateGameInput, opts ...request.Option) (*CreateGameOutput, error) { - req, out := c.CreateGameRequest(input) - req.SetContext(ctx) - req.ApplyOptions(opts...) - return out, req.Send() -} - -const opCreateSnapshot = "CreateSnapshot" - -// CreateSnapshotRequest generates a "aws/request.Request" representing the -// client's request for the CreateSnapshot operation. The "output" return -// value will be populated with the request's response once the request completes -// successfully. -// -// Use "Send" method on the returned Request to send the API call to the service. -// the "output" return value is not valid until after Send returns without error. -// -// See CreateSnapshot for more information on using the CreateSnapshot -// API call, and error handling. -// -// This method is useful when you want to inject custom logic or configuration -// into the SDK's request lifecycle. Such as custom headers, or retry logic. -// -// // Example sending a request using the CreateSnapshotRequest method. -// req, resp := client.CreateSnapshotRequest(params) -// -// err := req.Send() -// if err == nil { // resp is now filled -// fmt.Println(resp) -// } -// -// See also, https://docs.aws.amazon.com/goto/WebAPI/gamesparks-2021-08-17/CreateSnapshot -func (c *GameSparks) CreateSnapshotRequest(input *CreateSnapshotInput) (req *request.Request, output *CreateSnapshotOutput) { - op := &request.Operation{ - Name: opCreateSnapshot, - HTTPMethod: "POST", - HTTPPath: "/game/{GameName}/snapshot", - } - - if input == nil { - input = &CreateSnapshotInput{} - } - - output = &CreateSnapshotOutput{} - req = c.newRequest(op, input, output) - return -} - -// CreateSnapshot API operation for GameSparks. -// -// Creates a snapshot of the game configuration. -// -// Returns awserr.Error for service API and SDK errors. Use runtime type assertions -// with awserr.Error's Code and Message methods to get detailed information about -// the error. -// -// See the AWS API reference guide for GameSparks's -// API operation CreateSnapshot for usage and error information. -// -// Returned Error Types: -// -// - ValidationException -// One of the parameters in the request is invalid. -// -// - AccessDeniedException -// You do not have sufficient access to perform this action. -// -// - ThrottlingException -// The request throughput limit was exceeded. -// -// - ConflictException -// The resource already exists, or another operation is in progress. -// -// - ResourceNotFoundException -// The resource specified in the request does not exist. -// -// - InternalServerException -// The service encountered an internal error. -// -// See also, https://docs.aws.amazon.com/goto/WebAPI/gamesparks-2021-08-17/CreateSnapshot -func (c *GameSparks) CreateSnapshot(input *CreateSnapshotInput) (*CreateSnapshotOutput, error) { - req, out := c.CreateSnapshotRequest(input) - return out, req.Send() -} - -// CreateSnapshotWithContext is the same as CreateSnapshot with the addition of -// the ability to pass a context and additional request options. -// -// See CreateSnapshot for details on how to use this API operation. -// -// The context must be non-nil and will be used for request cancellation. If -// the context is nil a panic will occur. In the future the SDK may create -// sub-contexts for http.Requests. See https://golang.org/pkg/context/ -// for more information on using Contexts. -func (c *GameSparks) CreateSnapshotWithContext(ctx aws.Context, input *CreateSnapshotInput, opts ...request.Option) (*CreateSnapshotOutput, error) { - req, out := c.CreateSnapshotRequest(input) - req.SetContext(ctx) - req.ApplyOptions(opts...) - return out, req.Send() -} - -const opCreateStage = "CreateStage" - -// CreateStageRequest generates a "aws/request.Request" representing the -// client's request for the CreateStage operation. The "output" return -// value will be populated with the request's response once the request completes -// successfully. -// -// Use "Send" method on the returned Request to send the API call to the service. -// the "output" return value is not valid until after Send returns without error. -// -// See CreateStage for more information on using the CreateStage -// API call, and error handling. -// -// This method is useful when you want to inject custom logic or configuration -// into the SDK's request lifecycle. Such as custom headers, or retry logic. -// -// // Example sending a request using the CreateStageRequest method. -// req, resp := client.CreateStageRequest(params) -// -// err := req.Send() -// if err == nil { // resp is now filled -// fmt.Println(resp) -// } -// -// See also, https://docs.aws.amazon.com/goto/WebAPI/gamesparks-2021-08-17/CreateStage -func (c *GameSparks) CreateStageRequest(input *CreateStageInput) (req *request.Request, output *CreateStageOutput) { - op := &request.Operation{ - Name: opCreateStage, - HTTPMethod: "POST", - HTTPPath: "/game/{GameName}/stage", - } - - if input == nil { - input = &CreateStageInput{} - } - - output = &CreateStageOutput{} - req = c.newRequest(op, input, output) - return -} - -// CreateStage API operation for GameSparks. -// -// Creates a new stage for stage-by-stage game development and deployment. -// -// Returns awserr.Error for service API and SDK errors. Use runtime type assertions -// with awserr.Error's Code and Message methods to get detailed information about -// the error. -// -// See the AWS API reference guide for GameSparks's -// API operation CreateStage for usage and error information. -// -// Returned Error Types: -// -// - ValidationException -// One of the parameters in the request is invalid. -// -// - AccessDeniedException -// You do not have sufficient access to perform this action. -// -// - ThrottlingException -// The request throughput limit was exceeded. -// -// - ConflictException -// The resource already exists, or another operation is in progress. -// -// - ResourceNotFoundException -// The resource specified in the request does not exist. -// -// - InternalServerException -// The service encountered an internal error. -// -// See also, https://docs.aws.amazon.com/goto/WebAPI/gamesparks-2021-08-17/CreateStage -func (c *GameSparks) CreateStage(input *CreateStageInput) (*CreateStageOutput, error) { - req, out := c.CreateStageRequest(input) - return out, req.Send() -} - -// CreateStageWithContext is the same as CreateStage with the addition of -// the ability to pass a context and additional request options. -// -// See CreateStage for details on how to use this API operation. -// -// The context must be non-nil and will be used for request cancellation. If -// the context is nil a panic will occur. In the future the SDK may create -// sub-contexts for http.Requests. See https://golang.org/pkg/context/ -// for more information on using Contexts. -func (c *GameSparks) CreateStageWithContext(ctx aws.Context, input *CreateStageInput, opts ...request.Option) (*CreateStageOutput, error) { - req, out := c.CreateStageRequest(input) - req.SetContext(ctx) - req.ApplyOptions(opts...) - return out, req.Send() -} - -const opDeleteGame = "DeleteGame" - -// DeleteGameRequest generates a "aws/request.Request" representing the -// client's request for the DeleteGame operation. The "output" return -// value will be populated with the request's response once the request completes -// successfully. -// -// Use "Send" method on the returned Request to send the API call to the service. -// the "output" return value is not valid until after Send returns without error. -// -// See DeleteGame for more information on using the DeleteGame -// API call, and error handling. -// -// This method is useful when you want to inject custom logic or configuration -// into the SDK's request lifecycle. Such as custom headers, or retry logic. -// -// // Example sending a request using the DeleteGameRequest method. -// req, resp := client.DeleteGameRequest(params) -// -// err := req.Send() -// if err == nil { // resp is now filled -// fmt.Println(resp) -// } -// -// See also, https://docs.aws.amazon.com/goto/WebAPI/gamesparks-2021-08-17/DeleteGame -func (c *GameSparks) DeleteGameRequest(input *DeleteGameInput) (req *request.Request, output *DeleteGameOutput) { - op := &request.Operation{ - Name: opDeleteGame, - HTTPMethod: "DELETE", - HTTPPath: "/game/{GameName}", - } - - if input == nil { - input = &DeleteGameInput{} - } - - output = &DeleteGameOutput{} - req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) - return -} - -// DeleteGame API operation for GameSparks. -// -// Deletes a game. -// -// Returns awserr.Error for service API and SDK errors. Use runtime type assertions -// with awserr.Error's Code and Message methods to get detailed information about -// the error. -// -// See the AWS API reference guide for GameSparks's -// API operation DeleteGame for usage and error information. -// -// Returned Error Types: -// -// - ValidationException -// One of the parameters in the request is invalid. -// -// - AccessDeniedException -// You do not have sufficient access to perform this action. -// -// - ThrottlingException -// The request throughput limit was exceeded. -// -// - ConflictException -// The resource already exists, or another operation is in progress. -// -// - InternalServerException -// The service encountered an internal error. -// -// See also, https://docs.aws.amazon.com/goto/WebAPI/gamesparks-2021-08-17/DeleteGame -func (c *GameSparks) DeleteGame(input *DeleteGameInput) (*DeleteGameOutput, error) { - req, out := c.DeleteGameRequest(input) - return out, req.Send() -} - -// DeleteGameWithContext is the same as DeleteGame with the addition of -// the ability to pass a context and additional request options. -// -// See DeleteGame for details on how to use this API operation. -// -// The context must be non-nil and will be used for request cancellation. If -// the context is nil a panic will occur. In the future the SDK may create -// sub-contexts for http.Requests. See https://golang.org/pkg/context/ -// for more information on using Contexts. -func (c *GameSparks) DeleteGameWithContext(ctx aws.Context, input *DeleteGameInput, opts ...request.Option) (*DeleteGameOutput, error) { - req, out := c.DeleteGameRequest(input) - req.SetContext(ctx) - req.ApplyOptions(opts...) - return out, req.Send() -} - -const opDeleteStage = "DeleteStage" - -// DeleteStageRequest generates a "aws/request.Request" representing the -// client's request for the DeleteStage operation. The "output" return -// value will be populated with the request's response once the request completes -// successfully. -// -// Use "Send" method on the returned Request to send the API call to the service. -// the "output" return value is not valid until after Send returns without error. -// -// See DeleteStage for more information on using the DeleteStage -// API call, and error handling. -// -// This method is useful when you want to inject custom logic or configuration -// into the SDK's request lifecycle. Such as custom headers, or retry logic. -// -// // Example sending a request using the DeleteStageRequest method. -// req, resp := client.DeleteStageRequest(params) -// -// err := req.Send() -// if err == nil { // resp is now filled -// fmt.Println(resp) -// } -// -// See also, https://docs.aws.amazon.com/goto/WebAPI/gamesparks-2021-08-17/DeleteStage -func (c *GameSparks) DeleteStageRequest(input *DeleteStageInput) (req *request.Request, output *DeleteStageOutput) { - op := &request.Operation{ - Name: opDeleteStage, - HTTPMethod: "DELETE", - HTTPPath: "/game/{GameName}/stage/{StageName}", - } - - if input == nil { - input = &DeleteStageInput{} - } - - output = &DeleteStageOutput{} - req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) - return -} - -// DeleteStage API operation for GameSparks. -// -// Deletes a stage from a game, along with the associated game runtime. -// -// Returns awserr.Error for service API and SDK errors. Use runtime type assertions -// with awserr.Error's Code and Message methods to get detailed information about -// the error. -// -// See the AWS API reference guide for GameSparks's -// API operation DeleteStage for usage and error information. -// -// Returned Error Types: -// -// - ValidationException -// One of the parameters in the request is invalid. -// -// - AccessDeniedException -// You do not have sufficient access to perform this action. -// -// - ThrottlingException -// The request throughput limit was exceeded. -// -// - ConflictException -// The resource already exists, or another operation is in progress. -// -// - ResourceNotFoundException -// The resource specified in the request does not exist. -// -// - InternalServerException -// The service encountered an internal error. -// -// See also, https://docs.aws.amazon.com/goto/WebAPI/gamesparks-2021-08-17/DeleteStage -func (c *GameSparks) DeleteStage(input *DeleteStageInput) (*DeleteStageOutput, error) { - req, out := c.DeleteStageRequest(input) - return out, req.Send() -} - -// DeleteStageWithContext is the same as DeleteStage with the addition of -// the ability to pass a context and additional request options. -// -// See DeleteStage for details on how to use this API operation. -// -// The context must be non-nil and will be used for request cancellation. If -// the context is nil a panic will occur. In the future the SDK may create -// sub-contexts for http.Requests. See https://golang.org/pkg/context/ -// for more information on using Contexts. -func (c *GameSparks) DeleteStageWithContext(ctx aws.Context, input *DeleteStageInput, opts ...request.Option) (*DeleteStageOutput, error) { - req, out := c.DeleteStageRequest(input) - req.SetContext(ctx) - req.ApplyOptions(opts...) - return out, req.Send() -} - -const opDisconnectPlayer = "DisconnectPlayer" - -// DisconnectPlayerRequest generates a "aws/request.Request" representing the -// client's request for the DisconnectPlayer operation. The "output" return -// value will be populated with the request's response once the request completes -// successfully. -// -// Use "Send" method on the returned Request to send the API call to the service. -// the "output" return value is not valid until after Send returns without error. -// -// See DisconnectPlayer for more information on using the DisconnectPlayer -// API call, and error handling. -// -// This method is useful when you want to inject custom logic or configuration -// into the SDK's request lifecycle. Such as custom headers, or retry logic. -// -// // Example sending a request using the DisconnectPlayerRequest method. -// req, resp := client.DisconnectPlayerRequest(params) -// -// err := req.Send() -// if err == nil { // resp is now filled -// fmt.Println(resp) -// } -// -// See also, https://docs.aws.amazon.com/goto/WebAPI/gamesparks-2021-08-17/DisconnectPlayer -func (c *GameSparks) DisconnectPlayerRequest(input *DisconnectPlayerInput) (req *request.Request, output *DisconnectPlayerOutput) { - op := &request.Operation{ - Name: opDisconnectPlayer, - HTTPMethod: "POST", - HTTPPath: "/runtime/game/{GameName}/stage/{StageName}/player/{PlayerId}/disconnect", - } - - if input == nil { - input = &DisconnectPlayerInput{} - } - - output = &DisconnectPlayerOutput{} - req = c.newRequest(op, input, output) - return -} - -// DisconnectPlayer API operation for GameSparks. -// -// Disconnects a player from the game runtime. -// -// If a player has multiple connections, this operation attempts to close all -// of them. -// -// Returns awserr.Error for service API and SDK errors. Use runtime type assertions -// with awserr.Error's Code and Message methods to get detailed information about -// the error. -// -// See the AWS API reference guide for GameSparks's -// API operation DisconnectPlayer for usage and error information. -// -// Returned Error Types: -// -// - ValidationException -// One of the parameters in the request is invalid. -// -// - AccessDeniedException -// You do not have sufficient access to perform this action. -// -// - ThrottlingException -// The request throughput limit was exceeded. -// -// - ResourceNotFoundException -// The resource specified in the request does not exist. -// -// - InternalServerException -// The service encountered an internal error. -// -// See also, https://docs.aws.amazon.com/goto/WebAPI/gamesparks-2021-08-17/DisconnectPlayer -func (c *GameSparks) DisconnectPlayer(input *DisconnectPlayerInput) (*DisconnectPlayerOutput, error) { - req, out := c.DisconnectPlayerRequest(input) - return out, req.Send() -} - -// DisconnectPlayerWithContext is the same as DisconnectPlayer with the addition of -// the ability to pass a context and additional request options. -// -// See DisconnectPlayer for details on how to use this API operation. -// -// The context must be non-nil and will be used for request cancellation. If -// the context is nil a panic will occur. In the future the SDK may create -// sub-contexts for http.Requests. See https://golang.org/pkg/context/ -// for more information on using Contexts. -func (c *GameSparks) DisconnectPlayerWithContext(ctx aws.Context, input *DisconnectPlayerInput, opts ...request.Option) (*DisconnectPlayerOutput, error) { - req, out := c.DisconnectPlayerRequest(input) - req.SetContext(ctx) - req.ApplyOptions(opts...) - return out, req.Send() -} - -const opExportSnapshot = "ExportSnapshot" - -// ExportSnapshotRequest generates a "aws/request.Request" representing the -// client's request for the ExportSnapshot operation. The "output" return -// value will be populated with the request's response once the request completes -// successfully. -// -// Use "Send" method on the returned Request to send the API call to the service. -// the "output" return value is not valid until after Send returns without error. -// -// See ExportSnapshot for more information on using the ExportSnapshot -// API call, and error handling. -// -// This method is useful when you want to inject custom logic or configuration -// into the SDK's request lifecycle. Such as custom headers, or retry logic. -// -// // Example sending a request using the ExportSnapshotRequest method. -// req, resp := client.ExportSnapshotRequest(params) -// -// err := req.Send() -// if err == nil { // resp is now filled -// fmt.Println(resp) -// } -// -// See also, https://docs.aws.amazon.com/goto/WebAPI/gamesparks-2021-08-17/ExportSnapshot -func (c *GameSparks) ExportSnapshotRequest(input *ExportSnapshotInput) (req *request.Request, output *ExportSnapshotOutput) { - op := &request.Operation{ - Name: opExportSnapshot, - HTTPMethod: "GET", - HTTPPath: "/game/{GameName}/snapshot/{SnapshotId}/export", - } - - if input == nil { - input = &ExportSnapshotInput{} - } - - output = &ExportSnapshotOutput{} - req = c.newRequest(op, input, output) - return -} - -// ExportSnapshot API operation for GameSparks. -// -// Exports a game configuration snapshot. -// -// Returns awserr.Error for service API and SDK errors. Use runtime type assertions -// with awserr.Error's Code and Message methods to get detailed information about -// the error. -// -// See the AWS API reference guide for GameSparks's -// API operation ExportSnapshot for usage and error information. -// -// Returned Error Types: -// -// - ValidationException -// One of the parameters in the request is invalid. -// -// - AccessDeniedException -// You do not have sufficient access to perform this action. -// -// - ThrottlingException -// The request throughput limit was exceeded. -// -// - ResourceNotFoundException -// The resource specified in the request does not exist. -// -// - InternalServerException -// The service encountered an internal error. -// -// See also, https://docs.aws.amazon.com/goto/WebAPI/gamesparks-2021-08-17/ExportSnapshot -func (c *GameSparks) ExportSnapshot(input *ExportSnapshotInput) (*ExportSnapshotOutput, error) { - req, out := c.ExportSnapshotRequest(input) - return out, req.Send() -} - -// ExportSnapshotWithContext is the same as ExportSnapshot with the addition of -// the ability to pass a context and additional request options. -// -// See ExportSnapshot for details on how to use this API operation. -// -// The context must be non-nil and will be used for request cancellation. If -// the context is nil a panic will occur. In the future the SDK may create -// sub-contexts for http.Requests. See https://golang.org/pkg/context/ -// for more information on using Contexts. -func (c *GameSparks) ExportSnapshotWithContext(ctx aws.Context, input *ExportSnapshotInput, opts ...request.Option) (*ExportSnapshotOutput, error) { - req, out := c.ExportSnapshotRequest(input) - req.SetContext(ctx) - req.ApplyOptions(opts...) - return out, req.Send() -} - -const opGetExtension = "GetExtension" - -// GetExtensionRequest generates a "aws/request.Request" representing the -// client's request for the GetExtension operation. The "output" return -// value will be populated with the request's response once the request completes -// successfully. -// -// Use "Send" method on the returned Request to send the API call to the service. -// the "output" return value is not valid until after Send returns without error. -// -// See GetExtension for more information on using the GetExtension -// API call, and error handling. -// -// This method is useful when you want to inject custom logic or configuration -// into the SDK's request lifecycle. Such as custom headers, or retry logic. -// -// // Example sending a request using the GetExtensionRequest method. -// req, resp := client.GetExtensionRequest(params) -// -// err := req.Send() -// if err == nil { // resp is now filled -// fmt.Println(resp) -// } -// -// See also, https://docs.aws.amazon.com/goto/WebAPI/gamesparks-2021-08-17/GetExtension -func (c *GameSparks) GetExtensionRequest(input *GetExtensionInput) (req *request.Request, output *GetExtensionOutput) { - op := &request.Operation{ - Name: opGetExtension, - HTTPMethod: "GET", - HTTPPath: "/extension/{Namespace}/{Name}", - } - - if input == nil { - input = &GetExtensionInput{} - } - - output = &GetExtensionOutput{} - req = c.newRequest(op, input, output) - return -} - -// GetExtension API operation for GameSparks. -// -// Gets details about a specified extension. -// -// Returns awserr.Error for service API and SDK errors. Use runtime type assertions -// with awserr.Error's Code and Message methods to get detailed information about -// the error. -// -// See the AWS API reference guide for GameSparks's -// API operation GetExtension for usage and error information. -// -// Returned Error Types: -// -// - ValidationException -// One of the parameters in the request is invalid. -// -// - AccessDeniedException -// You do not have sufficient access to perform this action. -// -// - ThrottlingException -// The request throughput limit was exceeded. -// -// - ResourceNotFoundException -// The resource specified in the request does not exist. -// -// - InternalServerException -// The service encountered an internal error. -// -// See also, https://docs.aws.amazon.com/goto/WebAPI/gamesparks-2021-08-17/GetExtension -func (c *GameSparks) GetExtension(input *GetExtensionInput) (*GetExtensionOutput, error) { - req, out := c.GetExtensionRequest(input) - return out, req.Send() -} - -// GetExtensionWithContext is the same as GetExtension with the addition of -// the ability to pass a context and additional request options. -// -// See GetExtension for details on how to use this API operation. -// -// The context must be non-nil and will be used for request cancellation. If -// the context is nil a panic will occur. In the future the SDK may create -// sub-contexts for http.Requests. See https://golang.org/pkg/context/ -// for more information on using Contexts. -func (c *GameSparks) GetExtensionWithContext(ctx aws.Context, input *GetExtensionInput, opts ...request.Option) (*GetExtensionOutput, error) { - req, out := c.GetExtensionRequest(input) - req.SetContext(ctx) - req.ApplyOptions(opts...) - return out, req.Send() -} - -const opGetExtensionVersion = "GetExtensionVersion" - -// GetExtensionVersionRequest generates a "aws/request.Request" representing the -// client's request for the GetExtensionVersion operation. The "output" return -// value will be populated with the request's response once the request completes -// successfully. -// -// Use "Send" method on the returned Request to send the API call to the service. -// the "output" return value is not valid until after Send returns without error. -// -// See GetExtensionVersion for more information on using the GetExtensionVersion -// API call, and error handling. -// -// This method is useful when you want to inject custom logic or configuration -// into the SDK's request lifecycle. Such as custom headers, or retry logic. -// -// // Example sending a request using the GetExtensionVersionRequest method. -// req, resp := client.GetExtensionVersionRequest(params) -// -// err := req.Send() -// if err == nil { // resp is now filled -// fmt.Println(resp) -// } -// -// See also, https://docs.aws.amazon.com/goto/WebAPI/gamesparks-2021-08-17/GetExtensionVersion -func (c *GameSparks) GetExtensionVersionRequest(input *GetExtensionVersionInput) (req *request.Request, output *GetExtensionVersionOutput) { - op := &request.Operation{ - Name: opGetExtensionVersion, - HTTPMethod: "GET", - HTTPPath: "/extension/{Namespace}/{Name}/version/{ExtensionVersion}", - } - - if input == nil { - input = &GetExtensionVersionInput{} - } - - output = &GetExtensionVersionOutput{} - req = c.newRequest(op, input, output) - return -} - -// GetExtensionVersion API operation for GameSparks. -// -// Gets details about a specified extension version. -// -// Returns awserr.Error for service API and SDK errors. Use runtime type assertions -// with awserr.Error's Code and Message methods to get detailed information about -// the error. -// -// See the AWS API reference guide for GameSparks's -// API operation GetExtensionVersion for usage and error information. -// -// Returned Error Types: -// -// - ValidationException -// One of the parameters in the request is invalid. -// -// - AccessDeniedException -// You do not have sufficient access to perform this action. -// -// - ThrottlingException -// The request throughput limit was exceeded. -// -// - ResourceNotFoundException -// The resource specified in the request does not exist. -// -// - InternalServerException -// The service encountered an internal error. -// -// See also, https://docs.aws.amazon.com/goto/WebAPI/gamesparks-2021-08-17/GetExtensionVersion -func (c *GameSparks) GetExtensionVersion(input *GetExtensionVersionInput) (*GetExtensionVersionOutput, error) { - req, out := c.GetExtensionVersionRequest(input) - return out, req.Send() -} - -// GetExtensionVersionWithContext is the same as GetExtensionVersion with the addition of -// the ability to pass a context and additional request options. -// -// See GetExtensionVersion for details on how to use this API operation. -// -// The context must be non-nil and will be used for request cancellation. If -// the context is nil a panic will occur. In the future the SDK may create -// sub-contexts for http.Requests. See https://golang.org/pkg/context/ -// for more information on using Contexts. -func (c *GameSparks) GetExtensionVersionWithContext(ctx aws.Context, input *GetExtensionVersionInput, opts ...request.Option) (*GetExtensionVersionOutput, error) { - req, out := c.GetExtensionVersionRequest(input) - req.SetContext(ctx) - req.ApplyOptions(opts...) - return out, req.Send() -} - -const opGetGame = "GetGame" - -// GetGameRequest generates a "aws/request.Request" representing the -// client's request for the GetGame operation. The "output" return -// value will be populated with the request's response once the request completes -// successfully. -// -// Use "Send" method on the returned Request to send the API call to the service. -// the "output" return value is not valid until after Send returns without error. -// -// See GetGame for more information on using the GetGame -// API call, and error handling. -// -// This method is useful when you want to inject custom logic or configuration -// into the SDK's request lifecycle. Such as custom headers, or retry logic. -// -// // Example sending a request using the GetGameRequest method. -// req, resp := client.GetGameRequest(params) -// -// err := req.Send() -// if err == nil { // resp is now filled -// fmt.Println(resp) -// } -// -// See also, https://docs.aws.amazon.com/goto/WebAPI/gamesparks-2021-08-17/GetGame -func (c *GameSparks) GetGameRequest(input *GetGameInput) (req *request.Request, output *GetGameOutput) { - op := &request.Operation{ - Name: opGetGame, - HTTPMethod: "GET", - HTTPPath: "/game/{GameName}", - } - - if input == nil { - input = &GetGameInput{} - } - - output = &GetGameOutput{} - req = c.newRequest(op, input, output) - return -} - -// GetGame API operation for GameSparks. -// -// Gets details about a game. -// -// Returns awserr.Error for service API and SDK errors. Use runtime type assertions -// with awserr.Error's Code and Message methods to get detailed information about -// the error. -// -// See the AWS API reference guide for GameSparks's -// API operation GetGame for usage and error information. -// -// Returned Error Types: -// -// - ValidationException -// One of the parameters in the request is invalid. -// -// - AccessDeniedException -// You do not have sufficient access to perform this action. -// -// - ThrottlingException -// The request throughput limit was exceeded. -// -// - ResourceNotFoundException -// The resource specified in the request does not exist. -// -// - InternalServerException -// The service encountered an internal error. -// -// See also, https://docs.aws.amazon.com/goto/WebAPI/gamesparks-2021-08-17/GetGame -func (c *GameSparks) GetGame(input *GetGameInput) (*GetGameOutput, error) { - req, out := c.GetGameRequest(input) - return out, req.Send() -} - -// GetGameWithContext is the same as GetGame with the addition of -// the ability to pass a context and additional request options. -// -// See GetGame for details on how to use this API operation. -// -// The context must be non-nil and will be used for request cancellation. If -// the context is nil a panic will occur. In the future the SDK may create -// sub-contexts for http.Requests. See https://golang.org/pkg/context/ -// for more information on using Contexts. -func (c *GameSparks) GetGameWithContext(ctx aws.Context, input *GetGameInput, opts ...request.Option) (*GetGameOutput, error) { - req, out := c.GetGameRequest(input) - req.SetContext(ctx) - req.ApplyOptions(opts...) - return out, req.Send() -} - -const opGetGameConfiguration = "GetGameConfiguration" - -// GetGameConfigurationRequest generates a "aws/request.Request" representing the -// client's request for the GetGameConfiguration operation. The "output" return -// value will be populated with the request's response once the request completes -// successfully. -// -// Use "Send" method on the returned Request to send the API call to the service. -// the "output" return value is not valid until after Send returns without error. -// -// See GetGameConfiguration for more information on using the GetGameConfiguration -// API call, and error handling. -// -// This method is useful when you want to inject custom logic or configuration -// into the SDK's request lifecycle. Such as custom headers, or retry logic. -// -// // Example sending a request using the GetGameConfigurationRequest method. -// req, resp := client.GetGameConfigurationRequest(params) -// -// err := req.Send() -// if err == nil { // resp is now filled -// fmt.Println(resp) -// } -// -// See also, https://docs.aws.amazon.com/goto/WebAPI/gamesparks-2021-08-17/GetGameConfiguration -func (c *GameSparks) GetGameConfigurationRequest(input *GetGameConfigurationInput) (req *request.Request, output *GetGameConfigurationOutput) { - op := &request.Operation{ - Name: opGetGameConfiguration, - HTTPMethod: "GET", - HTTPPath: "/game/{GameName}/configuration", - } - - if input == nil { - input = &GetGameConfigurationInput{} - } - - output = &GetGameConfigurationOutput{} - req = c.newRequest(op, input, output) - return -} - -// GetGameConfiguration API operation for GameSparks. -// -// Gets the configuration of the game. -// -// Returns awserr.Error for service API and SDK errors. Use runtime type assertions -// with awserr.Error's Code and Message methods to get detailed information about -// the error. -// -// See the AWS API reference guide for GameSparks's -// API operation GetGameConfiguration for usage and error information. -// -// Returned Error Types: -// -// - ValidationException -// One of the parameters in the request is invalid. -// -// - AccessDeniedException -// You do not have sufficient access to perform this action. -// -// - ThrottlingException -// The request throughput limit was exceeded. -// -// - ResourceNotFoundException -// The resource specified in the request does not exist. -// -// - InternalServerException -// The service encountered an internal error. -// -// See also, https://docs.aws.amazon.com/goto/WebAPI/gamesparks-2021-08-17/GetGameConfiguration -func (c *GameSparks) GetGameConfiguration(input *GetGameConfigurationInput) (*GetGameConfigurationOutput, error) { - req, out := c.GetGameConfigurationRequest(input) - return out, req.Send() -} - -// GetGameConfigurationWithContext is the same as GetGameConfiguration with the addition of -// the ability to pass a context and additional request options. -// -// See GetGameConfiguration for details on how to use this API operation. -// -// The context must be non-nil and will be used for request cancellation. If -// the context is nil a panic will occur. In the future the SDK may create -// sub-contexts for http.Requests. See https://golang.org/pkg/context/ -// for more information on using Contexts. -func (c *GameSparks) GetGameConfigurationWithContext(ctx aws.Context, input *GetGameConfigurationInput, opts ...request.Option) (*GetGameConfigurationOutput, error) { - req, out := c.GetGameConfigurationRequest(input) - req.SetContext(ctx) - req.ApplyOptions(opts...) - return out, req.Send() -} - -const opGetGeneratedCodeJob = "GetGeneratedCodeJob" - -// GetGeneratedCodeJobRequest generates a "aws/request.Request" representing the -// client's request for the GetGeneratedCodeJob operation. The "output" return -// value will be populated with the request's response once the request completes -// successfully. -// -// Use "Send" method on the returned Request to send the API call to the service. -// the "output" return value is not valid until after Send returns without error. -// -// See GetGeneratedCodeJob for more information on using the GetGeneratedCodeJob -// API call, and error handling. -// -// This method is useful when you want to inject custom logic or configuration -// into the SDK's request lifecycle. Such as custom headers, or retry logic. -// -// // Example sending a request using the GetGeneratedCodeJobRequest method. -// req, resp := client.GetGeneratedCodeJobRequest(params) -// -// err := req.Send() -// if err == nil { // resp is now filled -// fmt.Println(resp) -// } -// -// See also, https://docs.aws.amazon.com/goto/WebAPI/gamesparks-2021-08-17/GetGeneratedCodeJob -func (c *GameSparks) GetGeneratedCodeJobRequest(input *GetGeneratedCodeJobInput) (req *request.Request, output *GetGeneratedCodeJobOutput) { - op := &request.Operation{ - Name: opGetGeneratedCodeJob, - HTTPMethod: "GET", - HTTPPath: "/game/{GameName}/snapshot/{SnapshotId}/generated-sdk-code-job/{JobId}", - } - - if input == nil { - input = &GetGeneratedCodeJobInput{} - } - - output = &GetGeneratedCodeJobOutput{} - req = c.newRequest(op, input, output) - return -} - -// GetGeneratedCodeJob API operation for GameSparks. -// -// Gets details about a job that is generating code for a snapshot. -// -// Returns awserr.Error for service API and SDK errors. Use runtime type assertions -// with awserr.Error's Code and Message methods to get detailed information about -// the error. -// -// See the AWS API reference guide for GameSparks's -// API operation GetGeneratedCodeJob for usage and error information. -// -// Returned Error Types: -// -// - ValidationException -// One of the parameters in the request is invalid. -// -// - AccessDeniedException -// You do not have sufficient access to perform this action. -// -// - ThrottlingException -// The request throughput limit was exceeded. -// -// - ResourceNotFoundException -// The resource specified in the request does not exist. -// -// - InternalServerException -// The service encountered an internal error. -// -// See also, https://docs.aws.amazon.com/goto/WebAPI/gamesparks-2021-08-17/GetGeneratedCodeJob -func (c *GameSparks) GetGeneratedCodeJob(input *GetGeneratedCodeJobInput) (*GetGeneratedCodeJobOutput, error) { - req, out := c.GetGeneratedCodeJobRequest(input) - return out, req.Send() -} - -// GetGeneratedCodeJobWithContext is the same as GetGeneratedCodeJob with the addition of -// the ability to pass a context and additional request options. -// -// See GetGeneratedCodeJob for details on how to use this API operation. -// -// The context must be non-nil and will be used for request cancellation. If -// the context is nil a panic will occur. In the future the SDK may create -// sub-contexts for http.Requests. See https://golang.org/pkg/context/ -// for more information on using Contexts. -func (c *GameSparks) GetGeneratedCodeJobWithContext(ctx aws.Context, input *GetGeneratedCodeJobInput, opts ...request.Option) (*GetGeneratedCodeJobOutput, error) { - req, out := c.GetGeneratedCodeJobRequest(input) - req.SetContext(ctx) - req.ApplyOptions(opts...) - return out, req.Send() -} - -const opGetPlayerConnectionStatus = "GetPlayerConnectionStatus" - -// GetPlayerConnectionStatusRequest generates a "aws/request.Request" representing the -// client's request for the GetPlayerConnectionStatus operation. The "output" return -// value will be populated with the request's response once the request completes -// successfully. -// -// Use "Send" method on the returned Request to send the API call to the service. -// the "output" return value is not valid until after Send returns without error. -// -// See GetPlayerConnectionStatus for more information on using the GetPlayerConnectionStatus -// API call, and error handling. -// -// This method is useful when you want to inject custom logic or configuration -// into the SDK's request lifecycle. Such as custom headers, or retry logic. -// -// // Example sending a request using the GetPlayerConnectionStatusRequest method. -// req, resp := client.GetPlayerConnectionStatusRequest(params) -// -// err := req.Send() -// if err == nil { // resp is now filled -// fmt.Println(resp) -// } -// -// See also, https://docs.aws.amazon.com/goto/WebAPI/gamesparks-2021-08-17/GetPlayerConnectionStatus -func (c *GameSparks) GetPlayerConnectionStatusRequest(input *GetPlayerConnectionStatusInput) (req *request.Request, output *GetPlayerConnectionStatusOutput) { - op := &request.Operation{ - Name: opGetPlayerConnectionStatus, - HTTPMethod: "GET", - HTTPPath: "/runtime/game/{GameName}/stage/{StageName}/player/{PlayerId}/connection", - } - - if input == nil { - input = &GetPlayerConnectionStatusInput{} - } - - output = &GetPlayerConnectionStatusOutput{} - req = c.newRequest(op, input, output) - return -} - -// GetPlayerConnectionStatus API operation for GameSparks. -// -// Gets the status of a player's connection to the game runtime. -// -// 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. -// -// Returns awserr.Error for service API and SDK errors. Use runtime type assertions -// with awserr.Error's Code and Message methods to get detailed information about -// the error. -// -// See the AWS API reference guide for GameSparks's -// API operation GetPlayerConnectionStatus for usage and error information. -// -// Returned Error Types: -// -// - ValidationException -// One of the parameters in the request is invalid. -// -// - AccessDeniedException -// You do not have sufficient access to perform this action. -// -// - ThrottlingException -// The request throughput limit was exceeded. -// -// - ResourceNotFoundException -// The resource specified in the request does not exist. -// -// - InternalServerException -// The service encountered an internal error. -// -// See also, https://docs.aws.amazon.com/goto/WebAPI/gamesparks-2021-08-17/GetPlayerConnectionStatus -func (c *GameSparks) GetPlayerConnectionStatus(input *GetPlayerConnectionStatusInput) (*GetPlayerConnectionStatusOutput, error) { - req, out := c.GetPlayerConnectionStatusRequest(input) - return out, req.Send() -} - -// GetPlayerConnectionStatusWithContext is the same as GetPlayerConnectionStatus with the addition of -// the ability to pass a context and additional request options. -// -// See GetPlayerConnectionStatus for details on how to use this API operation. -// -// The context must be non-nil and will be used for request cancellation. If -// the context is nil a panic will occur. In the future the SDK may create -// sub-contexts for http.Requests. See https://golang.org/pkg/context/ -// for more information on using Contexts. -func (c *GameSparks) GetPlayerConnectionStatusWithContext(ctx aws.Context, input *GetPlayerConnectionStatusInput, opts ...request.Option) (*GetPlayerConnectionStatusOutput, error) { - req, out := c.GetPlayerConnectionStatusRequest(input) - req.SetContext(ctx) - req.ApplyOptions(opts...) - return out, req.Send() -} - -const opGetSnapshot = "GetSnapshot" - -// GetSnapshotRequest generates a "aws/request.Request" representing the -// client's request for the GetSnapshot operation. The "output" return -// value will be populated with the request's response once the request completes -// successfully. -// -// Use "Send" method on the returned Request to send the API call to the service. -// the "output" return value is not valid until after Send returns without error. -// -// See GetSnapshot for more information on using the GetSnapshot -// API call, and error handling. -// -// This method is useful when you want to inject custom logic or configuration -// into the SDK's request lifecycle. Such as custom headers, or retry logic. -// -// // Example sending a request using the GetSnapshotRequest method. -// req, resp := client.GetSnapshotRequest(params) -// -// err := req.Send() -// if err == nil { // resp is now filled -// fmt.Println(resp) -// } -// -// See also, https://docs.aws.amazon.com/goto/WebAPI/gamesparks-2021-08-17/GetSnapshot -func (c *GameSparks) GetSnapshotRequest(input *GetSnapshotInput) (req *request.Request, output *GetSnapshotOutput) { - op := &request.Operation{ - Name: opGetSnapshot, - HTTPMethod: "GET", - HTTPPath: "/game/{GameName}/snapshot/{SnapshotId}", - } - - if input == nil { - input = &GetSnapshotInput{} - } - - output = &GetSnapshotOutput{} - req = c.newRequest(op, input, output) - return -} - -// GetSnapshot API operation for GameSparks. -// -// Gets a copy of the game configuration in a snapshot. -// -// Returns awserr.Error for service API and SDK errors. Use runtime type assertions -// with awserr.Error's Code and Message methods to get detailed information about -// the error. -// -// See the AWS API reference guide for GameSparks's -// API operation GetSnapshot for usage and error information. -// -// Returned Error Types: -// -// - ValidationException -// One of the parameters in the request is invalid. -// -// - AccessDeniedException -// You do not have sufficient access to perform this action. -// -// - ThrottlingException -// The request throughput limit was exceeded. -// -// - ResourceNotFoundException -// The resource specified in the request does not exist. -// -// - InternalServerException -// The service encountered an internal error. -// -// See also, https://docs.aws.amazon.com/goto/WebAPI/gamesparks-2021-08-17/GetSnapshot -func (c *GameSparks) GetSnapshot(input *GetSnapshotInput) (*GetSnapshotOutput, error) { - req, out := c.GetSnapshotRequest(input) - return out, req.Send() -} - -// GetSnapshotWithContext is the same as GetSnapshot with the addition of -// the ability to pass a context and additional request options. -// -// See GetSnapshot for details on how to use this API operation. -// -// The context must be non-nil and will be used for request cancellation. If -// the context is nil a panic will occur. In the future the SDK may create -// sub-contexts for http.Requests. See https://golang.org/pkg/context/ -// for more information on using Contexts. -func (c *GameSparks) GetSnapshotWithContext(ctx aws.Context, input *GetSnapshotInput, opts ...request.Option) (*GetSnapshotOutput, error) { - req, out := c.GetSnapshotRequest(input) - req.SetContext(ctx) - req.ApplyOptions(opts...) - return out, req.Send() -} - -const opGetStage = "GetStage" - -// GetStageRequest generates a "aws/request.Request" representing the -// client's request for the GetStage operation. The "output" return -// value will be populated with the request's response once the request completes -// successfully. -// -// Use "Send" method on the returned Request to send the API call to the service. -// the "output" return value is not valid until after Send returns without error. -// -// See GetStage for more information on using the GetStage -// API call, and error handling. -// -// This method is useful when you want to inject custom logic or configuration -// into the SDK's request lifecycle. Such as custom headers, or retry logic. -// -// // Example sending a request using the GetStageRequest method. -// req, resp := client.GetStageRequest(params) -// -// err := req.Send() -// if err == nil { // resp is now filled -// fmt.Println(resp) -// } -// -// See also, https://docs.aws.amazon.com/goto/WebAPI/gamesparks-2021-08-17/GetStage -func (c *GameSparks) GetStageRequest(input *GetStageInput) (req *request.Request, output *GetStageOutput) { - op := &request.Operation{ - Name: opGetStage, - HTTPMethod: "GET", - HTTPPath: "/game/{GameName}/stage/{StageName}", - } - - if input == nil { - input = &GetStageInput{} - } - - output = &GetStageOutput{} - req = c.newRequest(op, input, output) - return -} - -// GetStage API operation for GameSparks. -// -// Gets information about a stage. -// -// Returns awserr.Error for service API and SDK errors. Use runtime type assertions -// with awserr.Error's Code and Message methods to get detailed information about -// the error. -// -// See the AWS API reference guide for GameSparks's -// API operation GetStage for usage and error information. -// -// Returned Error Types: -// -// - ValidationException -// One of the parameters in the request is invalid. -// -// - AccessDeniedException -// You do not have sufficient access to perform this action. -// -// - ThrottlingException -// The request throughput limit was exceeded. -// -// - ResourceNotFoundException -// The resource specified in the request does not exist. -// -// - InternalServerException -// The service encountered an internal error. -// -// See also, https://docs.aws.amazon.com/goto/WebAPI/gamesparks-2021-08-17/GetStage -func (c *GameSparks) GetStage(input *GetStageInput) (*GetStageOutput, error) { - req, out := c.GetStageRequest(input) - return out, req.Send() -} - -// GetStageWithContext is the same as GetStage with the addition of -// the ability to pass a context and additional request options. -// -// See GetStage for details on how to use this API operation. -// -// The context must be non-nil and will be used for request cancellation. If -// the context is nil a panic will occur. In the future the SDK may create -// sub-contexts for http.Requests. See https://golang.org/pkg/context/ -// for more information on using Contexts. -func (c *GameSparks) GetStageWithContext(ctx aws.Context, input *GetStageInput, opts ...request.Option) (*GetStageOutput, error) { - req, out := c.GetStageRequest(input) - req.SetContext(ctx) - req.ApplyOptions(opts...) - return out, req.Send() -} - -const opGetStageDeployment = "GetStageDeployment" - -// GetStageDeploymentRequest generates a "aws/request.Request" representing the -// client's request for the GetStageDeployment operation. The "output" return -// value will be populated with the request's response once the request completes -// successfully. -// -// Use "Send" method on the returned Request to send the API call to the service. -// the "output" return value is not valid until after Send returns without error. -// -// See GetStageDeployment for more information on using the GetStageDeployment -// API call, and error handling. -// -// This method is useful when you want to inject custom logic or configuration -// into the SDK's request lifecycle. Such as custom headers, or retry logic. -// -// // Example sending a request using the GetStageDeploymentRequest method. -// req, resp := client.GetStageDeploymentRequest(params) -// -// err := req.Send() -// if err == nil { // resp is now filled -// fmt.Println(resp) -// } -// -// See also, https://docs.aws.amazon.com/goto/WebAPI/gamesparks-2021-08-17/GetStageDeployment -func (c *GameSparks) GetStageDeploymentRequest(input *GetStageDeploymentInput) (req *request.Request, output *GetStageDeploymentOutput) { - op := &request.Operation{ - Name: opGetStageDeployment, - HTTPMethod: "GET", - HTTPPath: "/game/{GameName}/stage/{StageName}/deployment", - } - - if input == nil { - input = &GetStageDeploymentInput{} - } - - output = &GetStageDeploymentOutput{} - req = c.newRequest(op, input, output) - return -} - -// GetStageDeployment API operation for GameSparks. -// -// Gets information about a stage deployment. -// -// Returns awserr.Error for service API and SDK errors. Use runtime type assertions -// with awserr.Error's Code and Message methods to get detailed information about -// the error. -// -// See the AWS API reference guide for GameSparks's -// API operation GetStageDeployment for usage and error information. -// -// Returned Error Types: -// -// - ValidationException -// One of the parameters in the request is invalid. -// -// - AccessDeniedException -// You do not have sufficient access to perform this action. -// -// - ThrottlingException -// The request throughput limit was exceeded. -// -// - ResourceNotFoundException -// The resource specified in the request does not exist. -// -// - InternalServerException -// The service encountered an internal error. -// -// See also, https://docs.aws.amazon.com/goto/WebAPI/gamesparks-2021-08-17/GetStageDeployment -func (c *GameSparks) GetStageDeployment(input *GetStageDeploymentInput) (*GetStageDeploymentOutput, error) { - req, out := c.GetStageDeploymentRequest(input) - return out, req.Send() -} - -// GetStageDeploymentWithContext is the same as GetStageDeployment with the addition of -// the ability to pass a context and additional request options. -// -// See GetStageDeployment for details on how to use this API operation. -// -// The context must be non-nil and will be used for request cancellation. If -// the context is nil a panic will occur. In the future the SDK may create -// sub-contexts for http.Requests. See https://golang.org/pkg/context/ -// for more information on using Contexts. -func (c *GameSparks) GetStageDeploymentWithContext(ctx aws.Context, input *GetStageDeploymentInput, opts ...request.Option) (*GetStageDeploymentOutput, error) { - req, out := c.GetStageDeploymentRequest(input) - req.SetContext(ctx) - req.ApplyOptions(opts...) - return out, req.Send() -} - -const opImportGameConfiguration = "ImportGameConfiguration" - -// ImportGameConfigurationRequest generates a "aws/request.Request" representing the -// client's request for the ImportGameConfiguration operation. The "output" return -// value will be populated with the request's response once the request completes -// successfully. -// -// Use "Send" method on the returned Request to send the API call to the service. -// the "output" return value is not valid until after Send returns without error. -// -// See ImportGameConfiguration for more information on using the ImportGameConfiguration -// API call, and error handling. -// -// This method is useful when you want to inject custom logic or configuration -// into the SDK's request lifecycle. Such as custom headers, or retry logic. -// -// // Example sending a request using the ImportGameConfigurationRequest method. -// req, resp := client.ImportGameConfigurationRequest(params) -// -// err := req.Send() -// if err == nil { // resp is now filled -// fmt.Println(resp) -// } -// -// See also, https://docs.aws.amazon.com/goto/WebAPI/gamesparks-2021-08-17/ImportGameConfiguration -func (c *GameSparks) ImportGameConfigurationRequest(input *ImportGameConfigurationInput) (req *request.Request, output *ImportGameConfigurationOutput) { - op := &request.Operation{ - Name: opImportGameConfiguration, - HTTPMethod: "PUT", - HTTPPath: "/game/{GameName}/configuration", - } - - if input == nil { - input = &ImportGameConfigurationInput{} - } - - output = &ImportGameConfigurationOutput{} - req = c.newRequest(op, input, output) - return -} - -// ImportGameConfiguration API operation for GameSparks. -// -// Imports a game configuration. -// -// 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 CreateSnapshot to make a new snapshot before importing. -// -// Returns awserr.Error for service API and SDK errors. Use runtime type assertions -// with awserr.Error's Code and Message methods to get detailed information about -// the error. -// -// See the AWS API reference guide for GameSparks's -// API operation ImportGameConfiguration for usage and error information. -// -// Returned Error Types: -// -// - ValidationException -// One of the parameters in the request is invalid. -// -// - AccessDeniedException -// You do not have sufficient access to perform this action. -// -// - ThrottlingException -// The request throughput limit was exceeded. -// -// - ResourceNotFoundException -// The resource specified in the request does not exist. -// -// - InternalServerException -// The service encountered an internal error. -// -// - ServiceQuotaExceededException -// The request would result in exceeding service quota. -// -// See also, https://docs.aws.amazon.com/goto/WebAPI/gamesparks-2021-08-17/ImportGameConfiguration -func (c *GameSparks) ImportGameConfiguration(input *ImportGameConfigurationInput) (*ImportGameConfigurationOutput, error) { - req, out := c.ImportGameConfigurationRequest(input) - return out, req.Send() -} - -// ImportGameConfigurationWithContext is the same as ImportGameConfiguration with the addition of -// the ability to pass a context and additional request options. -// -// See ImportGameConfiguration for details on how to use this API operation. -// -// The context must be non-nil and will be used for request cancellation. If -// the context is nil a panic will occur. In the future the SDK may create -// sub-contexts for http.Requests. See https://golang.org/pkg/context/ -// for more information on using Contexts. -func (c *GameSparks) ImportGameConfigurationWithContext(ctx aws.Context, input *ImportGameConfigurationInput, opts ...request.Option) (*ImportGameConfigurationOutput, error) { - req, out := c.ImportGameConfigurationRequest(input) - req.SetContext(ctx) - req.ApplyOptions(opts...) - return out, req.Send() -} - -const opListExtensionVersions = "ListExtensionVersions" - -// ListExtensionVersionsRequest generates a "aws/request.Request" representing the -// client's request for the ListExtensionVersions operation. The "output" return -// value will be populated with the request's response once the request completes -// successfully. -// -// Use "Send" method on the returned Request to send the API call to the service. -// the "output" return value is not valid until after Send returns without error. -// -// See ListExtensionVersions for more information on using the ListExtensionVersions -// API call, and error handling. -// -// This method is useful when you want to inject custom logic or configuration -// into the SDK's request lifecycle. Such as custom headers, or retry logic. -// -// // Example sending a request using the ListExtensionVersionsRequest method. -// req, resp := client.ListExtensionVersionsRequest(params) -// -// err := req.Send() -// if err == nil { // resp is now filled -// fmt.Println(resp) -// } -// -// See also, https://docs.aws.amazon.com/goto/WebAPI/gamesparks-2021-08-17/ListExtensionVersions -func (c *GameSparks) ListExtensionVersionsRequest(input *ListExtensionVersionsInput) (req *request.Request, output *ListExtensionVersionsOutput) { - op := &request.Operation{ - Name: opListExtensionVersions, - HTTPMethod: "GET", - HTTPPath: "/extension/{Namespace}/{Name}/version", - Paginator: &request.Paginator{ - InputTokens: []string{"NextToken"}, - OutputTokens: []string{"NextToken"}, - LimitToken: "MaxResults", - TruncationToken: "", - }, - } - - if input == nil { - input = &ListExtensionVersionsInput{} - } - - output = &ListExtensionVersionsOutput{} - req = c.newRequest(op, input, output) - return -} - -// ListExtensionVersions API operation for GameSparks. -// -// Gets a paginated list of available versions for the extension. -// -// 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. -// -// Returns awserr.Error for service API and SDK errors. Use runtime type assertions -// with awserr.Error's Code and Message methods to get detailed information about -// the error. -// -// See the AWS API reference guide for GameSparks's -// API operation ListExtensionVersions for usage and error information. -// -// Returned Error Types: -// -// - ValidationException -// One of the parameters in the request is invalid. -// -// - AccessDeniedException -// You do not have sufficient access to perform this action. -// -// - ThrottlingException -// The request throughput limit was exceeded. -// -// - ResourceNotFoundException -// The resource specified in the request does not exist. -// -// - InternalServerException -// The service encountered an internal error. -// -// See also, https://docs.aws.amazon.com/goto/WebAPI/gamesparks-2021-08-17/ListExtensionVersions -func (c *GameSparks) ListExtensionVersions(input *ListExtensionVersionsInput) (*ListExtensionVersionsOutput, error) { - req, out := c.ListExtensionVersionsRequest(input) - return out, req.Send() -} - -// ListExtensionVersionsWithContext is the same as ListExtensionVersions with the addition of -// the ability to pass a context and additional request options. -// -// See ListExtensionVersions for details on how to use this API operation. -// -// The context must be non-nil and will be used for request cancellation. If -// the context is nil a panic will occur. In the future the SDK may create -// sub-contexts for http.Requests. See https://golang.org/pkg/context/ -// for more information on using Contexts. -func (c *GameSparks) ListExtensionVersionsWithContext(ctx aws.Context, input *ListExtensionVersionsInput, opts ...request.Option) (*ListExtensionVersionsOutput, error) { - req, out := c.ListExtensionVersionsRequest(input) - req.SetContext(ctx) - req.ApplyOptions(opts...) - return out, req.Send() -} - -// ListExtensionVersionsPages iterates over the pages of a ListExtensionVersions operation, -// calling the "fn" function with the response data for each page. To stop -// iterating, return false from the fn function. -// -// See ListExtensionVersions method for more information on how to use this operation. -// -// Note: This operation can generate multiple requests to a service. -// -// // Example iterating over at most 3 pages of a ListExtensionVersions operation. -// pageNum := 0 -// err := client.ListExtensionVersionsPages(params, -// func(page *gamesparks.ListExtensionVersionsOutput, lastPage bool) bool { -// pageNum++ -// fmt.Println(page) -// return pageNum <= 3 -// }) -func (c *GameSparks) ListExtensionVersionsPages(input *ListExtensionVersionsInput, fn func(*ListExtensionVersionsOutput, bool) bool) error { - return c.ListExtensionVersionsPagesWithContext(aws.BackgroundContext(), input, fn) -} - -// ListExtensionVersionsPagesWithContext same as ListExtensionVersionsPages except -// it takes a Context and allows setting request options on the pages. -// -// The context must be non-nil and will be used for request cancellation. If -// the context is nil a panic will occur. In the future the SDK may create -// sub-contexts for http.Requests. See https://golang.org/pkg/context/ -// for more information on using Contexts. -func (c *GameSparks) ListExtensionVersionsPagesWithContext(ctx aws.Context, input *ListExtensionVersionsInput, fn func(*ListExtensionVersionsOutput, bool) bool, opts ...request.Option) error { - p := request.Pagination{ - NewRequest: func() (*request.Request, error) { - var inCpy *ListExtensionVersionsInput - if input != nil { - tmp := *input - inCpy = &tmp - } - req, _ := c.ListExtensionVersionsRequest(inCpy) - req.SetContext(ctx) - req.ApplyOptions(opts...) - return req, nil - }, - } - - for p.Next() { - if !fn(p.Page().(*ListExtensionVersionsOutput), !p.HasNextPage()) { - break - } - } - - return p.Err() -} - -const opListExtensions = "ListExtensions" - -// ListExtensionsRequest generates a "aws/request.Request" representing the -// client's request for the ListExtensions operation. The "output" return -// value will be populated with the request's response once the request completes -// successfully. -// -// Use "Send" method on the returned Request to send the API call to the service. -// the "output" return value is not valid until after Send returns without error. -// -// See ListExtensions for more information on using the ListExtensions -// API call, and error handling. -// -// This method is useful when you want to inject custom logic or configuration -// into the SDK's request lifecycle. Such as custom headers, or retry logic. -// -// // Example sending a request using the ListExtensionsRequest method. -// req, resp := client.ListExtensionsRequest(params) -// -// err := req.Send() -// if err == nil { // resp is now filled -// fmt.Println(resp) -// } -// -// See also, https://docs.aws.amazon.com/goto/WebAPI/gamesparks-2021-08-17/ListExtensions -func (c *GameSparks) ListExtensionsRequest(input *ListExtensionsInput) (req *request.Request, output *ListExtensionsOutput) { - op := &request.Operation{ - Name: opListExtensions, - HTTPMethod: "GET", - HTTPPath: "/extension", - Paginator: &request.Paginator{ - InputTokens: []string{"NextToken"}, - OutputTokens: []string{"NextToken"}, - LimitToken: "MaxResults", - TruncationToken: "", - }, - } - - if input == nil { - input = &ListExtensionsInput{} - } - - output = &ListExtensionsOutput{} - req = c.newRequest(op, input, output) - return -} - -// ListExtensions API operation for GameSparks. -// -// Gets a paginated list of available extensions. -// -// Extensions provide features that games can use from scripts. -// -// Returns awserr.Error for service API and SDK errors. Use runtime type assertions -// with awserr.Error's Code and Message methods to get detailed information about -// the error. -// -// See the AWS API reference guide for GameSparks's -// API operation ListExtensions for usage and error information. -// -// Returned Error Types: -// -// - ValidationException -// One of the parameters in the request is invalid. -// -// - AccessDeniedException -// You do not have sufficient access to perform this action. -// -// - ThrottlingException -// The request throughput limit was exceeded. -// -// - InternalServerException -// The service encountered an internal error. -// -// See also, https://docs.aws.amazon.com/goto/WebAPI/gamesparks-2021-08-17/ListExtensions -func (c *GameSparks) ListExtensions(input *ListExtensionsInput) (*ListExtensionsOutput, error) { - req, out := c.ListExtensionsRequest(input) - return out, req.Send() -} - -// ListExtensionsWithContext is the same as ListExtensions with the addition of -// the ability to pass a context and additional request options. -// -// See ListExtensions for details on how to use this API operation. -// -// The context must be non-nil and will be used for request cancellation. If -// the context is nil a panic will occur. In the future the SDK may create -// sub-contexts for http.Requests. See https://golang.org/pkg/context/ -// for more information on using Contexts. -func (c *GameSparks) ListExtensionsWithContext(ctx aws.Context, input *ListExtensionsInput, opts ...request.Option) (*ListExtensionsOutput, error) { - req, out := c.ListExtensionsRequest(input) - req.SetContext(ctx) - req.ApplyOptions(opts...) - return out, req.Send() -} - -// ListExtensionsPages iterates over the pages of a ListExtensions operation, -// calling the "fn" function with the response data for each page. To stop -// iterating, return false from the fn function. -// -// See ListExtensions method for more information on how to use this operation. -// -// Note: This operation can generate multiple requests to a service. -// -// // Example iterating over at most 3 pages of a ListExtensions operation. -// pageNum := 0 -// err := client.ListExtensionsPages(params, -// func(page *gamesparks.ListExtensionsOutput, lastPage bool) bool { -// pageNum++ -// fmt.Println(page) -// return pageNum <= 3 -// }) -func (c *GameSparks) ListExtensionsPages(input *ListExtensionsInput, fn func(*ListExtensionsOutput, bool) bool) error { - return c.ListExtensionsPagesWithContext(aws.BackgroundContext(), input, fn) -} - -// ListExtensionsPagesWithContext same as ListExtensionsPages except -// it takes a Context and allows setting request options on the pages. -// -// The context must be non-nil and will be used for request cancellation. If -// the context is nil a panic will occur. In the future the SDK may create -// sub-contexts for http.Requests. See https://golang.org/pkg/context/ -// for more information on using Contexts. -func (c *GameSparks) ListExtensionsPagesWithContext(ctx aws.Context, input *ListExtensionsInput, fn func(*ListExtensionsOutput, bool) bool, opts ...request.Option) error { - p := request.Pagination{ - NewRequest: func() (*request.Request, error) { - var inCpy *ListExtensionsInput - if input != nil { - tmp := *input - inCpy = &tmp - } - req, _ := c.ListExtensionsRequest(inCpy) - req.SetContext(ctx) - req.ApplyOptions(opts...) - return req, nil - }, - } - - for p.Next() { - if !fn(p.Page().(*ListExtensionsOutput), !p.HasNextPage()) { - break - } - } - - return p.Err() -} - -const opListGames = "ListGames" - -// ListGamesRequest generates a "aws/request.Request" representing the -// client's request for the ListGames operation. The "output" return -// value will be populated with the request's response once the request completes -// successfully. -// -// Use "Send" method on the returned Request to send the API call to the service. -// the "output" return value is not valid until after Send returns without error. -// -// See ListGames for more information on using the ListGames -// API call, and error handling. -// -// This method is useful when you want to inject custom logic or configuration -// into the SDK's request lifecycle. Such as custom headers, or retry logic. -// -// // Example sending a request using the ListGamesRequest method. -// req, resp := client.ListGamesRequest(params) -// -// err := req.Send() -// if err == nil { // resp is now filled -// fmt.Println(resp) -// } -// -// See also, https://docs.aws.amazon.com/goto/WebAPI/gamesparks-2021-08-17/ListGames -func (c *GameSparks) ListGamesRequest(input *ListGamesInput) (req *request.Request, output *ListGamesOutput) { - op := &request.Operation{ - Name: opListGames, - HTTPMethod: "GET", - HTTPPath: "/game", - Paginator: &request.Paginator{ - InputTokens: []string{"NextToken"}, - OutputTokens: []string{"NextToken"}, - LimitToken: "MaxResults", - TruncationToken: "", - }, - } - - if input == nil { - input = &ListGamesInput{} - } - - output = &ListGamesOutput{} - req = c.newRequest(op, input, output) - return -} - -// ListGames API operation for GameSparks. -// -// Gets a paginated list of games. -// -// Returns awserr.Error for service API and SDK errors. Use runtime type assertions -// with awserr.Error's Code and Message methods to get detailed information about -// the error. -// -// See the AWS API reference guide for GameSparks's -// API operation ListGames for usage and error information. -// -// Returned Error Types: -// -// - ValidationException -// One of the parameters in the request is invalid. -// -// - AccessDeniedException -// You do not have sufficient access to perform this action. -// -// - ThrottlingException -// The request throughput limit was exceeded. -// -// - InternalServerException -// The service encountered an internal error. -// -// See also, https://docs.aws.amazon.com/goto/WebAPI/gamesparks-2021-08-17/ListGames -func (c *GameSparks) ListGames(input *ListGamesInput) (*ListGamesOutput, error) { - req, out := c.ListGamesRequest(input) - return out, req.Send() -} - -// ListGamesWithContext is the same as ListGames with the addition of -// the ability to pass a context and additional request options. -// -// See ListGames for details on how to use this API operation. -// -// The context must be non-nil and will be used for request cancellation. If -// the context is nil a panic will occur. In the future the SDK may create -// sub-contexts for http.Requests. See https://golang.org/pkg/context/ -// for more information on using Contexts. -func (c *GameSparks) ListGamesWithContext(ctx aws.Context, input *ListGamesInput, opts ...request.Option) (*ListGamesOutput, error) { - req, out := c.ListGamesRequest(input) - req.SetContext(ctx) - req.ApplyOptions(opts...) - return out, req.Send() -} - -// ListGamesPages iterates over the pages of a ListGames operation, -// calling the "fn" function with the response data for each page. To stop -// iterating, return false from the fn function. -// -// See ListGames method for more information on how to use this operation. -// -// Note: This operation can generate multiple requests to a service. -// -// // Example iterating over at most 3 pages of a ListGames operation. -// pageNum := 0 -// err := client.ListGamesPages(params, -// func(page *gamesparks.ListGamesOutput, lastPage bool) bool { -// pageNum++ -// fmt.Println(page) -// return pageNum <= 3 -// }) -func (c *GameSparks) ListGamesPages(input *ListGamesInput, fn func(*ListGamesOutput, bool) bool) error { - return c.ListGamesPagesWithContext(aws.BackgroundContext(), input, fn) -} - -// ListGamesPagesWithContext same as ListGamesPages except -// it takes a Context and allows setting request options on the pages. -// -// The context must be non-nil and will be used for request cancellation. If -// the context is nil a panic will occur. In the future the SDK may create -// sub-contexts for http.Requests. See https://golang.org/pkg/context/ -// for more information on using Contexts. -func (c *GameSparks) ListGamesPagesWithContext(ctx aws.Context, input *ListGamesInput, fn func(*ListGamesOutput, bool) bool, opts ...request.Option) error { - p := request.Pagination{ - NewRequest: func() (*request.Request, error) { - var inCpy *ListGamesInput - if input != nil { - tmp := *input - inCpy = &tmp - } - req, _ := c.ListGamesRequest(inCpy) - req.SetContext(ctx) - req.ApplyOptions(opts...) - return req, nil - }, - } - - for p.Next() { - if !fn(p.Page().(*ListGamesOutput), !p.HasNextPage()) { - break - } - } - - return p.Err() -} - -const opListGeneratedCodeJobs = "ListGeneratedCodeJobs" - -// ListGeneratedCodeJobsRequest generates a "aws/request.Request" representing the -// client's request for the ListGeneratedCodeJobs operation. The "output" return -// value will be populated with the request's response once the request completes -// successfully. -// -// Use "Send" method on the returned Request to send the API call to the service. -// the "output" return value is not valid until after Send returns without error. -// -// See ListGeneratedCodeJobs for more information on using the ListGeneratedCodeJobs -// API call, and error handling. -// -// This method is useful when you want to inject custom logic or configuration -// into the SDK's request lifecycle. Such as custom headers, or retry logic. -// -// // Example sending a request using the ListGeneratedCodeJobsRequest method. -// req, resp := client.ListGeneratedCodeJobsRequest(params) -// -// err := req.Send() -// if err == nil { // resp is now filled -// fmt.Println(resp) -// } -// -// See also, https://docs.aws.amazon.com/goto/WebAPI/gamesparks-2021-08-17/ListGeneratedCodeJobs -func (c *GameSparks) ListGeneratedCodeJobsRequest(input *ListGeneratedCodeJobsInput) (req *request.Request, output *ListGeneratedCodeJobsOutput) { - op := &request.Operation{ - Name: opListGeneratedCodeJobs, - HTTPMethod: "GET", - HTTPPath: "/game/{GameName}/snapshot/{SnapshotId}/generated-sdk-code-jobs", - Paginator: &request.Paginator{ - InputTokens: []string{"NextToken"}, - OutputTokens: []string{"NextToken"}, - LimitToken: "MaxResults", - TruncationToken: "", - }, - } - - if input == nil { - input = &ListGeneratedCodeJobsInput{} - } - - output = &ListGeneratedCodeJobsOutput{} - req = c.newRequest(op, input, output) - return -} - -// ListGeneratedCodeJobs API operation for GameSparks. -// -// Gets a paginated list of code generation jobs for a snapshot. -// -// Returns awserr.Error for service API and SDK errors. Use runtime type assertions -// with awserr.Error's Code and Message methods to get detailed information about -// the error. -// -// See the AWS API reference guide for GameSparks's -// API operation ListGeneratedCodeJobs for usage and error information. -// -// Returned Error Types: -// -// - ValidationException -// One of the parameters in the request is invalid. -// -// - AccessDeniedException -// You do not have sufficient access to perform this action. -// -// - ThrottlingException -// The request throughput limit was exceeded. -// -// - ResourceNotFoundException -// The resource specified in the request does not exist. -// -// - InternalServerException -// The service encountered an internal error. -// -// See also, https://docs.aws.amazon.com/goto/WebAPI/gamesparks-2021-08-17/ListGeneratedCodeJobs -func (c *GameSparks) ListGeneratedCodeJobs(input *ListGeneratedCodeJobsInput) (*ListGeneratedCodeJobsOutput, error) { - req, out := c.ListGeneratedCodeJobsRequest(input) - return out, req.Send() -} - -// ListGeneratedCodeJobsWithContext is the same as ListGeneratedCodeJobs with the addition of -// the ability to pass a context and additional request options. -// -// See ListGeneratedCodeJobs for details on how to use this API operation. -// -// The context must be non-nil and will be used for request cancellation. If -// the context is nil a panic will occur. In the future the SDK may create -// sub-contexts for http.Requests. See https://golang.org/pkg/context/ -// for more information on using Contexts. -func (c *GameSparks) ListGeneratedCodeJobsWithContext(ctx aws.Context, input *ListGeneratedCodeJobsInput, opts ...request.Option) (*ListGeneratedCodeJobsOutput, error) { - req, out := c.ListGeneratedCodeJobsRequest(input) - req.SetContext(ctx) - req.ApplyOptions(opts...) - return out, req.Send() -} - -// ListGeneratedCodeJobsPages iterates over the pages of a ListGeneratedCodeJobs operation, -// calling the "fn" function with the response data for each page. To stop -// iterating, return false from the fn function. -// -// See ListGeneratedCodeJobs method for more information on how to use this operation. -// -// Note: This operation can generate multiple requests to a service. -// -// // Example iterating over at most 3 pages of a ListGeneratedCodeJobs operation. -// pageNum := 0 -// err := client.ListGeneratedCodeJobsPages(params, -// func(page *gamesparks.ListGeneratedCodeJobsOutput, lastPage bool) bool { -// pageNum++ -// fmt.Println(page) -// return pageNum <= 3 -// }) -func (c *GameSparks) ListGeneratedCodeJobsPages(input *ListGeneratedCodeJobsInput, fn func(*ListGeneratedCodeJobsOutput, bool) bool) error { - return c.ListGeneratedCodeJobsPagesWithContext(aws.BackgroundContext(), input, fn) -} - -// ListGeneratedCodeJobsPagesWithContext same as ListGeneratedCodeJobsPages except -// it takes a Context and allows setting request options on the pages. -// -// The context must be non-nil and will be used for request cancellation. If -// the context is nil a panic will occur. In the future the SDK may create -// sub-contexts for http.Requests. See https://golang.org/pkg/context/ -// for more information on using Contexts. -func (c *GameSparks) ListGeneratedCodeJobsPagesWithContext(ctx aws.Context, input *ListGeneratedCodeJobsInput, fn func(*ListGeneratedCodeJobsOutput, bool) bool, opts ...request.Option) error { - p := request.Pagination{ - NewRequest: func() (*request.Request, error) { - var inCpy *ListGeneratedCodeJobsInput - if input != nil { - tmp := *input - inCpy = &tmp - } - req, _ := c.ListGeneratedCodeJobsRequest(inCpy) - req.SetContext(ctx) - req.ApplyOptions(opts...) - return req, nil - }, - } - - for p.Next() { - if !fn(p.Page().(*ListGeneratedCodeJobsOutput), !p.HasNextPage()) { - break - } - } - - return p.Err() -} - -const opListSnapshots = "ListSnapshots" - -// ListSnapshotsRequest generates a "aws/request.Request" representing the -// client's request for the ListSnapshots operation. The "output" return -// value will be populated with the request's response once the request completes -// successfully. -// -// Use "Send" method on the returned Request to send the API call to the service. -// the "output" return value is not valid until after Send returns without error. -// -// See ListSnapshots for more information on using the ListSnapshots -// API call, and error handling. -// -// This method is useful when you want to inject custom logic or configuration -// into the SDK's request lifecycle. Such as custom headers, or retry logic. -// -// // Example sending a request using the ListSnapshotsRequest method. -// req, resp := client.ListSnapshotsRequest(params) -// -// err := req.Send() -// if err == nil { // resp is now filled -// fmt.Println(resp) -// } -// -// See also, https://docs.aws.amazon.com/goto/WebAPI/gamesparks-2021-08-17/ListSnapshots -func (c *GameSparks) ListSnapshotsRequest(input *ListSnapshotsInput) (req *request.Request, output *ListSnapshotsOutput) { - op := &request.Operation{ - Name: opListSnapshots, - HTTPMethod: "GET", - HTTPPath: "/game/{GameName}/snapshot", - Paginator: &request.Paginator{ - InputTokens: []string{"NextToken"}, - OutputTokens: []string{"NextToken"}, - LimitToken: "MaxResults", - TruncationToken: "", - }, - } - - if input == nil { - input = &ListSnapshotsInput{} - } - - output = &ListSnapshotsOutput{} - req = c.newRequest(op, input, output) - return -} - -// ListSnapshots API operation for GameSparks. -// -// Gets a paginated list of snapshot summaries from the game. -// -// Returns awserr.Error for service API and SDK errors. Use runtime type assertions -// with awserr.Error's Code and Message methods to get detailed information about -// the error. -// -// See the AWS API reference guide for GameSparks's -// API operation ListSnapshots for usage and error information. -// -// Returned Error Types: -// -// - ValidationException -// One of the parameters in the request is invalid. -// -// - AccessDeniedException -// You do not have sufficient access to perform this action. -// -// - ThrottlingException -// The request throughput limit was exceeded. -// -// - ResourceNotFoundException -// The resource specified in the request does not exist. -// -// - InternalServerException -// The service encountered an internal error. -// -// See also, https://docs.aws.amazon.com/goto/WebAPI/gamesparks-2021-08-17/ListSnapshots -func (c *GameSparks) ListSnapshots(input *ListSnapshotsInput) (*ListSnapshotsOutput, error) { - req, out := c.ListSnapshotsRequest(input) - return out, req.Send() -} - -// ListSnapshotsWithContext is the same as ListSnapshots with the addition of -// the ability to pass a context and additional request options. -// -// See ListSnapshots for details on how to use this API operation. -// -// The context must be non-nil and will be used for request cancellation. If -// the context is nil a panic will occur. In the future the SDK may create -// sub-contexts for http.Requests. See https://golang.org/pkg/context/ -// for more information on using Contexts. -func (c *GameSparks) ListSnapshotsWithContext(ctx aws.Context, input *ListSnapshotsInput, opts ...request.Option) (*ListSnapshotsOutput, error) { - req, out := c.ListSnapshotsRequest(input) - req.SetContext(ctx) - req.ApplyOptions(opts...) - return out, req.Send() -} - -// ListSnapshotsPages iterates over the pages of a ListSnapshots operation, -// calling the "fn" function with the response data for each page. To stop -// iterating, return false from the fn function. -// -// See ListSnapshots method for more information on how to use this operation. -// -// Note: This operation can generate multiple requests to a service. -// -// // Example iterating over at most 3 pages of a ListSnapshots operation. -// pageNum := 0 -// err := client.ListSnapshotsPages(params, -// func(page *gamesparks.ListSnapshotsOutput, lastPage bool) bool { -// pageNum++ -// fmt.Println(page) -// return pageNum <= 3 -// }) -func (c *GameSparks) ListSnapshotsPages(input *ListSnapshotsInput, fn func(*ListSnapshotsOutput, bool) bool) error { - return c.ListSnapshotsPagesWithContext(aws.BackgroundContext(), input, fn) -} - -// ListSnapshotsPagesWithContext same as ListSnapshotsPages except -// it takes a Context and allows setting request options on the pages. -// -// The context must be non-nil and will be used for request cancellation. If -// the context is nil a panic will occur. In the future the SDK may create -// sub-contexts for http.Requests. See https://golang.org/pkg/context/ -// for more information on using Contexts. -func (c *GameSparks) ListSnapshotsPagesWithContext(ctx aws.Context, input *ListSnapshotsInput, fn func(*ListSnapshotsOutput, bool) bool, opts ...request.Option) error { - p := request.Pagination{ - NewRequest: func() (*request.Request, error) { - var inCpy *ListSnapshotsInput - if input != nil { - tmp := *input - inCpy = &tmp - } - req, _ := c.ListSnapshotsRequest(inCpy) - req.SetContext(ctx) - req.ApplyOptions(opts...) - return req, nil - }, - } - - for p.Next() { - if !fn(p.Page().(*ListSnapshotsOutput), !p.HasNextPage()) { - break - } - } - - return p.Err() -} - -const opListStageDeployments = "ListStageDeployments" - -// ListStageDeploymentsRequest generates a "aws/request.Request" representing the -// client's request for the ListStageDeployments operation. The "output" return -// value will be populated with the request's response once the request completes -// successfully. -// -// Use "Send" method on the returned Request to send the API call to the service. -// the "output" return value is not valid until after Send returns without error. -// -// See ListStageDeployments for more information on using the ListStageDeployments -// API call, and error handling. -// -// This method is useful when you want to inject custom logic or configuration -// into the SDK's request lifecycle. Such as custom headers, or retry logic. -// -// // Example sending a request using the ListStageDeploymentsRequest method. -// req, resp := client.ListStageDeploymentsRequest(params) -// -// err := req.Send() -// if err == nil { // resp is now filled -// fmt.Println(resp) -// } -// -// See also, https://docs.aws.amazon.com/goto/WebAPI/gamesparks-2021-08-17/ListStageDeployments -func (c *GameSparks) ListStageDeploymentsRequest(input *ListStageDeploymentsInput) (req *request.Request, output *ListStageDeploymentsOutput) { - op := &request.Operation{ - Name: opListStageDeployments, - HTTPMethod: "GET", - HTTPPath: "/game/{GameName}/stage/{StageName}/deployments", - Paginator: &request.Paginator{ - InputTokens: []string{"NextToken"}, - OutputTokens: []string{"NextToken"}, - LimitToken: "MaxResults", - TruncationToken: "", - }, - } - - if input == nil { - input = &ListStageDeploymentsInput{} - } - - output = &ListStageDeploymentsOutput{} - req = c.newRequest(op, input, output) - return -} - -// ListStageDeployments API operation for GameSparks. -// -// Gets a paginated list of stage deployment summaries from the game. -// -// Returns awserr.Error for service API and SDK errors. Use runtime type assertions -// with awserr.Error's Code and Message methods to get detailed information about -// the error. -// -// See the AWS API reference guide for GameSparks's -// API operation ListStageDeployments for usage and error information. -// -// Returned Error Types: -// -// - ValidationException -// One of the parameters in the request is invalid. -// -// - AccessDeniedException -// You do not have sufficient access to perform this action. -// -// - ThrottlingException -// The request throughput limit was exceeded. -// -// - ResourceNotFoundException -// The resource specified in the request does not exist. -// -// - InternalServerException -// The service encountered an internal error. -// -// See also, https://docs.aws.amazon.com/goto/WebAPI/gamesparks-2021-08-17/ListStageDeployments -func (c *GameSparks) ListStageDeployments(input *ListStageDeploymentsInput) (*ListStageDeploymentsOutput, error) { - req, out := c.ListStageDeploymentsRequest(input) - return out, req.Send() -} - -// ListStageDeploymentsWithContext is the same as ListStageDeployments with the addition of -// the ability to pass a context and additional request options. -// -// See ListStageDeployments for details on how to use this API operation. -// -// The context must be non-nil and will be used for request cancellation. If -// the context is nil a panic will occur. In the future the SDK may create -// sub-contexts for http.Requests. See https://golang.org/pkg/context/ -// for more information on using Contexts. -func (c *GameSparks) ListStageDeploymentsWithContext(ctx aws.Context, input *ListStageDeploymentsInput, opts ...request.Option) (*ListStageDeploymentsOutput, error) { - req, out := c.ListStageDeploymentsRequest(input) - req.SetContext(ctx) - req.ApplyOptions(opts...) - return out, req.Send() -} - -// ListStageDeploymentsPages iterates over the pages of a ListStageDeployments operation, -// calling the "fn" function with the response data for each page. To stop -// iterating, return false from the fn function. -// -// See ListStageDeployments method for more information on how to use this operation. -// -// Note: This operation can generate multiple requests to a service. -// -// // Example iterating over at most 3 pages of a ListStageDeployments operation. -// pageNum := 0 -// err := client.ListStageDeploymentsPages(params, -// func(page *gamesparks.ListStageDeploymentsOutput, lastPage bool) bool { -// pageNum++ -// fmt.Println(page) -// return pageNum <= 3 -// }) -func (c *GameSparks) ListStageDeploymentsPages(input *ListStageDeploymentsInput, fn func(*ListStageDeploymentsOutput, bool) bool) error { - return c.ListStageDeploymentsPagesWithContext(aws.BackgroundContext(), input, fn) -} - -// ListStageDeploymentsPagesWithContext same as ListStageDeploymentsPages except -// it takes a Context and allows setting request options on the pages. -// -// The context must be non-nil and will be used for request cancellation. If -// the context is nil a panic will occur. In the future the SDK may create -// sub-contexts for http.Requests. See https://golang.org/pkg/context/ -// for more information on using Contexts. -func (c *GameSparks) ListStageDeploymentsPagesWithContext(ctx aws.Context, input *ListStageDeploymentsInput, fn func(*ListStageDeploymentsOutput, bool) bool, opts ...request.Option) error { - p := request.Pagination{ - NewRequest: func() (*request.Request, error) { - var inCpy *ListStageDeploymentsInput - if input != nil { - tmp := *input - inCpy = &tmp - } - req, _ := c.ListStageDeploymentsRequest(inCpy) - req.SetContext(ctx) - req.ApplyOptions(opts...) - return req, nil - }, - } - - for p.Next() { - if !fn(p.Page().(*ListStageDeploymentsOutput), !p.HasNextPage()) { - break - } - } - - return p.Err() -} - -const opListStages = "ListStages" - -// ListStagesRequest generates a "aws/request.Request" representing the -// client's request for the ListStages operation. The "output" return -// value will be populated with the request's response once the request completes -// successfully. -// -// Use "Send" method on the returned Request to send the API call to the service. -// the "output" return value is not valid until after Send returns without error. -// -// See ListStages for more information on using the ListStages -// API call, and error handling. -// -// This method is useful when you want to inject custom logic or configuration -// into the SDK's request lifecycle. Such as custom headers, or retry logic. -// -// // Example sending a request using the ListStagesRequest method. -// req, resp := client.ListStagesRequest(params) -// -// err := req.Send() -// if err == nil { // resp is now filled -// fmt.Println(resp) -// } -// -// See also, https://docs.aws.amazon.com/goto/WebAPI/gamesparks-2021-08-17/ListStages -func (c *GameSparks) ListStagesRequest(input *ListStagesInput) (req *request.Request, output *ListStagesOutput) { - op := &request.Operation{ - Name: opListStages, - HTTPMethod: "GET", - HTTPPath: "/game/{GameName}/stage", - Paginator: &request.Paginator{ - InputTokens: []string{"NextToken"}, - OutputTokens: []string{"NextToken"}, - LimitToken: "MaxResults", - TruncationToken: "", - }, - } - - if input == nil { - input = &ListStagesInput{} - } - - output = &ListStagesOutput{} - req = c.newRequest(op, input, output) - return -} - -// ListStages API operation for GameSparks. -// -// Gets a paginated list of stage summaries from the game. -// -// Returns awserr.Error for service API and SDK errors. Use runtime type assertions -// with awserr.Error's Code and Message methods to get detailed information about -// the error. -// -// See the AWS API reference guide for GameSparks's -// API operation ListStages for usage and error information. -// -// Returned Error Types: -// -// - ValidationException -// One of the parameters in the request is invalid. -// -// - AccessDeniedException -// You do not have sufficient access to perform this action. -// -// - ThrottlingException -// The request throughput limit was exceeded. -// -// - ResourceNotFoundException -// The resource specified in the request does not exist. -// -// - InternalServerException -// The service encountered an internal error. -// -// See also, https://docs.aws.amazon.com/goto/WebAPI/gamesparks-2021-08-17/ListStages -func (c *GameSparks) ListStages(input *ListStagesInput) (*ListStagesOutput, error) { - req, out := c.ListStagesRequest(input) - return out, req.Send() -} - -// ListStagesWithContext is the same as ListStages with the addition of -// the ability to pass a context and additional request options. -// -// See ListStages for details on how to use this API operation. -// -// The context must be non-nil and will be used for request cancellation. If -// the context is nil a panic will occur. In the future the SDK may create -// sub-contexts for http.Requests. See https://golang.org/pkg/context/ -// for more information on using Contexts. -func (c *GameSparks) ListStagesWithContext(ctx aws.Context, input *ListStagesInput, opts ...request.Option) (*ListStagesOutput, error) { - req, out := c.ListStagesRequest(input) - req.SetContext(ctx) - req.ApplyOptions(opts...) - return out, req.Send() -} - -// ListStagesPages iterates over the pages of a ListStages operation, -// calling the "fn" function with the response data for each page. To stop -// iterating, return false from the fn function. -// -// See ListStages method for more information on how to use this operation. -// -// Note: This operation can generate multiple requests to a service. -// -// // Example iterating over at most 3 pages of a ListStages operation. -// pageNum := 0 -// err := client.ListStagesPages(params, -// func(page *gamesparks.ListStagesOutput, lastPage bool) bool { -// pageNum++ -// fmt.Println(page) -// return pageNum <= 3 -// }) -func (c *GameSparks) ListStagesPages(input *ListStagesInput, fn func(*ListStagesOutput, bool) bool) error { - return c.ListStagesPagesWithContext(aws.BackgroundContext(), input, fn) -} - -// ListStagesPagesWithContext same as ListStagesPages except -// it takes a Context and allows setting request options on the pages. -// -// The context must be non-nil and will be used for request cancellation. If -// the context is nil a panic will occur. In the future the SDK may create -// sub-contexts for http.Requests. See https://golang.org/pkg/context/ -// for more information on using Contexts. -func (c *GameSparks) ListStagesPagesWithContext(ctx aws.Context, input *ListStagesInput, fn func(*ListStagesOutput, bool) bool, opts ...request.Option) error { - p := request.Pagination{ - NewRequest: func() (*request.Request, error) { - var inCpy *ListStagesInput - if input != nil { - tmp := *input - inCpy = &tmp - } - req, _ := c.ListStagesRequest(inCpy) - req.SetContext(ctx) - req.ApplyOptions(opts...) - return req, nil - }, - } - - for p.Next() { - if !fn(p.Page().(*ListStagesOutput), !p.HasNextPage()) { - break - } - } - - return p.Err() -} - -const opListTagsForResource = "ListTagsForResource" - -// ListTagsForResourceRequest generates a "aws/request.Request" representing the -// client's request for the ListTagsForResource operation. The "output" return -// value will be populated with the request's response once the request completes -// successfully. -// -// Use "Send" method on the returned Request to send the API call to the service. -// the "output" return value is not valid until after Send returns without error. -// -// See ListTagsForResource for more information on using the ListTagsForResource -// API call, and error handling. -// -// This method is useful when you want to inject custom logic or configuration -// into the SDK's request lifecycle. Such as custom headers, or retry logic. -// -// // Example sending a request using the ListTagsForResourceRequest method. -// req, resp := client.ListTagsForResourceRequest(params) -// -// err := req.Send() -// if err == nil { // resp is now filled -// fmt.Println(resp) -// } -// -// See also, https://docs.aws.amazon.com/goto/WebAPI/gamesparks-2021-08-17/ListTagsForResource -func (c *GameSparks) ListTagsForResourceRequest(input *ListTagsForResourceInput) (req *request.Request, output *ListTagsForResourceOutput) { - op := &request.Operation{ - Name: opListTagsForResource, - HTTPMethod: "GET", - HTTPPath: "/tags/{ResourceArn}", - } - - if input == nil { - input = &ListTagsForResourceInput{} - } - - output = &ListTagsForResourceOutput{} - req = c.newRequest(op, input, output) - return -} - -// ListTagsForResource API operation for GameSparks. -// -// Lists the tags associated with a GameSparks resource. -// -// Returns awserr.Error for service API and SDK errors. Use runtime type assertions -// with awserr.Error's Code and Message methods to get detailed information about -// the error. -// -// See the AWS API reference guide for GameSparks's -// API operation ListTagsForResource for usage and error information. -// -// Returned Error Types: -// -// - ValidationException -// One of the parameters in the request is invalid. -// -// - ResourceNotFoundException -// The resource specified in the request does not exist. -// -// - InternalServerException -// The service encountered an internal error. -// -// See also, https://docs.aws.amazon.com/goto/WebAPI/gamesparks-2021-08-17/ListTagsForResource -func (c *GameSparks) ListTagsForResource(input *ListTagsForResourceInput) (*ListTagsForResourceOutput, error) { - req, out := c.ListTagsForResourceRequest(input) - return out, req.Send() -} - -// ListTagsForResourceWithContext is the same as ListTagsForResource with the addition of -// the ability to pass a context and additional request options. -// -// See ListTagsForResource for details on how to use this API operation. -// -// The context must be non-nil and will be used for request cancellation. If -// the context is nil a panic will occur. In the future the SDK may create -// sub-contexts for http.Requests. See https://golang.org/pkg/context/ -// for more information on using Contexts. -func (c *GameSparks) ListTagsForResourceWithContext(ctx aws.Context, input *ListTagsForResourceInput, opts ...request.Option) (*ListTagsForResourceOutput, error) { - req, out := c.ListTagsForResourceRequest(input) - req.SetContext(ctx) - req.ApplyOptions(opts...) - return out, req.Send() -} - -const opStartGeneratedCodeJob = "StartGeneratedCodeJob" - -// StartGeneratedCodeJobRequest generates a "aws/request.Request" representing the -// client's request for the StartGeneratedCodeJob operation. The "output" return -// value will be populated with the request's response once the request completes -// successfully. -// -// Use "Send" method on the returned Request to send the API call to the service. -// the "output" return value is not valid until after Send returns without error. -// -// See StartGeneratedCodeJob for more information on using the StartGeneratedCodeJob -// API call, and error handling. -// -// This method is useful when you want to inject custom logic or configuration -// into the SDK's request lifecycle. Such as custom headers, or retry logic. -// -// // Example sending a request using the StartGeneratedCodeJobRequest method. -// req, resp := client.StartGeneratedCodeJobRequest(params) -// -// err := req.Send() -// if err == nil { // resp is now filled -// fmt.Println(resp) -// } -// -// See also, https://docs.aws.amazon.com/goto/WebAPI/gamesparks-2021-08-17/StartGeneratedCodeJob -func (c *GameSparks) StartGeneratedCodeJobRequest(input *StartGeneratedCodeJobInput) (req *request.Request, output *StartGeneratedCodeJobOutput) { - op := &request.Operation{ - Name: opStartGeneratedCodeJob, - HTTPMethod: "POST", - HTTPPath: "/game/{GameName}/snapshot/{SnapshotId}/generated-sdk-code-job", - } - - if input == nil { - input = &StartGeneratedCodeJobInput{} - } - - output = &StartGeneratedCodeJobOutput{} - req = c.newRequest(op, input, output) - return -} - -// StartGeneratedCodeJob API operation for GameSparks. -// -// 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. -// -// Returns awserr.Error for service API and SDK errors. Use runtime type assertions -// with awserr.Error's Code and Message methods to get detailed information about -// the error. -// -// See the AWS API reference guide for GameSparks's -// API operation StartGeneratedCodeJob for usage and error information. -// -// Returned Error Types: -// -// - ValidationException -// One of the parameters in the request is invalid. -// -// - AccessDeniedException -// You do not have sufficient access to perform this action. -// -// - ThrottlingException -// The request throughput limit was exceeded. -// -// - ResourceNotFoundException -// The resource specified in the request does not exist. -// -// - InternalServerException -// The service encountered an internal error. -// -// See also, https://docs.aws.amazon.com/goto/WebAPI/gamesparks-2021-08-17/StartGeneratedCodeJob -func (c *GameSparks) StartGeneratedCodeJob(input *StartGeneratedCodeJobInput) (*StartGeneratedCodeJobOutput, error) { - req, out := c.StartGeneratedCodeJobRequest(input) - return out, req.Send() -} - -// StartGeneratedCodeJobWithContext is the same as StartGeneratedCodeJob with the addition of -// the ability to pass a context and additional request options. -// -// See StartGeneratedCodeJob for details on how to use this API operation. -// -// The context must be non-nil and will be used for request cancellation. If -// the context is nil a panic will occur. In the future the SDK may create -// sub-contexts for http.Requests. See https://golang.org/pkg/context/ -// for more information on using Contexts. -func (c *GameSparks) StartGeneratedCodeJobWithContext(ctx aws.Context, input *StartGeneratedCodeJobInput, opts ...request.Option) (*StartGeneratedCodeJobOutput, error) { - req, out := c.StartGeneratedCodeJobRequest(input) - req.SetContext(ctx) - req.ApplyOptions(opts...) - return out, req.Send() -} - -const opStartStageDeployment = "StartStageDeployment" - -// StartStageDeploymentRequest generates a "aws/request.Request" representing the -// client's request for the StartStageDeployment operation. The "output" return -// value will be populated with the request's response once the request completes -// successfully. -// -// Use "Send" method on the returned Request to send the API call to the service. -// the "output" return value is not valid until after Send returns without error. -// -// See StartStageDeployment for more information on using the StartStageDeployment -// API call, and error handling. -// -// This method is useful when you want to inject custom logic or configuration -// into the SDK's request lifecycle. Such as custom headers, or retry logic. -// -// // Example sending a request using the StartStageDeploymentRequest method. -// req, resp := client.StartStageDeploymentRequest(params) -// -// err := req.Send() -// if err == nil { // resp is now filled -// fmt.Println(resp) -// } -// -// See also, https://docs.aws.amazon.com/goto/WebAPI/gamesparks-2021-08-17/StartStageDeployment -func (c *GameSparks) StartStageDeploymentRequest(input *StartStageDeploymentInput) (req *request.Request, output *StartStageDeploymentOutput) { - op := &request.Operation{ - Name: opStartStageDeployment, - HTTPMethod: "POST", - HTTPPath: "/game/{GameName}/stage/{StageName}/deployment", - } - - if input == nil { - input = &StartStageDeploymentInput{} - } - - output = &StartStageDeploymentOutput{} - req = c.newRequest(op, input, output) - return -} - -// StartStageDeployment API operation for GameSparks. -// -// Deploys a snapshot to the stage and creates a new game runtime. -// -// After you call this operation, you can check the deployment status by using -// GetStageDeployment. -// -// 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. -// -// Returns awserr.Error for service API and SDK errors. Use runtime type assertions -// with awserr.Error's Code and Message methods to get detailed information about -// the error. -// -// See the AWS API reference guide for GameSparks's -// API operation StartStageDeployment for usage and error information. -// -// Returned Error Types: -// -// - ValidationException -// One of the parameters in the request is invalid. -// -// - AccessDeniedException -// You do not have sufficient access to perform this action. -// -// - ThrottlingException -// The request throughput limit was exceeded. -// -// - ConflictException -// The resource already exists, or another operation is in progress. -// -// - ResourceNotFoundException -// The resource specified in the request does not exist. -// -// - InternalServerException -// The service encountered an internal error. -// -// See also, https://docs.aws.amazon.com/goto/WebAPI/gamesparks-2021-08-17/StartStageDeployment -func (c *GameSparks) StartStageDeployment(input *StartStageDeploymentInput) (*StartStageDeploymentOutput, error) { - req, out := c.StartStageDeploymentRequest(input) - return out, req.Send() -} - -// StartStageDeploymentWithContext is the same as StartStageDeployment with the addition of -// the ability to pass a context and additional request options. -// -// See StartStageDeployment for details on how to use this API operation. -// -// The context must be non-nil and will be used for request cancellation. If -// the context is nil a panic will occur. In the future the SDK may create -// sub-contexts for http.Requests. See https://golang.org/pkg/context/ -// for more information on using Contexts. -func (c *GameSparks) StartStageDeploymentWithContext(ctx aws.Context, input *StartStageDeploymentInput, opts ...request.Option) (*StartStageDeploymentOutput, error) { - req, out := c.StartStageDeploymentRequest(input) - req.SetContext(ctx) - req.ApplyOptions(opts...) - return out, req.Send() -} - -const opTagResource = "TagResource" - -// TagResourceRequest generates a "aws/request.Request" representing the -// client's request for the TagResource operation. The "output" return -// value will be populated with the request's response once the request completes -// successfully. -// -// Use "Send" method on the returned Request to send the API call to the service. -// the "output" return value is not valid until after Send returns without error. -// -// See TagResource for more information on using the TagResource -// API call, and error handling. -// -// This method is useful when you want to inject custom logic or configuration -// into the SDK's request lifecycle. Such as custom headers, or retry logic. -// -// // Example sending a request using the TagResourceRequest method. -// req, resp := client.TagResourceRequest(params) -// -// err := req.Send() -// if err == nil { // resp is now filled -// fmt.Println(resp) -// } -// -// See also, https://docs.aws.amazon.com/goto/WebAPI/gamesparks-2021-08-17/TagResource -func (c *GameSparks) TagResourceRequest(input *TagResourceInput) (req *request.Request, output *TagResourceOutput) { - op := &request.Operation{ - Name: opTagResource, - HTTPMethod: "POST", - HTTPPath: "/tags/{ResourceArn}", - } - - if input == nil { - input = &TagResourceInput{} - } - - output = &TagResourceOutput{} - req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) - return -} - -// TagResource API operation for GameSparks. -// -// Adds tags to a GameSparks resource. -// -// Returns awserr.Error for service API and SDK errors. Use runtime type assertions -// with awserr.Error's Code and Message methods to get detailed information about -// the error. -// -// See the AWS API reference guide for GameSparks's -// API operation TagResource for usage and error information. -// -// Returned Error Types: -// -// - ValidationException -// One of the parameters in the request is invalid. -// -// - ResourceNotFoundException -// The resource specified in the request does not exist. -// -// - InternalServerException -// The service encountered an internal error. -// -// See also, https://docs.aws.amazon.com/goto/WebAPI/gamesparks-2021-08-17/TagResource -func (c *GameSparks) TagResource(input *TagResourceInput) (*TagResourceOutput, error) { - req, out := c.TagResourceRequest(input) - return out, req.Send() -} - -// TagResourceWithContext is the same as TagResource with the addition of -// the ability to pass a context and additional request options. -// -// See TagResource for details on how to use this API operation. -// -// The context must be non-nil and will be used for request cancellation. If -// the context is nil a panic will occur. In the future the SDK may create -// sub-contexts for http.Requests. See https://golang.org/pkg/context/ -// for more information on using Contexts. -func (c *GameSparks) TagResourceWithContext(ctx aws.Context, input *TagResourceInput, opts ...request.Option) (*TagResourceOutput, error) { - req, out := c.TagResourceRequest(input) - req.SetContext(ctx) - req.ApplyOptions(opts...) - return out, req.Send() -} - -const opUntagResource = "UntagResource" - -// UntagResourceRequest generates a "aws/request.Request" representing the -// client's request for the UntagResource operation. The "output" return -// value will be populated with the request's response once the request completes -// successfully. -// -// Use "Send" method on the returned Request to send the API call to the service. -// the "output" return value is not valid until after Send returns without error. -// -// See UntagResource for more information on using the UntagResource -// API call, and error handling. -// -// This method is useful when you want to inject custom logic or configuration -// into the SDK's request lifecycle. Such as custom headers, or retry logic. -// -// // Example sending a request using the UntagResourceRequest method. -// req, resp := client.UntagResourceRequest(params) -// -// err := req.Send() -// if err == nil { // resp is now filled -// fmt.Println(resp) -// } -// -// See also, https://docs.aws.amazon.com/goto/WebAPI/gamesparks-2021-08-17/UntagResource -func (c *GameSparks) UntagResourceRequest(input *UntagResourceInput) (req *request.Request, output *UntagResourceOutput) { - op := &request.Operation{ - Name: opUntagResource, - HTTPMethod: "DELETE", - HTTPPath: "/tags/{ResourceArn}", - } - - if input == nil { - input = &UntagResourceInput{} - } - - output = &UntagResourceOutput{} - req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) - return -} - -// UntagResource API operation for GameSparks. -// -// Removes tags from a GameSparks resource. -// -// Returns awserr.Error for service API and SDK errors. Use runtime type assertions -// with awserr.Error's Code and Message methods to get detailed information about -// the error. -// -// See the AWS API reference guide for GameSparks's -// API operation UntagResource for usage and error information. -// -// Returned Error Types: -// -// - ValidationException -// One of the parameters in the request is invalid. -// -// - ResourceNotFoundException -// The resource specified in the request does not exist. -// -// - InternalServerException -// The service encountered an internal error. -// -// See also, https://docs.aws.amazon.com/goto/WebAPI/gamesparks-2021-08-17/UntagResource -func (c *GameSparks) UntagResource(input *UntagResourceInput) (*UntagResourceOutput, error) { - req, out := c.UntagResourceRequest(input) - return out, req.Send() -} - -// UntagResourceWithContext is the same as UntagResource with the addition of -// the ability to pass a context and additional request options. -// -// See UntagResource for details on how to use this API operation. -// -// The context must be non-nil and will be used for request cancellation. If -// the context is nil a panic will occur. In the future the SDK may create -// sub-contexts for http.Requests. See https://golang.org/pkg/context/ -// for more information on using Contexts. -func (c *GameSparks) UntagResourceWithContext(ctx aws.Context, input *UntagResourceInput, opts ...request.Option) (*UntagResourceOutput, error) { - req, out := c.UntagResourceRequest(input) - req.SetContext(ctx) - req.ApplyOptions(opts...) - return out, req.Send() -} - -const opUpdateGame = "UpdateGame" - -// UpdateGameRequest generates a "aws/request.Request" representing the -// client's request for the UpdateGame operation. The "output" return -// value will be populated with the request's response once the request completes -// successfully. -// -// Use "Send" method on the returned Request to send the API call to the service. -// the "output" return value is not valid until after Send returns without error. -// -// See UpdateGame for more information on using the UpdateGame -// API call, and error handling. -// -// This method is useful when you want to inject custom logic or configuration -// into the SDK's request lifecycle. Such as custom headers, or retry logic. -// -// // Example sending a request using the UpdateGameRequest method. -// req, resp := client.UpdateGameRequest(params) -// -// err := req.Send() -// if err == nil { // resp is now filled -// fmt.Println(resp) -// } -// -// See also, https://docs.aws.amazon.com/goto/WebAPI/gamesparks-2021-08-17/UpdateGame -func (c *GameSparks) UpdateGameRequest(input *UpdateGameInput) (req *request.Request, output *UpdateGameOutput) { - op := &request.Operation{ - Name: opUpdateGame, - HTTPMethod: "PATCH", - HTTPPath: "/game/{GameName}", - } - - if input == nil { - input = &UpdateGameInput{} - } - - output = &UpdateGameOutput{} - req = c.newRequest(op, input, output) - return -} - -// UpdateGame API operation for GameSparks. -// -// Updates details of the game. -// -// Returns awserr.Error for service API and SDK errors. Use runtime type assertions -// with awserr.Error's Code and Message methods to get detailed information about -// the error. -// -// See the AWS API reference guide for GameSparks's -// API operation UpdateGame for usage and error information. -// -// Returned Error Types: -// -// - ValidationException -// One of the parameters in the request is invalid. -// -// - AccessDeniedException -// You do not have sufficient access to perform this action. -// -// - ThrottlingException -// The request throughput limit was exceeded. -// -// - ResourceNotFoundException -// The resource specified in the request does not exist. -// -// - InternalServerException -// The service encountered an internal error. -// -// See also, https://docs.aws.amazon.com/goto/WebAPI/gamesparks-2021-08-17/UpdateGame -func (c *GameSparks) UpdateGame(input *UpdateGameInput) (*UpdateGameOutput, error) { - req, out := c.UpdateGameRequest(input) - return out, req.Send() -} - -// UpdateGameWithContext is the same as UpdateGame with the addition of -// the ability to pass a context and additional request options. -// -// See UpdateGame for details on how to use this API operation. -// -// The context must be non-nil and will be used for request cancellation. If -// the context is nil a panic will occur. In the future the SDK may create -// sub-contexts for http.Requests. See https://golang.org/pkg/context/ -// for more information on using Contexts. -func (c *GameSparks) UpdateGameWithContext(ctx aws.Context, input *UpdateGameInput, opts ...request.Option) (*UpdateGameOutput, error) { - req, out := c.UpdateGameRequest(input) - req.SetContext(ctx) - req.ApplyOptions(opts...) - return out, req.Send() -} - -const opUpdateGameConfiguration = "UpdateGameConfiguration" - -// UpdateGameConfigurationRequest generates a "aws/request.Request" representing the -// client's request for the UpdateGameConfiguration operation. The "output" return -// value will be populated with the request's response once the request completes -// successfully. -// -// Use "Send" method on the returned Request to send the API call to the service. -// the "output" return value is not valid until after Send returns without error. -// -// See UpdateGameConfiguration for more information on using the UpdateGameConfiguration -// API call, and error handling. -// -// This method is useful when you want to inject custom logic or configuration -// into the SDK's request lifecycle. Such as custom headers, or retry logic. -// -// // Example sending a request using the UpdateGameConfigurationRequest method. -// req, resp := client.UpdateGameConfigurationRequest(params) -// -// err := req.Send() -// if err == nil { // resp is now filled -// fmt.Println(resp) -// } -// -// See also, https://docs.aws.amazon.com/goto/WebAPI/gamesparks-2021-08-17/UpdateGameConfiguration -func (c *GameSparks) UpdateGameConfigurationRequest(input *UpdateGameConfigurationInput) (req *request.Request, output *UpdateGameConfigurationOutput) { - op := &request.Operation{ - Name: opUpdateGameConfiguration, - HTTPMethod: "PATCH", - HTTPPath: "/game/{GameName}/configuration", - } - - if input == nil { - input = &UpdateGameConfigurationInput{} - } - - output = &UpdateGameConfigurationOutput{} - req = c.newRequest(op, input, output) - return -} - -// UpdateGameConfiguration API operation for GameSparks. -// -// Updates one or more sections of the game configuration. -// -// Returns awserr.Error for service API and SDK errors. Use runtime type assertions -// with awserr.Error's Code and Message methods to get detailed information about -// the error. -// -// See the AWS API reference guide for GameSparks's -// API operation UpdateGameConfiguration for usage and error information. -// -// Returned Error Types: -// -// - ValidationException -// One of the parameters in the request is invalid. -// -// - AccessDeniedException -// You do not have sufficient access to perform this action. -// -// - ThrottlingException -// The request throughput limit was exceeded. -// -// - ResourceNotFoundException -// The resource specified in the request does not exist. -// -// - InternalServerException -// The service encountered an internal error. -// -// - ServiceQuotaExceededException -// The request would result in exceeding service quota. -// -// See also, https://docs.aws.amazon.com/goto/WebAPI/gamesparks-2021-08-17/UpdateGameConfiguration -func (c *GameSparks) UpdateGameConfiguration(input *UpdateGameConfigurationInput) (*UpdateGameConfigurationOutput, error) { - req, out := c.UpdateGameConfigurationRequest(input) - return out, req.Send() -} - -// UpdateGameConfigurationWithContext is the same as UpdateGameConfiguration with the addition of -// the ability to pass a context and additional request options. -// -// See UpdateGameConfiguration for details on how to use this API operation. -// -// The context must be non-nil and will be used for request cancellation. If -// the context is nil a panic will occur. In the future the SDK may create -// sub-contexts for http.Requests. See https://golang.org/pkg/context/ -// for more information on using Contexts. -func (c *GameSparks) UpdateGameConfigurationWithContext(ctx aws.Context, input *UpdateGameConfigurationInput, opts ...request.Option) (*UpdateGameConfigurationOutput, error) { - req, out := c.UpdateGameConfigurationRequest(input) - req.SetContext(ctx) - req.ApplyOptions(opts...) - return out, req.Send() -} - -const opUpdateSnapshot = "UpdateSnapshot" - -// UpdateSnapshotRequest generates a "aws/request.Request" representing the -// client's request for the UpdateSnapshot operation. The "output" return -// value will be populated with the request's response once the request completes -// successfully. -// -// Use "Send" method on the returned Request to send the API call to the service. -// the "output" return value is not valid until after Send returns without error. -// -// See UpdateSnapshot for more information on using the UpdateSnapshot -// API call, and error handling. -// -// This method is useful when you want to inject custom logic or configuration -// into the SDK's request lifecycle. Such as custom headers, or retry logic. -// -// // Example sending a request using the UpdateSnapshotRequest method. -// req, resp := client.UpdateSnapshotRequest(params) -// -// err := req.Send() -// if err == nil { // resp is now filled -// fmt.Println(resp) -// } -// -// See also, https://docs.aws.amazon.com/goto/WebAPI/gamesparks-2021-08-17/UpdateSnapshot -func (c *GameSparks) UpdateSnapshotRequest(input *UpdateSnapshotInput) (req *request.Request, output *UpdateSnapshotOutput) { - op := &request.Operation{ - Name: opUpdateSnapshot, - HTTPMethod: "PATCH", - HTTPPath: "/game/{GameName}/snapshot/{SnapshotId}", - } - - if input == nil { - input = &UpdateSnapshotInput{} - } - - output = &UpdateSnapshotOutput{} - req = c.newRequest(op, input, output) - return -} - -// UpdateSnapshot API operation for GameSparks. -// -// Updates the metadata of a GameSparks snapshot. -// -// Returns awserr.Error for service API and SDK errors. Use runtime type assertions -// with awserr.Error's Code and Message methods to get detailed information about -// the error. -// -// See the AWS API reference guide for GameSparks's -// API operation UpdateSnapshot for usage and error information. -// -// Returned Error Types: -// -// - ValidationException -// One of the parameters in the request is invalid. -// -// - AccessDeniedException -// You do not have sufficient access to perform this action. -// -// - ThrottlingException -// The request throughput limit was exceeded. -// -// - ResourceNotFoundException -// The resource specified in the request does not exist. -// -// - InternalServerException -// The service encountered an internal error. -// -// See also, https://docs.aws.amazon.com/goto/WebAPI/gamesparks-2021-08-17/UpdateSnapshot -func (c *GameSparks) UpdateSnapshot(input *UpdateSnapshotInput) (*UpdateSnapshotOutput, error) { - req, out := c.UpdateSnapshotRequest(input) - return out, req.Send() -} - -// UpdateSnapshotWithContext is the same as UpdateSnapshot with the addition of -// the ability to pass a context and additional request options. -// -// See UpdateSnapshot for details on how to use this API operation. -// -// The context must be non-nil and will be used for request cancellation. If -// the context is nil a panic will occur. In the future the SDK may create -// sub-contexts for http.Requests. See https://golang.org/pkg/context/ -// for more information on using Contexts. -func (c *GameSparks) UpdateSnapshotWithContext(ctx aws.Context, input *UpdateSnapshotInput, opts ...request.Option) (*UpdateSnapshotOutput, error) { - req, out := c.UpdateSnapshotRequest(input) - req.SetContext(ctx) - req.ApplyOptions(opts...) - return out, req.Send() -} - -const opUpdateStage = "UpdateStage" - -// UpdateStageRequest generates a "aws/request.Request" representing the -// client's request for the UpdateStage operation. The "output" return -// value will be populated with the request's response once the request completes -// successfully. -// -// Use "Send" method on the returned Request to send the API call to the service. -// the "output" return value is not valid until after Send returns without error. -// -// See UpdateStage for more information on using the UpdateStage -// API call, and error handling. -// -// This method is useful when you want to inject custom logic or configuration -// into the SDK's request lifecycle. Such as custom headers, or retry logic. -// -// // Example sending a request using the UpdateStageRequest method. -// req, resp := client.UpdateStageRequest(params) -// -// err := req.Send() -// if err == nil { // resp is now filled -// fmt.Println(resp) -// } -// -// See also, https://docs.aws.amazon.com/goto/WebAPI/gamesparks-2021-08-17/UpdateStage -func (c *GameSparks) UpdateStageRequest(input *UpdateStageInput) (req *request.Request, output *UpdateStageOutput) { - op := &request.Operation{ - Name: opUpdateStage, - HTTPMethod: "PATCH", - HTTPPath: "/game/{GameName}/stage/{StageName}", - } - - if input == nil { - input = &UpdateStageInput{} - } - - output = &UpdateStageOutput{} - req = c.newRequest(op, input, output) - return -} - -// UpdateStage API operation for GameSparks. -// -// Updates the metadata of a stage. -// -// Returns awserr.Error for service API and SDK errors. Use runtime type assertions -// with awserr.Error's Code and Message methods to get detailed information about -// the error. -// -// See the AWS API reference guide for GameSparks's -// API operation UpdateStage for usage and error information. -// -// Returned Error Types: -// -// - ValidationException -// One of the parameters in the request is invalid. -// -// - AccessDeniedException -// You do not have sufficient access to perform this action. -// -// - ThrottlingException -// The request throughput limit was exceeded. -// -// - ResourceNotFoundException -// The resource specified in the request does not exist. -// -// - InternalServerException -// The service encountered an internal error. -// -// See also, https://docs.aws.amazon.com/goto/WebAPI/gamesparks-2021-08-17/UpdateStage -func (c *GameSparks) UpdateStage(input *UpdateStageInput) (*UpdateStageOutput, error) { - req, out := c.UpdateStageRequest(input) - return out, req.Send() -} - -// UpdateStageWithContext is the same as UpdateStage with the addition of -// the ability to pass a context and additional request options. -// -// See UpdateStage for details on how to use this API operation. -// -// The context must be non-nil and will be used for request cancellation. If -// the context is nil a panic will occur. In the future the SDK may create -// sub-contexts for http.Requests. See https://golang.org/pkg/context/ -// for more information on using Contexts. -func (c *GameSparks) UpdateStageWithContext(ctx aws.Context, input *UpdateStageInput, opts ...request.Option) (*UpdateStageOutput, error) { - req, out := c.UpdateStageRequest(input) - req.SetContext(ctx) - req.ApplyOptions(opts...) - return out, req.Send() -} - -// You do not have sufficient access to perform this action. -type AccessDeniedException struct { - _ struct{} `type:"structure"` - RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` - - Message_ *string `locationName:"Message" type:"string"` -} - -// String returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s AccessDeniedException) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s AccessDeniedException) GoString() string { - return s.String() -} - -func newErrorAccessDeniedException(v protocol.ResponseMetadata) error { - return &AccessDeniedException{ - RespMetadata: v, - } -} - -// Code returns the exception type name. -func (s *AccessDeniedException) Code() string { - return "AccessDeniedException" -} - -// Message returns the exception's message. -func (s *AccessDeniedException) Message() string { - if s.Message_ != nil { - return *s.Message_ - } - return "" -} - -// OrigErr always returns nil, satisfies awserr.Error interface. -func (s *AccessDeniedException) OrigErr() error { - return nil -} - -func (s *AccessDeniedException) Error() string { - return fmt.Sprintf("%s: %s", s.Code(), s.Message()) -} - -// Status code returns the HTTP status code for the request's response error. -func (s *AccessDeniedException) StatusCode() int { - return s.RespMetadata.StatusCode -} - -// RequestID returns the service's response RequestID for request. -func (s *AccessDeniedException) RequestID() string { - return s.RespMetadata.RequestID -} - -// The resource already exists, or another operation is in progress. -type ConflictException struct { - _ struct{} `type:"structure"` - RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` - - Message_ *string `locationName:"Message" type:"string"` -} - -// String returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s ConflictException) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s ConflictException) GoString() string { - return s.String() -} - -func newErrorConflictException(v protocol.ResponseMetadata) error { - return &ConflictException{ - RespMetadata: v, - } -} - -// Code returns the exception type name. -func (s *ConflictException) Code() string { - return "ConflictException" -} - -// Message returns the exception's message. -func (s *ConflictException) Message() string { - if s.Message_ != nil { - return *s.Message_ - } - return "" -} - -// OrigErr always returns nil, satisfies awserr.Error interface. -func (s *ConflictException) OrigErr() error { - return nil -} - -func (s *ConflictException) Error() string { - return fmt.Sprintf("%s: %s", s.Code(), s.Message()) -} - -// Status code returns the HTTP status code for the request's response error. -func (s *ConflictException) StatusCode() int { - return s.RespMetadata.StatusCode -} - -// RequestID returns the service's response RequestID for request. -func (s *ConflictException) RequestID() string { - return s.RespMetadata.RequestID -} - -// Details about a WebSocket connection. -type Connection struct { - _ struct{} `type:"structure"` - - // The date and time when the connection was created. - Created *time.Time `type:"timestamp" timestampFormat:"iso8601"` - - // The identifier used to indicate a specific WebSocket connection. - Id *string `min:"1" type:"string"` -} - -// String returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s Connection) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s Connection) GoString() string { - return s.String() -} - -// SetCreated sets the Created field's value. -func (s *Connection) SetCreated(v time.Time) *Connection { - s.Created = &v - return s -} - -// SetId sets the Id field's value. -func (s *Connection) SetId(v string) *Connection { - s.Id = &v - return s -} - -type CreateGameInput struct { - _ struct{} `type:"structure"` - - // A client-defined token. With an active client token in the request, this - // action is idempotent. - ClientToken *string `min:"33" type:"string"` - - // The description of the game. - Description *string `type:"string"` - - // The name of the game. - // - // GameName is a required field - GameName *string `min:"1" type:"string" required:"true"` - - // The list of tags to apply to the game. - Tags map[string]*string `min:"1" type:"map"` -} - -// String returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s CreateGameInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s CreateGameInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *CreateGameInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CreateGameInput"} - if s.ClientToken != nil && len(*s.ClientToken) < 33 { - invalidParams.Add(request.NewErrParamMinLen("ClientToken", 33)) - } - if s.GameName == nil { - invalidParams.Add(request.NewErrParamRequired("GameName")) - } - if s.GameName != nil && len(*s.GameName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("GameName", 1)) - } - if s.Tags != nil && len(s.Tags) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Tags", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// SetClientToken sets the ClientToken field's value. -func (s *CreateGameInput) SetClientToken(v string) *CreateGameInput { - s.ClientToken = &v - return s -} - -// SetDescription sets the Description field's value. -func (s *CreateGameInput) SetDescription(v string) *CreateGameInput { - s.Description = &v - return s -} - -// SetGameName sets the GameName field's value. -func (s *CreateGameInput) SetGameName(v string) *CreateGameInput { - s.GameName = &v - return s -} - -// SetTags sets the Tags field's value. -func (s *CreateGameInput) SetTags(v map[string]*string) *CreateGameInput { - s.Tags = v - return s -} - -type CreateGameOutput struct { - _ struct{} `type:"structure"` - - // Details about the game that was created. - Game *GameDetails `type:"structure"` -} - -// String returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s CreateGameOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s CreateGameOutput) GoString() string { - return s.String() -} - -// SetGame sets the Game field's value. -func (s *CreateGameOutput) SetGame(v *GameDetails) *CreateGameOutput { - s.Game = v - return s -} - -type CreateSnapshotInput struct { - _ struct{} `type:"structure"` - - // The description of the snapshot. - Description *string `type:"string"` - - // The name of the game. - // - // GameName is a required field - GameName *string `location:"uri" locationName:"GameName" min:"1" type:"string" required:"true"` -} - -// String returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s CreateSnapshotInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s CreateSnapshotInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *CreateSnapshotInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CreateSnapshotInput"} - if s.GameName == nil { - invalidParams.Add(request.NewErrParamRequired("GameName")) - } - if s.GameName != nil && len(*s.GameName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("GameName", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// SetDescription sets the Description field's value. -func (s *CreateSnapshotInput) SetDescription(v string) *CreateSnapshotInput { - s.Description = &v - return s -} - -// SetGameName sets the GameName field's value. -func (s *CreateSnapshotInput) SetGameName(v string) *CreateSnapshotInput { - s.GameName = &v - return s -} - -type CreateSnapshotOutput struct { - _ struct{} `type:"structure"` - - // Properties that provide details of the created snapshot. - Snapshot *SnapshotDetails `type:"structure"` -} - -// String returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s CreateSnapshotOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s CreateSnapshotOutput) GoString() string { - return s.String() -} - -// SetSnapshot sets the Snapshot field's value. -func (s *CreateSnapshotOutput) SetSnapshot(v *SnapshotDetails) *CreateSnapshotOutput { - s.Snapshot = v - return s -} - -type CreateStageInput struct { - _ struct{} `type:"structure"` - - // A client-defined token. With an active client token in the request, this - // action is idempotent. - ClientToken *string `min:"33" type:"string"` - - // The description of the stage. - Description *string `type:"string"` - - // The name of the game. - // - // GameName is a required field - GameName *string `location:"uri" locationName:"GameName" min:"1" type:"string" required:"true"` - - // The Amazon Resource Name (ARN) of the role to run the game with. This role - // can be a game-defined role or the default role that GameSparks created. - // - // Role is a required field - Role *string `min:"20" type:"string" required:"true"` - - // The name of the stage. - // - // StageName is a required field - StageName *string `min:"1" type:"string" required:"true"` - - // The list of tags to apply to the stage. - Tags map[string]*string `min:"1" type:"map"` -} - -// String returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s CreateStageInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s CreateStageInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *CreateStageInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CreateStageInput"} - if s.ClientToken != nil && len(*s.ClientToken) < 33 { - invalidParams.Add(request.NewErrParamMinLen("ClientToken", 33)) - } - if s.GameName == nil { - invalidParams.Add(request.NewErrParamRequired("GameName")) - } - if s.GameName != nil && len(*s.GameName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("GameName", 1)) - } - if s.Role == nil { - invalidParams.Add(request.NewErrParamRequired("Role")) - } - if s.Role != nil && len(*s.Role) < 20 { - invalidParams.Add(request.NewErrParamMinLen("Role", 20)) - } - if s.StageName == nil { - invalidParams.Add(request.NewErrParamRequired("StageName")) - } - if s.StageName != nil && len(*s.StageName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("StageName", 1)) - } - if s.Tags != nil && len(s.Tags) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Tags", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// SetClientToken sets the ClientToken field's value. -func (s *CreateStageInput) SetClientToken(v string) *CreateStageInput { - s.ClientToken = &v - return s -} - -// SetDescription sets the Description field's value. -func (s *CreateStageInput) SetDescription(v string) *CreateStageInput { - s.Description = &v - return s -} - -// SetGameName sets the GameName field's value. -func (s *CreateStageInput) SetGameName(v string) *CreateStageInput { - s.GameName = &v - return s -} - -// SetRole sets the Role field's value. -func (s *CreateStageInput) SetRole(v string) *CreateStageInput { - s.Role = &v - return s -} - -// SetStageName sets the StageName field's value. -func (s *CreateStageInput) SetStageName(v string) *CreateStageInput { - s.StageName = &v - return s -} - -// SetTags sets the Tags field's value. -func (s *CreateStageInput) SetTags(v map[string]*string) *CreateStageInput { - s.Tags = v - return s -} - -type CreateStageOutput struct { - _ struct{} `type:"structure"` - - // Properties that describe the stage. - Stage *StageDetails `type:"structure"` -} - -// String returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s CreateStageOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s CreateStageOutput) GoString() string { - return s.String() -} - -// SetStage sets the Stage field's value. -func (s *CreateStageOutput) SetStage(v *StageDetails) *CreateStageOutput { - s.Stage = v - return s -} - -type DeleteGameInput struct { - _ struct{} `type:"structure" nopayload:"true"` - - // The name of the game to delete. - // - // GameName is a required field - GameName *string `location:"uri" locationName:"GameName" min:"1" type:"string" required:"true"` -} - -// String returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s DeleteGameInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s DeleteGameInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *DeleteGameInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteGameInput"} - if s.GameName == nil { - invalidParams.Add(request.NewErrParamRequired("GameName")) - } - if s.GameName != nil && len(*s.GameName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("GameName", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// SetGameName sets the GameName field's value. -func (s *DeleteGameInput) SetGameName(v string) *DeleteGameInput { - s.GameName = &v - return s -} - -type DeleteGameOutput struct { - _ struct{} `type:"structure"` -} - -// String returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s DeleteGameOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s DeleteGameOutput) GoString() string { - return s.String() -} - -type DeleteStageInput struct { - _ struct{} `type:"structure" nopayload:"true"` - - // The name of the game. - // - // GameName is a required field - GameName *string `location:"uri" locationName:"GameName" min:"1" type:"string" required:"true"` - - // The name of the stage to delete. - // - // StageName is a required field - StageName *string `location:"uri" locationName:"StageName" min:"1" type:"string" required:"true"` -} - -// String returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s DeleteStageInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s DeleteStageInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *DeleteStageInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteStageInput"} - if s.GameName == nil { - invalidParams.Add(request.NewErrParamRequired("GameName")) - } - if s.GameName != nil && len(*s.GameName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("GameName", 1)) - } - if s.StageName == nil { - invalidParams.Add(request.NewErrParamRequired("StageName")) - } - if s.StageName != nil && len(*s.StageName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("StageName", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// SetGameName sets the GameName field's value. -func (s *DeleteStageInput) SetGameName(v string) *DeleteStageInput { - s.GameName = &v - return s -} - -// SetStageName sets the StageName field's value. -func (s *DeleteStageInput) SetStageName(v string) *DeleteStageInput { - s.StageName = &v - return s -} - -type DeleteStageOutput struct { - _ struct{} `type:"structure"` -} - -// String returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s DeleteStageOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s DeleteStageOutput) GoString() string { - return s.String() -} - -// The result of the deployment. -type DeploymentResult struct { - _ struct{} `type:"structure"` - - // Details about the deployment result. - Message *string `type:"string"` - - // The type of deployment result. - ResultCode *string `type:"string" enum:"ResultCode"` -} - -// String returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s DeploymentResult) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s DeploymentResult) GoString() string { - return s.String() -} - -// SetMessage sets the Message field's value. -func (s *DeploymentResult) SetMessage(v string) *DeploymentResult { - s.Message = &v - return s -} - -// SetResultCode sets the ResultCode field's value. -func (s *DeploymentResult) SetResultCode(v string) *DeploymentResult { - s.ResultCode = &v - return s -} - -type DisconnectPlayerInput struct { - _ struct{} `type:"structure" nopayload:"true"` - - // The name of the game. - // - // GameName is a required field - GameName *string `location:"uri" locationName:"GameName" min:"1" type:"string" required:"true"` - - // The unique identifier representing a player. - // - // PlayerId is a required field - PlayerId *string `location:"uri" locationName:"PlayerId" min:"1" type:"string" required:"true"` - - // The name of the stage. - // - // StageName is a required field - StageName *string `location:"uri" locationName:"StageName" min:"1" type:"string" required:"true"` -} - -// String returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s DisconnectPlayerInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s DisconnectPlayerInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *DisconnectPlayerInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DisconnectPlayerInput"} - if s.GameName == nil { - invalidParams.Add(request.NewErrParamRequired("GameName")) - } - if s.GameName != nil && len(*s.GameName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("GameName", 1)) - } - if s.PlayerId == nil { - invalidParams.Add(request.NewErrParamRequired("PlayerId")) - } - if s.PlayerId != nil && len(*s.PlayerId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("PlayerId", 1)) - } - if s.StageName == nil { - invalidParams.Add(request.NewErrParamRequired("StageName")) - } - if s.StageName != nil && len(*s.StageName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("StageName", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// SetGameName sets the GameName field's value. -func (s *DisconnectPlayerInput) SetGameName(v string) *DisconnectPlayerInput { - s.GameName = &v - return s -} - -// SetPlayerId sets the PlayerId field's value. -func (s *DisconnectPlayerInput) SetPlayerId(v string) *DisconnectPlayerInput { - s.PlayerId = &v - return s -} - -// SetStageName sets the StageName field's value. -func (s *DisconnectPlayerInput) SetStageName(v string) *DisconnectPlayerInput { - s.StageName = &v - return s -} - -type DisconnectPlayerOutput struct { - _ struct{} `type:"structure"` - - // The list of the connection ids that could not be disconnected. - DisconnectFailures []*string `type:"list"` - - // The list of the connection ids that were disconnected. - DisconnectSuccesses []*string `type:"list"` -} - -// String returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s DisconnectPlayerOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s DisconnectPlayerOutput) GoString() string { - return s.String() -} - -// SetDisconnectFailures sets the DisconnectFailures field's value. -func (s *DisconnectPlayerOutput) SetDisconnectFailures(v []*string) *DisconnectPlayerOutput { - s.DisconnectFailures = v - return s -} - -// SetDisconnectSuccesses sets the DisconnectSuccesses field's value. -func (s *DisconnectPlayerOutput) SetDisconnectSuccesses(v []*string) *DisconnectPlayerOutput { - s.DisconnectSuccesses = v - return s -} - -type ExportSnapshotInput struct { - _ struct{} `type:"structure" nopayload:"true"` - - // The name of the game. - // - // GameName is a required field - GameName *string `location:"uri" locationName:"GameName" min:"1" type:"string" required:"true"` - - // The identifier of the snapshot to export. - // - // SnapshotId is a required field - SnapshotId *string `location:"uri" locationName:"SnapshotId" min:"33" type:"string" required:"true"` -} - -// String returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s ExportSnapshotInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s ExportSnapshotInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *ExportSnapshotInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ExportSnapshotInput"} - if s.GameName == nil { - invalidParams.Add(request.NewErrParamRequired("GameName")) - } - if s.GameName != nil && len(*s.GameName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("GameName", 1)) - } - if s.SnapshotId == nil { - invalidParams.Add(request.NewErrParamRequired("SnapshotId")) - } - if s.SnapshotId != nil && len(*s.SnapshotId) < 33 { - invalidParams.Add(request.NewErrParamMinLen("SnapshotId", 33)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// SetGameName sets the GameName field's value. -func (s *ExportSnapshotInput) SetGameName(v string) *ExportSnapshotInput { - s.GameName = &v - return s -} - -// SetSnapshotId sets the SnapshotId field's value. -func (s *ExportSnapshotInput) SetSnapshotId(v string) *ExportSnapshotInput { - s.SnapshotId = &v - return s -} - -type ExportSnapshotOutput struct { - _ struct{} `type:"structure"` - - // The presigned URL for the snapshot data. - // - // This URL will be available for 10 minutes, and can be used to download the - // snapshot content. If the URL expires, a new one can be requested using the - // same operation. - S3Url *string `min:"10" type:"string"` -} - -// String returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s ExportSnapshotOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s ExportSnapshotOutput) GoString() string { - return s.String() -} - -// SetS3Url sets the S3Url field's value. -func (s *ExportSnapshotOutput) SetS3Url(v string) *ExportSnapshotOutput { - s.S3Url = &v - return s -} - -// Details about the extension. -type ExtensionDetails struct { - _ struct{} `type:"structure"` - - // The description of the extension. - Description *string `type:"string"` - - // The name of the extension. - Name *string `min:"1" type:"string"` - - // The namespace (qualifier) of the extension. - Namespace *string `min:"1" type:"string"` -} - -// String returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s ExtensionDetails) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s ExtensionDetails) GoString() string { - return s.String() -} - -// SetDescription sets the Description field's value. -func (s *ExtensionDetails) SetDescription(v string) *ExtensionDetails { - s.Description = &v - return s -} - -// SetName sets the Name field's value. -func (s *ExtensionDetails) SetName(v string) *ExtensionDetails { - s.Name = &v - return s -} - -// SetNamespace sets the Namespace field's value. -func (s *ExtensionDetails) SetNamespace(v string) *ExtensionDetails { - s.Namespace = &v - return s -} - -// Details about the extension version. -type ExtensionVersionDetails struct { - _ struct{} `type:"structure"` - - // The name of the extension. - Name *string `min:"1" type:"string"` - - // The namespace (qualifier) of the extension. - Namespace *string `min:"1" type:"string"` - - // The model that defines the interface for this extension version. - Schema *string `type:"string"` - - // The version of the extension. - Version *string `type:"string"` -} - -// String returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s ExtensionVersionDetails) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s ExtensionVersionDetails) GoString() string { - return s.String() -} - -// SetName sets the Name field's value. -func (s *ExtensionVersionDetails) SetName(v string) *ExtensionVersionDetails { - s.Name = &v - return s -} - -// SetNamespace sets the Namespace field's value. -func (s *ExtensionVersionDetails) SetNamespace(v string) *ExtensionVersionDetails { - s.Namespace = &v - return s -} - -// SetSchema sets the Schema field's value. -func (s *ExtensionVersionDetails) SetSchema(v string) *ExtensionVersionDetails { - s.Schema = &v - return s -} - -// SetVersion sets the Version field's value. -func (s *ExtensionVersionDetails) SetVersion(v string) *ExtensionVersionDetails { - s.Version = &v - return s -} - -// Details about the game configuration. -// -// The game configuration is organized into named sections, where the schema -// of each section is defined by an extension. The schema for these sections -// can be retrieved using the GetExtensionVersion operation. -type GameConfigurationDetails struct { - _ struct{} `type:"structure"` - - // The date when the game was created. - Created *time.Time `type:"timestamp" timestampFormat:"iso8601"` - - // The date when the game was last modified. - LastUpdated *time.Time `type:"timestamp" timestampFormat:"iso8601"` - - // Configuration data, organized by section name. - Sections map[string]*Section `type:"map"` -} - -// String returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s GameConfigurationDetails) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s GameConfigurationDetails) GoString() string { - return s.String() -} - -// SetCreated sets the Created field's value. -func (s *GameConfigurationDetails) SetCreated(v time.Time) *GameConfigurationDetails { - s.Created = &v - return s -} - -// SetLastUpdated sets the LastUpdated field's value. -func (s *GameConfigurationDetails) SetLastUpdated(v time.Time) *GameConfigurationDetails { - s.LastUpdated = &v - return s -} - -// SetSections sets the Sections field's value. -func (s *GameConfigurationDetails) SetSections(v map[string]*Section) *GameConfigurationDetails { - s.Sections = v - return s -} - -// Details about a game. -type GameDetails struct { - _ struct{} `type:"structure"` - - // The Amazon Resource Name (ARN) of this game. - Arn *string `min:"20" type:"string"` - - // The date when the game was created. - Created *time.Time `type:"timestamp" timestampFormat:"iso8601"` - - // The description of the game. - Description *string `type:"string"` - - // Determines if the game can be deleted. - EnableTerminationProtection *bool `type:"boolean"` - - // The date when the game was last modified. - LastUpdated *time.Time `type:"timestamp" timestampFormat:"iso8601"` - - // The name of the game. - Name *string `min:"1" type:"string"` - - // The state of the game. - State *string `type:"string" enum:"GameState"` - - // The tags associated with the game. - Tags map[string]*string `min:"1" type:"map"` -} - -// String returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s GameDetails) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s GameDetails) GoString() string { - return s.String() -} - -// SetArn sets the Arn field's value. -func (s *GameDetails) SetArn(v string) *GameDetails { - s.Arn = &v - return s -} - -// SetCreated sets the Created field's value. -func (s *GameDetails) SetCreated(v time.Time) *GameDetails { - s.Created = &v - return s -} - -// SetDescription sets the Description field's value. -func (s *GameDetails) SetDescription(v string) *GameDetails { - s.Description = &v - return s -} - -// SetEnableTerminationProtection sets the EnableTerminationProtection field's value. -func (s *GameDetails) SetEnableTerminationProtection(v bool) *GameDetails { - s.EnableTerminationProtection = &v - return s -} - -// SetLastUpdated sets the LastUpdated field's value. -func (s *GameDetails) SetLastUpdated(v time.Time) *GameDetails { - s.LastUpdated = &v - return s -} - -// SetName sets the Name field's value. -func (s *GameDetails) SetName(v string) *GameDetails { - s.Name = &v - return s -} - -// SetState sets the State field's value. -func (s *GameDetails) SetState(v string) *GameDetails { - s.State = &v - return s -} - -// SetTags sets the Tags field's value. -func (s *GameDetails) SetTags(v map[string]*string) *GameDetails { - s.Tags = v - return s -} - -// The summary of the properties of a game. -type GameSummary struct { - _ struct{} `type:"structure"` - - // The description of the game. - Description *string `type:"string"` - - // The name of the game. - Name *string `min:"1" type:"string"` - - // The state of the game. - State *string `type:"string" enum:"GameState"` - - // The tags associated with the game. - Tags map[string]*string `min:"1" type:"map"` -} - -// String returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s GameSummary) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s GameSummary) GoString() string { - return s.String() -} - -// SetDescription sets the Description field's value. -func (s *GameSummary) SetDescription(v string) *GameSummary { - s.Description = &v - return s -} - -// SetName sets the Name field's value. -func (s *GameSummary) SetName(v string) *GameSummary { - s.Name = &v - return s -} - -// SetState sets the State field's value. -func (s *GameSummary) SetState(v string) *GameSummary { - s.State = &v - return s -} - -// SetTags sets the Tags field's value. -func (s *GameSummary) SetTags(v map[string]*string) *GameSummary { - s.Tags = v - return s -} - -// Details about a generated code job. -type GeneratedCodeJobDetails struct { - _ struct{} `type:"structure"` - - // The description of the generated code job. - Description *string `type:"string"` - - // The expiration date and time for the download URL. - // - // The download URL us guaranteed to be available until at least this time. - ExpirationTime *time.Time `type:"timestamp" timestampFormat:"iso8601"` - - // The identifier for the generated code job. - GeneratedCodeJobId *string `type:"string"` - - // A presigned URL that can be used to download the generated code. - S3Url *string `min:"10" type:"string"` - - // The status of the generated code job - Status *string `type:"string" enum:"GeneratedCodeJobState"` -} - -// String returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s GeneratedCodeJobDetails) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s GeneratedCodeJobDetails) GoString() string { - return s.String() -} - -// SetDescription sets the Description field's value. -func (s *GeneratedCodeJobDetails) SetDescription(v string) *GeneratedCodeJobDetails { - s.Description = &v - return s -} - -// SetExpirationTime sets the ExpirationTime field's value. -func (s *GeneratedCodeJobDetails) SetExpirationTime(v time.Time) *GeneratedCodeJobDetails { - s.ExpirationTime = &v - return s -} - -// SetGeneratedCodeJobId sets the GeneratedCodeJobId field's value. -func (s *GeneratedCodeJobDetails) SetGeneratedCodeJobId(v string) *GeneratedCodeJobDetails { - s.GeneratedCodeJobId = &v - return s -} - -// SetS3Url sets the S3Url field's value. -func (s *GeneratedCodeJobDetails) SetS3Url(v string) *GeneratedCodeJobDetails { - s.S3Url = &v - return s -} - -// SetStatus sets the Status field's value. -func (s *GeneratedCodeJobDetails) SetStatus(v string) *GeneratedCodeJobDetails { - s.Status = &v - return s -} - -// Properties that specify the code generator for a generated code job. -type Generator struct { - _ struct{} `type:"structure"` - - // The target version of the GameSparks Game SDK. - GameSdkVersion *string `min:"5" type:"string"` - - // The programming language for the generated code. - // - // Not all languages are supported for each platform. For cases where multiple - // languages are supported, this parameter specifies the language to be used. - // If this value is omitted, the default language for the target platform will - // be used. - Language *string `min:"1" type:"string"` - - // The platform that will be used to run the generated code. - TargetPlatform *string `min:"1" type:"string"` -} - -// String returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s Generator) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s Generator) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *Generator) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "Generator"} - if s.GameSdkVersion != nil && len(*s.GameSdkVersion) < 5 { - invalidParams.Add(request.NewErrParamMinLen("GameSdkVersion", 5)) - } - if s.Language != nil && len(*s.Language) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Language", 1)) - } - if s.TargetPlatform != nil && len(*s.TargetPlatform) < 1 { - invalidParams.Add(request.NewErrParamMinLen("TargetPlatform", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// SetGameSdkVersion sets the GameSdkVersion field's value. -func (s *Generator) SetGameSdkVersion(v string) *Generator { - s.GameSdkVersion = &v - return s -} - -// SetLanguage sets the Language field's value. -func (s *Generator) SetLanguage(v string) *Generator { - s.Language = &v - return s -} - -// SetTargetPlatform sets the TargetPlatform field's value. -func (s *Generator) SetTargetPlatform(v string) *Generator { - s.TargetPlatform = &v - return s -} - -type GetExtensionInput struct { - _ struct{} `type:"structure" nopayload:"true"` - - // The name of the extension. - // - // Name is a required field - Name *string `location:"uri" locationName:"Name" min:"1" type:"string" required:"true"` - - // The namespace (qualifier) of the extension. - // - // Namespace is a required field - Namespace *string `location:"uri" locationName:"Namespace" min:"1" type:"string" required:"true"` -} - -// String returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s GetExtensionInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s GetExtensionInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *GetExtensionInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "GetExtensionInput"} - if s.Name == nil { - invalidParams.Add(request.NewErrParamRequired("Name")) - } - if s.Name != nil && len(*s.Name) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Name", 1)) - } - if s.Namespace == nil { - invalidParams.Add(request.NewErrParamRequired("Namespace")) - } - if s.Namespace != nil && len(*s.Namespace) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Namespace", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// SetName sets the Name field's value. -func (s *GetExtensionInput) SetName(v string) *GetExtensionInput { - s.Name = &v - return s -} - -// SetNamespace sets the Namespace field's value. -func (s *GetExtensionInput) SetNamespace(v string) *GetExtensionInput { - s.Namespace = &v - return s -} - -type GetExtensionOutput struct { - _ struct{} `type:"structure"` - - // Details about the extension. - Extension *ExtensionDetails `type:"structure"` -} - -// String returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s GetExtensionOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s GetExtensionOutput) GoString() string { - return s.String() -} - -// SetExtension sets the Extension field's value. -func (s *GetExtensionOutput) SetExtension(v *ExtensionDetails) *GetExtensionOutput { - s.Extension = v - return s -} - -type GetExtensionVersionInput struct { - _ struct{} `type:"structure" nopayload:"true"` - - // The version of the extension. - // - // ExtensionVersion is a required field - ExtensionVersion *string `location:"uri" locationName:"ExtensionVersion" type:"string" required:"true"` - - // The name of the extension. - // - // Name is a required field - Name *string `location:"uri" locationName:"Name" min:"1" type:"string" required:"true"` - - // The namespace (qualifier) of the extension. - // - // Namespace is a required field - Namespace *string `location:"uri" locationName:"Namespace" min:"1" type:"string" required:"true"` -} - -// String returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s GetExtensionVersionInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s GetExtensionVersionInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *GetExtensionVersionInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "GetExtensionVersionInput"} - if s.ExtensionVersion == nil { - invalidParams.Add(request.NewErrParamRequired("ExtensionVersion")) - } - if s.ExtensionVersion != nil && len(*s.ExtensionVersion) < 1 { - invalidParams.Add(request.NewErrParamMinLen("ExtensionVersion", 1)) - } - if s.Name == nil { - invalidParams.Add(request.NewErrParamRequired("Name")) - } - if s.Name != nil && len(*s.Name) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Name", 1)) - } - if s.Namespace == nil { - invalidParams.Add(request.NewErrParamRequired("Namespace")) - } - if s.Namespace != nil && len(*s.Namespace) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Namespace", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// SetExtensionVersion sets the ExtensionVersion field's value. -func (s *GetExtensionVersionInput) SetExtensionVersion(v string) *GetExtensionVersionInput { - s.ExtensionVersion = &v - return s -} - -// SetName sets the Name field's value. -func (s *GetExtensionVersionInput) SetName(v string) *GetExtensionVersionInput { - s.Name = &v - return s -} - -// SetNamespace sets the Namespace field's value. -func (s *GetExtensionVersionInput) SetNamespace(v string) *GetExtensionVersionInput { - s.Namespace = &v - return s -} - -type GetExtensionVersionOutput struct { - _ struct{} `type:"structure"` - - // The version of the extension. - ExtensionVersion *ExtensionVersionDetails `type:"structure"` -} - -// String returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s GetExtensionVersionOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s GetExtensionVersionOutput) GoString() string { - return s.String() -} - -// SetExtensionVersion sets the ExtensionVersion field's value. -func (s *GetExtensionVersionOutput) SetExtensionVersion(v *ExtensionVersionDetails) *GetExtensionVersionOutput { - s.ExtensionVersion = v - return s -} - -type GetGameConfigurationInput struct { - _ struct{} `type:"structure" nopayload:"true"` - - // The name of the game. - // - // GameName is a required field - GameName *string `location:"uri" locationName:"GameName" min:"1" type:"string" required:"true"` - - // The list of sections to return. - Sections []*string `location:"querystring" locationName:"Sections" min:"1" type:"list"` -} - -// String returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s GetGameConfigurationInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s GetGameConfigurationInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *GetGameConfigurationInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "GetGameConfigurationInput"} - if s.GameName == nil { - invalidParams.Add(request.NewErrParamRequired("GameName")) - } - if s.GameName != nil && len(*s.GameName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("GameName", 1)) - } - if s.Sections != nil && len(s.Sections) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Sections", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// SetGameName sets the GameName field's value. -func (s *GetGameConfigurationInput) SetGameName(v string) *GetGameConfigurationInput { - s.GameName = &v - return s -} - -// SetSections sets the Sections field's value. -func (s *GetGameConfigurationInput) SetSections(v []*string) *GetGameConfigurationInput { - s.Sections = v - return s -} - -type GetGameConfigurationOutput struct { - _ struct{} `type:"structure"` - - // Details about the game configuration. - GameConfiguration *GameConfigurationDetails `type:"structure"` -} - -// String returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s GetGameConfigurationOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s GetGameConfigurationOutput) GoString() string { - return s.String() -} - -// SetGameConfiguration sets the GameConfiguration field's value. -func (s *GetGameConfigurationOutput) SetGameConfiguration(v *GameConfigurationDetails) *GetGameConfigurationOutput { - s.GameConfiguration = v - return s -} - -type GetGameInput struct { - _ struct{} `type:"structure" nopayload:"true"` - - // The name of the game. - // - // GameName is a required field - GameName *string `location:"uri" locationName:"GameName" min:"1" type:"string" required:"true"` -} - -// String returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s GetGameInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s GetGameInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *GetGameInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "GetGameInput"} - if s.GameName == nil { - invalidParams.Add(request.NewErrParamRequired("GameName")) - } - if s.GameName != nil && len(*s.GameName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("GameName", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// SetGameName sets the GameName field's value. -func (s *GetGameInput) SetGameName(v string) *GetGameInput { - s.GameName = &v - return s -} - -type GetGameOutput struct { - _ struct{} `type:"structure"` - - // The details of the game. - Game *GameDetails `type:"structure"` -} - -// String returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s GetGameOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s GetGameOutput) GoString() string { - return s.String() -} - -// SetGame sets the Game field's value. -func (s *GetGameOutput) SetGame(v *GameDetails) *GetGameOutput { - s.Game = v - return s -} - -type GetGeneratedCodeJobInput struct { - _ struct{} `type:"structure" nopayload:"true"` - - // The name of the game. - // - // GameName is a required field - GameName *string `location:"uri" locationName:"GameName" min:"1" type:"string" required:"true"` - - // The identifier of the code generation job. - // - // JobId is a required field - JobId *string `location:"uri" locationName:"JobId" type:"string" required:"true"` - - // The identifier of the snapshot for the code generation job. - // - // SnapshotId is a required field - SnapshotId *string `location:"uri" locationName:"SnapshotId" min:"33" type:"string" required:"true"` -} - -// String returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s GetGeneratedCodeJobInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s GetGeneratedCodeJobInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *GetGeneratedCodeJobInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "GetGeneratedCodeJobInput"} - if s.GameName == nil { - invalidParams.Add(request.NewErrParamRequired("GameName")) - } - if s.GameName != nil && len(*s.GameName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("GameName", 1)) - } - if s.JobId == nil { - invalidParams.Add(request.NewErrParamRequired("JobId")) - } - if s.JobId != nil && len(*s.JobId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("JobId", 1)) - } - if s.SnapshotId == nil { - invalidParams.Add(request.NewErrParamRequired("SnapshotId")) - } - if s.SnapshotId != nil && len(*s.SnapshotId) < 33 { - invalidParams.Add(request.NewErrParamMinLen("SnapshotId", 33)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// SetGameName sets the GameName field's value. -func (s *GetGeneratedCodeJobInput) SetGameName(v string) *GetGeneratedCodeJobInput { - s.GameName = &v - return s -} - -// SetJobId sets the JobId field's value. -func (s *GetGeneratedCodeJobInput) SetJobId(v string) *GetGeneratedCodeJobInput { - s.JobId = &v - return s -} - -// SetSnapshotId sets the SnapshotId field's value. -func (s *GetGeneratedCodeJobInput) SetSnapshotId(v string) *GetGeneratedCodeJobInput { - s.SnapshotId = &v - return s -} - -type GetGeneratedCodeJobOutput struct { - _ struct{} `type:"structure"` - - // Details about the generated code job. - GeneratedCodeJob *GeneratedCodeJobDetails `type:"structure"` -} - -// String returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s GetGeneratedCodeJobOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s GetGeneratedCodeJobOutput) GoString() string { - return s.String() -} - -// SetGeneratedCodeJob sets the GeneratedCodeJob field's value. -func (s *GetGeneratedCodeJobOutput) SetGeneratedCodeJob(v *GeneratedCodeJobDetails) *GetGeneratedCodeJobOutput { - s.GeneratedCodeJob = v - return s -} - -type GetPlayerConnectionStatusInput struct { - _ struct{} `type:"structure" nopayload:"true"` - - // The name of the game. - // - // GameName is a required field - GameName *string `location:"uri" locationName:"GameName" min:"1" type:"string" required:"true"` - - // The unique identifier representing a player. - // - // PlayerId is a required field - PlayerId *string `location:"uri" locationName:"PlayerId" min:"1" type:"string" required:"true"` - - // The name of the stage. - // - // StageName is a required field - StageName *string `location:"uri" locationName:"StageName" min:"1" type:"string" required:"true"` -} - -// String returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s GetPlayerConnectionStatusInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s GetPlayerConnectionStatusInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *GetPlayerConnectionStatusInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "GetPlayerConnectionStatusInput"} - if s.GameName == nil { - invalidParams.Add(request.NewErrParamRequired("GameName")) - } - if s.GameName != nil && len(*s.GameName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("GameName", 1)) - } - if s.PlayerId == nil { - invalidParams.Add(request.NewErrParamRequired("PlayerId")) - } - if s.PlayerId != nil && len(*s.PlayerId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("PlayerId", 1)) - } - if s.StageName == nil { - invalidParams.Add(request.NewErrParamRequired("StageName")) - } - if s.StageName != nil && len(*s.StageName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("StageName", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// SetGameName sets the GameName field's value. -func (s *GetPlayerConnectionStatusInput) SetGameName(v string) *GetPlayerConnectionStatusInput { - s.GameName = &v - return s -} - -// SetPlayerId sets the PlayerId field's value. -func (s *GetPlayerConnectionStatusInput) SetPlayerId(v string) *GetPlayerConnectionStatusInput { - s.PlayerId = &v - return s -} - -// SetStageName sets the StageName field's value. -func (s *GetPlayerConnectionStatusInput) SetStageName(v string) *GetPlayerConnectionStatusInput { - s.StageName = &v - return s -} - -type GetPlayerConnectionStatusOutput struct { - _ struct{} `type:"structure"` - - // The list of connection ids, one for each connection in use by the player. - Connections []*Connection `type:"list"` -} - -// String returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s GetPlayerConnectionStatusOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s GetPlayerConnectionStatusOutput) GoString() string { - return s.String() -} - -// SetConnections sets the Connections field's value. -func (s *GetPlayerConnectionStatusOutput) SetConnections(v []*Connection) *GetPlayerConnectionStatusOutput { - s.Connections = v - return s -} - -type GetSnapshotInput struct { - _ struct{} `type:"structure" nopayload:"true"` - - // The name of the game. - // - // GameName is a required field - GameName *string `location:"uri" locationName:"GameName" min:"1" type:"string" required:"true"` - - // The list of game configuration sections to be described. - Sections []*string `location:"querystring" locationName:"Sections" min:"1" type:"list"` - - // The identifier of the snapshot. - // - // SnapshotId is a required field - SnapshotId *string `location:"uri" locationName:"SnapshotId" min:"33" type:"string" required:"true"` -} - -// String returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s GetSnapshotInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s GetSnapshotInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *GetSnapshotInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "GetSnapshotInput"} - if s.GameName == nil { - invalidParams.Add(request.NewErrParamRequired("GameName")) - } - if s.GameName != nil && len(*s.GameName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("GameName", 1)) - } - if s.Sections != nil && len(s.Sections) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Sections", 1)) - } - if s.SnapshotId == nil { - invalidParams.Add(request.NewErrParamRequired("SnapshotId")) - } - if s.SnapshotId != nil && len(*s.SnapshotId) < 33 { - invalidParams.Add(request.NewErrParamMinLen("SnapshotId", 33)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// SetGameName sets the GameName field's value. -func (s *GetSnapshotInput) SetGameName(v string) *GetSnapshotInput { - s.GameName = &v - return s -} - -// SetSections sets the Sections field's value. -func (s *GetSnapshotInput) SetSections(v []*string) *GetSnapshotInput { - s.Sections = v - return s -} - -// SetSnapshotId sets the SnapshotId field's value. -func (s *GetSnapshotInput) SetSnapshotId(v string) *GetSnapshotInput { - s.SnapshotId = &v - return s -} - -type GetSnapshotOutput struct { - _ struct{} `type:"structure"` - - // Properties that provide details of the snapshot. - Snapshot *SnapshotDetails `type:"structure"` -} - -// String returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s GetSnapshotOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s GetSnapshotOutput) GoString() string { - return s.String() -} - -// SetSnapshot sets the Snapshot field's value. -func (s *GetSnapshotOutput) SetSnapshot(v *SnapshotDetails) *GetSnapshotOutput { - s.Snapshot = v - return s -} - -type GetStageDeploymentInput struct { - _ struct{} `type:"structure" nopayload:"true"` - - // The identifier of the stage deployment. StartStageDeployment returns the - // identifier that you use here. - DeploymentId *string `location:"querystring" locationName:"DeploymentId" min:"1" type:"string"` - - // The name of the game. - // - // GameName is a required field - GameName *string `location:"uri" locationName:"GameName" min:"1" type:"string" required:"true"` - - // The name of the stage. - // - // StageName is a required field - StageName *string `location:"uri" locationName:"StageName" min:"1" type:"string" required:"true"` -} - -// String returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s GetStageDeploymentInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s GetStageDeploymentInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *GetStageDeploymentInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "GetStageDeploymentInput"} - if s.DeploymentId != nil && len(*s.DeploymentId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("DeploymentId", 1)) - } - if s.GameName == nil { - invalidParams.Add(request.NewErrParamRequired("GameName")) - } - if s.GameName != nil && len(*s.GameName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("GameName", 1)) - } - if s.StageName == nil { - invalidParams.Add(request.NewErrParamRequired("StageName")) - } - if s.StageName != nil && len(*s.StageName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("StageName", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// SetDeploymentId sets the DeploymentId field's value. -func (s *GetStageDeploymentInput) SetDeploymentId(v string) *GetStageDeploymentInput { - s.DeploymentId = &v - return s -} - -// SetGameName sets the GameName field's value. -func (s *GetStageDeploymentInput) SetGameName(v string) *GetStageDeploymentInput { - s.GameName = &v - return s -} - -// SetStageName sets the StageName field's value. -func (s *GetStageDeploymentInput) SetStageName(v string) *GetStageDeploymentInput { - s.StageName = &v - return s -} - -type GetStageDeploymentOutput struct { - _ struct{} `type:"structure"` - - // Properties that provide details of the stage deployment. - StageDeployment *StageDeploymentDetails `type:"structure"` -} - -// String returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s GetStageDeploymentOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s GetStageDeploymentOutput) GoString() string { - return s.String() -} - -// SetStageDeployment sets the StageDeployment field's value. -func (s *GetStageDeploymentOutput) SetStageDeployment(v *StageDeploymentDetails) *GetStageDeploymentOutput { - s.StageDeployment = v - return s -} - -type GetStageInput struct { - _ struct{} `type:"structure" nopayload:"true"` - - // The name of the game. - // - // GameName is a required field - GameName *string `location:"uri" locationName:"GameName" min:"1" type:"string" required:"true"` - - // The name of the stage. - // - // StageName is a required field - StageName *string `location:"uri" locationName:"StageName" min:"1" type:"string" required:"true"` -} - -// String returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s GetStageInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s GetStageInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *GetStageInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "GetStageInput"} - if s.GameName == nil { - invalidParams.Add(request.NewErrParamRequired("GameName")) - } - if s.GameName != nil && len(*s.GameName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("GameName", 1)) - } - if s.StageName == nil { - invalidParams.Add(request.NewErrParamRequired("StageName")) - } - if s.StageName != nil && len(*s.StageName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("StageName", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// SetGameName sets the GameName field's value. -func (s *GetStageInput) SetGameName(v string) *GetStageInput { - s.GameName = &v - return s -} - -// SetStageName sets the StageName field's value. -func (s *GetStageInput) SetStageName(v string) *GetStageInput { - s.StageName = &v - return s -} - -type GetStageOutput struct { - _ struct{} `type:"structure"` - - // Properties that provide details of the stage. - Stage *StageDetails `type:"structure"` -} - -// String returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s GetStageOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s GetStageOutput) GoString() string { - return s.String() -} - -// SetStage sets the Stage field's value. -func (s *GetStageOutput) SetStage(v *StageDetails) *GetStageOutput { - s.Stage = v - return s -} - -type ImportGameConfigurationInput struct { - _ struct{} `type:"structure"` - - // The name of the game. - // - // GameName is a required field - GameName *string `location:"uri" locationName:"GameName" min:"1" type:"string" required:"true"` - - // The source used to import configuration sections. - // - // ImportSource is a required field - ImportSource *ImportGameConfigurationSource `type:"structure" required:"true"` -} - -// String returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s ImportGameConfigurationInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s ImportGameConfigurationInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *ImportGameConfigurationInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ImportGameConfigurationInput"} - if s.GameName == nil { - invalidParams.Add(request.NewErrParamRequired("GameName")) - } - if s.GameName != nil && len(*s.GameName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("GameName", 1)) - } - if s.ImportSource == nil { - invalidParams.Add(request.NewErrParamRequired("ImportSource")) - } - if s.ImportSource != nil { - if err := s.ImportSource.Validate(); err != nil { - invalidParams.AddNested("ImportSource", err.(request.ErrInvalidParams)) - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// SetGameName sets the GameName field's value. -func (s *ImportGameConfigurationInput) SetGameName(v string) *ImportGameConfigurationInput { - s.GameName = &v - return s -} - -// SetImportSource sets the ImportSource field's value. -func (s *ImportGameConfigurationInput) SetImportSource(v *ImportGameConfigurationSource) *ImportGameConfigurationInput { - s.ImportSource = v - return s -} - -type ImportGameConfigurationOutput struct { - _ struct{} `type:"structure"` - - // Details about the game configuration. - GameConfiguration *GameConfigurationDetails `type:"structure"` -} - -// String returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s ImportGameConfigurationOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s ImportGameConfigurationOutput) GoString() string { - return s.String() -} - -// SetGameConfiguration sets the GameConfiguration field's value. -func (s *ImportGameConfigurationOutput) SetGameConfiguration(v *GameConfigurationDetails) *ImportGameConfigurationOutput { - s.GameConfiguration = v - return s -} - -// The source used to import configuration sections. -type ImportGameConfigurationSource struct { - _ struct{} `type:"structure"` - - // The JSON string containing the configuration sections. - // File is automatically base64 encoded/decoded by the SDK. - // - // File is a required field - File []byte `min:"10" type:"blob" required:"true"` -} - -// String returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s ImportGameConfigurationSource) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s ImportGameConfigurationSource) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *ImportGameConfigurationSource) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ImportGameConfigurationSource"} - if s.File == nil { - invalidParams.Add(request.NewErrParamRequired("File")) - } - if s.File != nil && len(s.File) < 10 { - invalidParams.Add(request.NewErrParamMinLen("File", 10)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// SetFile sets the File field's value. -func (s *ImportGameConfigurationSource) SetFile(v []byte) *ImportGameConfigurationSource { - s.File = v - return s -} - -// The service encountered an internal error. -type InternalServerException struct { - _ struct{} `type:"structure"` - RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` - - Message_ *string `locationName:"Message" type:"string"` -} - -// String returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s InternalServerException) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s InternalServerException) GoString() string { - return s.String() -} - -func newErrorInternalServerException(v protocol.ResponseMetadata) error { - return &InternalServerException{ - RespMetadata: v, - } -} - -// Code returns the exception type name. -func (s *InternalServerException) Code() string { - return "InternalServerException" -} - -// Message returns the exception's message. -func (s *InternalServerException) Message() string { - if s.Message_ != nil { - return *s.Message_ - } - return "" -} - -// OrigErr always returns nil, satisfies awserr.Error interface. -func (s *InternalServerException) OrigErr() error { - return nil -} - -func (s *InternalServerException) Error() string { - return fmt.Sprintf("%s: %s", s.Code(), s.Message()) -} - -// Status code returns the HTTP status code for the request's response error. -func (s *InternalServerException) StatusCode() int { - return s.RespMetadata.StatusCode -} - -// RequestID returns the service's response RequestID for request. -func (s *InternalServerException) RequestID() string { - return s.RespMetadata.RequestID -} - -type ListExtensionVersionsInput struct { - _ struct{} `type:"structure" nopayload:"true"` - - // The maximum number of results to return. - // - // Use this parameter with NextToken to get results as a set of sequential pages. - MaxResults *int64 `location:"querystring" locationName:"MaxResults" min:"1" type:"integer"` - - // The name of the extension. - // - // Name is a required field - Name *string `location:"uri" locationName:"Name" min:"1" type:"string" required:"true"` - - // The namespace (qualifier) of the extension. - // - // Namespace is a required field - Namespace *string `location:"uri" locationName:"Namespace" min:"1" type:"string" required:"true"` - - // The token that indicates the start of the next sequential page of results. - // - // Use the token that is returned with a previous call to this operation. To - // start at the beginning of the result set, do not specify a value. - NextToken *string `location:"querystring" locationName:"NextToken" min:"1" type:"string"` -} - -// String returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s ListExtensionVersionsInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s ListExtensionVersionsInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *ListExtensionVersionsInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ListExtensionVersionsInput"} - if s.MaxResults != nil && *s.MaxResults < 1 { - invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) - } - if s.Name == nil { - invalidParams.Add(request.NewErrParamRequired("Name")) - } - if s.Name != nil && len(*s.Name) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Name", 1)) - } - if s.Namespace == nil { - invalidParams.Add(request.NewErrParamRequired("Namespace")) - } - if s.Namespace != nil && len(*s.Namespace) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Namespace", 1)) - } - if s.NextToken != nil && len(*s.NextToken) < 1 { - invalidParams.Add(request.NewErrParamMinLen("NextToken", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// SetMaxResults sets the MaxResults field's value. -func (s *ListExtensionVersionsInput) SetMaxResults(v int64) *ListExtensionVersionsInput { - s.MaxResults = &v - return s -} - -// SetName sets the Name field's value. -func (s *ListExtensionVersionsInput) SetName(v string) *ListExtensionVersionsInput { - s.Name = &v - return s -} - -// SetNamespace sets the Namespace field's value. -func (s *ListExtensionVersionsInput) SetNamespace(v string) *ListExtensionVersionsInput { - s.Namespace = &v - return s -} - -// SetNextToken sets the NextToken field's value. -func (s *ListExtensionVersionsInput) SetNextToken(v string) *ListExtensionVersionsInput { - s.NextToken = &v - return s -} - -type ListExtensionVersionsOutput struct { - _ struct{} `type:"structure"` - - // The list of extension versions. - ExtensionVersions []*ExtensionVersionDetails `type:"list"` - - // The token that indicates the start of the next sequential page of results. - // - // Use this value when making the next call to this operation to continue where - // the last one finished. - NextToken *string `min:"1" type:"string"` -} - -// String returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s ListExtensionVersionsOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s ListExtensionVersionsOutput) GoString() string { - return s.String() -} - -// SetExtensionVersions sets the ExtensionVersions field's value. -func (s *ListExtensionVersionsOutput) SetExtensionVersions(v []*ExtensionVersionDetails) *ListExtensionVersionsOutput { - s.ExtensionVersions = v - return s -} - -// SetNextToken sets the NextToken field's value. -func (s *ListExtensionVersionsOutput) SetNextToken(v string) *ListExtensionVersionsOutput { - s.NextToken = &v - return s -} - -type ListExtensionsInput struct { - _ struct{} `type:"structure" nopayload:"true"` - - // The maximum number of results to return. - // - // Use this parameter with NextToken to get results as a set of sequential pages. - MaxResults *int64 `location:"querystring" locationName:"MaxResults" min:"1" type:"integer"` - - // The token that indicates the start of the next sequential page of results. - // - // Use the token that is returned with a previous call to this operation. To - // start at the beginning of the result set, do not specify a value. - NextToken *string `location:"querystring" locationName:"NextToken" min:"1" type:"string"` -} - -// String returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s ListExtensionsInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s ListExtensionsInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *ListExtensionsInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ListExtensionsInput"} - if s.MaxResults != nil && *s.MaxResults < 1 { - invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) - } - if s.NextToken != nil && len(*s.NextToken) < 1 { - invalidParams.Add(request.NewErrParamMinLen("NextToken", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// SetMaxResults sets the MaxResults field's value. -func (s *ListExtensionsInput) SetMaxResults(v int64) *ListExtensionsInput { - s.MaxResults = &v - return s -} - -// SetNextToken sets the NextToken field's value. -func (s *ListExtensionsInput) SetNextToken(v string) *ListExtensionsInput { - s.NextToken = &v - return s -} - -type ListExtensionsOutput struct { - _ struct{} `type:"structure"` - - // The list of extensions. - Extensions []*ExtensionDetails `type:"list"` - - // The token that indicates the start of the next sequential page of results. - // - // Use this value when making the next call to this operation to continue where - // the last one finished. - NextToken *string `min:"1" type:"string"` -} - -// String returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s ListExtensionsOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s ListExtensionsOutput) GoString() string { - return s.String() -} - -// SetExtensions sets the Extensions field's value. -func (s *ListExtensionsOutput) SetExtensions(v []*ExtensionDetails) *ListExtensionsOutput { - s.Extensions = v - return s -} - -// SetNextToken sets the NextToken field's value. -func (s *ListExtensionsOutput) SetNextToken(v string) *ListExtensionsOutput { - s.NextToken = &v - return s -} - -type ListGamesInput struct { - _ struct{} `type:"structure" nopayload:"true"` - - // The maximum number of results to return. - // - // Use this parameter with NextToken to get results as a set of sequential pages. - MaxResults *int64 `location:"querystring" locationName:"MaxResults" min:"1" type:"integer"` - - // The token that indicates the start of the next sequential page of results. - // - // Use the token that is returned with a previous call to this operation. To - // start at the beginning of the result set, do not specify a value. - NextToken *string `location:"querystring" locationName:"NextToken" min:"1" type:"string"` -} - -// String returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s ListGamesInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s ListGamesInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *ListGamesInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ListGamesInput"} - if s.MaxResults != nil && *s.MaxResults < 1 { - invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) - } - if s.NextToken != nil && len(*s.NextToken) < 1 { - invalidParams.Add(request.NewErrParamMinLen("NextToken", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// SetMaxResults sets the MaxResults field's value. -func (s *ListGamesInput) SetMaxResults(v int64) *ListGamesInput { - s.MaxResults = &v - return s -} - -// SetNextToken sets the NextToken field's value. -func (s *ListGamesInput) SetNextToken(v string) *ListGamesInput { - s.NextToken = &v - return s -} - -type ListGamesOutput struct { - _ struct{} `type:"structure"` - - // The list of games. - Games []*GameSummary `type:"list"` - - // The token that indicates the start of the next sequential page of results. - // - // Use this value when making the next call to this operation to continue where - // the last one finished. - NextToken *string `min:"1" type:"string"` -} - -// String returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s ListGamesOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s ListGamesOutput) GoString() string { - return s.String() -} - -// SetGames sets the Games field's value. -func (s *ListGamesOutput) SetGames(v []*GameSummary) *ListGamesOutput { - s.Games = v - return s -} - -// SetNextToken sets the NextToken field's value. -func (s *ListGamesOutput) SetNextToken(v string) *ListGamesOutput { - s.NextToken = &v - return s -} - -type ListGeneratedCodeJobsInput struct { - _ struct{} `type:"structure" nopayload:"true"` - - // The name of the game. - // - // GameName is a required field - GameName *string `location:"uri" locationName:"GameName" min:"1" type:"string" required:"true"` - - // The maximum number of results to return. - // - // Use this parameter with NextToken to get results as a set of sequential pages. - MaxResults *int64 `location:"querystring" locationName:"MaxResults" min:"1" type:"integer"` - - // The token that indicates the start of the next sequential page of results. - // - // Use the token that is returned with a previous call to this operation. To - // start at the beginning of the result set, do not specify a value. - NextToken *string `location:"querystring" locationName:"NextToken" min:"1" type:"string"` - - // The identifier of the snapshot. - // - // SnapshotId is a required field - SnapshotId *string `location:"uri" locationName:"SnapshotId" min:"33" type:"string" required:"true"` -} - -// String returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s ListGeneratedCodeJobsInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s ListGeneratedCodeJobsInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *ListGeneratedCodeJobsInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ListGeneratedCodeJobsInput"} - if s.GameName == nil { - invalidParams.Add(request.NewErrParamRequired("GameName")) - } - if s.GameName != nil && len(*s.GameName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("GameName", 1)) - } - if s.MaxResults != nil && *s.MaxResults < 1 { - invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) - } - if s.NextToken != nil && len(*s.NextToken) < 1 { - invalidParams.Add(request.NewErrParamMinLen("NextToken", 1)) - } - if s.SnapshotId == nil { - invalidParams.Add(request.NewErrParamRequired("SnapshotId")) - } - if s.SnapshotId != nil && len(*s.SnapshotId) < 33 { - invalidParams.Add(request.NewErrParamMinLen("SnapshotId", 33)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// SetGameName sets the GameName field's value. -func (s *ListGeneratedCodeJobsInput) SetGameName(v string) *ListGeneratedCodeJobsInput { - s.GameName = &v - return s -} - -// SetMaxResults sets the MaxResults field's value. -func (s *ListGeneratedCodeJobsInput) SetMaxResults(v int64) *ListGeneratedCodeJobsInput { - s.MaxResults = &v - return s -} - -// SetNextToken sets the NextToken field's value. -func (s *ListGeneratedCodeJobsInput) SetNextToken(v string) *ListGeneratedCodeJobsInput { - s.NextToken = &v - return s -} - -// SetSnapshotId sets the SnapshotId field's value. -func (s *ListGeneratedCodeJobsInput) SetSnapshotId(v string) *ListGeneratedCodeJobsInput { - s.SnapshotId = &v - return s -} - -type ListGeneratedCodeJobsOutput struct { - _ struct{} `type:"structure"` - - // The list of generated code jobs. - GeneratedCodeJobs []*GeneratedCodeJobDetails `type:"list"` - - // The token that indicates the start of the next sequential page of results. - // - // Use this value when making the next call to this operation to continue where - // the last one finished. - NextToken *string `min:"1" type:"string"` -} - -// String returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s ListGeneratedCodeJobsOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s ListGeneratedCodeJobsOutput) GoString() string { - return s.String() -} - -// SetGeneratedCodeJobs sets the GeneratedCodeJobs field's value. -func (s *ListGeneratedCodeJobsOutput) SetGeneratedCodeJobs(v []*GeneratedCodeJobDetails) *ListGeneratedCodeJobsOutput { - s.GeneratedCodeJobs = v - return s -} - -// SetNextToken sets the NextToken field's value. -func (s *ListGeneratedCodeJobsOutput) SetNextToken(v string) *ListGeneratedCodeJobsOutput { - s.NextToken = &v - return s -} - -type ListSnapshotsInput struct { - _ struct{} `type:"structure" nopayload:"true"` - - // The name of the game. - // - // GameName is a required field - GameName *string `location:"uri" locationName:"GameName" min:"1" type:"string" required:"true"` - - // The maximum number of results to return. - // - // Use this parameter with NextToken to get results as a set of sequential pages. - MaxResults *int64 `location:"querystring" locationName:"MaxResults" min:"1" type:"integer"` - - // The token that indicates the start of the next sequential page of results. - // - // Use the token that is returned with a previous call to this operation. To - // start at the beginning of the result set, do not specify a value. - NextToken *string `location:"querystring" locationName:"NextToken" min:"1" type:"string"` -} - -// String returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s ListSnapshotsInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s ListSnapshotsInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *ListSnapshotsInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ListSnapshotsInput"} - if s.GameName == nil { - invalidParams.Add(request.NewErrParamRequired("GameName")) - } - if s.GameName != nil && len(*s.GameName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("GameName", 1)) - } - if s.MaxResults != nil && *s.MaxResults < 1 { - invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) - } - if s.NextToken != nil && len(*s.NextToken) < 1 { - invalidParams.Add(request.NewErrParamMinLen("NextToken", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// SetGameName sets the GameName field's value. -func (s *ListSnapshotsInput) SetGameName(v string) *ListSnapshotsInput { - s.GameName = &v - return s -} - -// SetMaxResults sets the MaxResults field's value. -func (s *ListSnapshotsInput) SetMaxResults(v int64) *ListSnapshotsInput { - s.MaxResults = &v - return s -} - -// SetNextToken sets the NextToken field's value. -func (s *ListSnapshotsInput) SetNextToken(v string) *ListSnapshotsInput { - s.NextToken = &v - return s -} - -type ListSnapshotsOutput struct { - _ struct{} `type:"structure"` - - // The token that indicates the start of the next sequential page of results. - // - // Use this value when making the next call to this operation to continue where - // the last one finished. - NextToken *string `min:"1" type:"string"` - - // A list of snapshot summaries. You can use the returned snapshot IDs in the - // UpdateSnapshot and GetSnapshot operations. - Snapshots []*SnapshotSummary `type:"list"` -} - -// String returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s ListSnapshotsOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s ListSnapshotsOutput) GoString() string { - return s.String() -} - -// SetNextToken sets the NextToken field's value. -func (s *ListSnapshotsOutput) SetNextToken(v string) *ListSnapshotsOutput { - s.NextToken = &v - return s -} - -// SetSnapshots sets the Snapshots field's value. -func (s *ListSnapshotsOutput) SetSnapshots(v []*SnapshotSummary) *ListSnapshotsOutput { - s.Snapshots = v - return s -} - -type ListStageDeploymentsInput struct { - _ struct{} `type:"structure" nopayload:"true"` - - // The name of the game. - // - // GameName is a required field - GameName *string `location:"uri" locationName:"GameName" min:"1" type:"string" required:"true"` - - // The maximum number of results to return. - // - // Use this parameter with NextToken to get results as a set of sequential pages. - MaxResults *int64 `location:"querystring" locationName:"MaxResults" min:"1" type:"integer"` - - // The token that indicates the start of the next sequential page of results. - // - // Use the token that is returned with a previous call to this operation. To - // start at the beginning of the result set, do not specify a value. - NextToken *string `location:"querystring" locationName:"NextToken" min:"1" type:"string"` - - // The name of the stage. - // - // StageName is a required field - StageName *string `location:"uri" locationName:"StageName" min:"1" type:"string" required:"true"` -} - -// String returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s ListStageDeploymentsInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s ListStageDeploymentsInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *ListStageDeploymentsInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ListStageDeploymentsInput"} - if s.GameName == nil { - invalidParams.Add(request.NewErrParamRequired("GameName")) - } - if s.GameName != nil && len(*s.GameName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("GameName", 1)) - } - if s.MaxResults != nil && *s.MaxResults < 1 { - invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) - } - if s.NextToken != nil && len(*s.NextToken) < 1 { - invalidParams.Add(request.NewErrParamMinLen("NextToken", 1)) - } - if s.StageName == nil { - invalidParams.Add(request.NewErrParamRequired("StageName")) - } - if s.StageName != nil && len(*s.StageName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("StageName", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// SetGameName sets the GameName field's value. -func (s *ListStageDeploymentsInput) SetGameName(v string) *ListStageDeploymentsInput { - s.GameName = &v - return s -} - -// SetMaxResults sets the MaxResults field's value. -func (s *ListStageDeploymentsInput) SetMaxResults(v int64) *ListStageDeploymentsInput { - s.MaxResults = &v - return s -} - -// SetNextToken sets the NextToken field's value. -func (s *ListStageDeploymentsInput) SetNextToken(v string) *ListStageDeploymentsInput { - s.NextToken = &v - return s -} - -// SetStageName sets the StageName field's value. -func (s *ListStageDeploymentsInput) SetStageName(v string) *ListStageDeploymentsInput { - s.StageName = &v - return s -} - -type ListStageDeploymentsOutput struct { - _ struct{} `type:"structure"` - - // The token that indicates the start of the next sequential page of results. - // - // Use this value when making the next call to this operation to continue where - // the last one finished. - NextToken *string `min:"1" type:"string"` - - // A list of stage deployment summaries. You can use the deployment IDs in the - // UpdateStageDeployment and GetStageDeployment actions. - StageDeployments []*StageDeploymentSummary `type:"list"` -} - -// String returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s ListStageDeploymentsOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s ListStageDeploymentsOutput) GoString() string { - return s.String() -} - -// SetNextToken sets the NextToken field's value. -func (s *ListStageDeploymentsOutput) SetNextToken(v string) *ListStageDeploymentsOutput { - s.NextToken = &v - return s -} - -// SetStageDeployments sets the StageDeployments field's value. -func (s *ListStageDeploymentsOutput) SetStageDeployments(v []*StageDeploymentSummary) *ListStageDeploymentsOutput { - s.StageDeployments = v - return s -} - -type ListStagesInput struct { - _ struct{} `type:"structure" nopayload:"true"` - - // The name of the game. - // - // GameName is a required field - GameName *string `location:"uri" locationName:"GameName" min:"1" type:"string" required:"true"` - - // The maximum number of results to return. - // - // Use this parameter with NextToken to get results as a set of sequential pages. - MaxResults *int64 `location:"querystring" locationName:"MaxResults" min:"1" type:"integer"` - - // The token that indicates the start of the next sequential page of results. - // - // Use the token that is returned with a previous call to this operation. To - // start at the beginning of the result set, do not specify a value. - NextToken *string `location:"querystring" locationName:"NextToken" min:"1" type:"string"` -} - -// String returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s ListStagesInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s ListStagesInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *ListStagesInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ListStagesInput"} - if s.GameName == nil { - invalidParams.Add(request.NewErrParamRequired("GameName")) - } - if s.GameName != nil && len(*s.GameName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("GameName", 1)) - } - if s.MaxResults != nil && *s.MaxResults < 1 { - invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) - } - if s.NextToken != nil && len(*s.NextToken) < 1 { - invalidParams.Add(request.NewErrParamMinLen("NextToken", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// SetGameName sets the GameName field's value. -func (s *ListStagesInput) SetGameName(v string) *ListStagesInput { - s.GameName = &v - return s -} - -// SetMaxResults sets the MaxResults field's value. -func (s *ListStagesInput) SetMaxResults(v int64) *ListStagesInput { - s.MaxResults = &v - return s -} - -// SetNextToken sets the NextToken field's value. -func (s *ListStagesInput) SetNextToken(v string) *ListStagesInput { - s.NextToken = &v - return s -} - -type ListStagesOutput struct { - _ struct{} `type:"structure"` - - // The token that indicates the start of the next sequential page of results. - // - // Use this value when making the next call to this operation to continue where - // the last one finished. - NextToken *string `min:"1" type:"string"` - - // A list of stage summaries. You can use the stage names in the UpdateStage - // and GetStage actions. - Stages []*StageSummary `type:"list"` -} - -// String returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s ListStagesOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s ListStagesOutput) GoString() string { - return s.String() -} - -// SetNextToken sets the NextToken field's value. -func (s *ListStagesOutput) SetNextToken(v string) *ListStagesOutput { - s.NextToken = &v - return s -} - -// SetStages sets the Stages field's value. -func (s *ListStagesOutput) SetStages(v []*StageSummary) *ListStagesOutput { - s.Stages = v - return s -} - -type ListTagsForResourceInput struct { - _ struct{} `type:"structure" nopayload:"true"` - - // The Amazon Resource Name (ARN) of the GameSparks resource. - // - // ResourceArn is a required field - ResourceArn *string `location:"uri" locationName:"ResourceArn" min:"20" type:"string" required:"true"` -} - -// String returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s ListTagsForResourceInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s ListTagsForResourceInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *ListTagsForResourceInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ListTagsForResourceInput"} - if s.ResourceArn == nil { - invalidParams.Add(request.NewErrParamRequired("ResourceArn")) - } - if s.ResourceArn != nil && len(*s.ResourceArn) < 20 { - invalidParams.Add(request.NewErrParamMinLen("ResourceArn", 20)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// SetResourceArn sets the ResourceArn field's value. -func (s *ListTagsForResourceInput) SetResourceArn(v string) *ListTagsForResourceInput { - s.ResourceArn = &v - return s -} - -type ListTagsForResourceOutput struct { - _ struct{} `type:"structure"` - - // The tags associated with the resource. - Tags map[string]*string `locationName:"tags" min:"1" type:"map"` -} - -// String returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s ListTagsForResourceOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s ListTagsForResourceOutput) GoString() string { - return s.String() -} - -// SetTags sets the Tags field's value. -func (s *ListTagsForResourceOutput) SetTags(v map[string]*string) *ListTagsForResourceOutput { - s.Tags = v - return s -} - -// The resource specified in the request does not exist. -type ResourceNotFoundException struct { - _ struct{} `type:"structure"` - RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` - - Message_ *string `locationName:"Message" type:"string"` -} - -// String returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s ResourceNotFoundException) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s ResourceNotFoundException) GoString() string { - return s.String() -} - -func newErrorResourceNotFoundException(v protocol.ResponseMetadata) error { - return &ResourceNotFoundException{ - RespMetadata: v, - } -} - -// Code returns the exception type name. -func (s *ResourceNotFoundException) Code() string { - return "ResourceNotFoundException" -} - -// Message returns the exception's message. -func (s *ResourceNotFoundException) Message() string { - if s.Message_ != nil { - return *s.Message_ - } - return "" -} - -// OrigErr always returns nil, satisfies awserr.Error interface. -func (s *ResourceNotFoundException) OrigErr() error { - return nil -} - -func (s *ResourceNotFoundException) Error() string { - return fmt.Sprintf("%s: %s", s.Code(), s.Message()) -} - -// Status code returns the HTTP status code for the request's response error. -func (s *ResourceNotFoundException) StatusCode() int { - return s.RespMetadata.StatusCode -} - -// RequestID returns the service's response RequestID for request. -func (s *ResourceNotFoundException) RequestID() string { - return s.RespMetadata.RequestID -} - -// The configuration section. -type Section struct { - _ struct{} `type:"structure"` - - // The name of the section. - Name *string `min:"1" type:"string"` - - // The size, in bytes, of the section contents. - Size *int64 `type:"integer"` -} - -// String returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s Section) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s Section) GoString() string { - return s.String() -} - -// SetName sets the Name field's value. -func (s *Section) SetName(v string) *Section { - s.Name = &v - return s -} - -// SetSize sets the Size field's value. -func (s *Section) SetSize(v int64) *Section { - s.Size = &v - return s -} - -// A single modification to the configuration section. -type SectionModification struct { - _ struct{} `type:"structure"` - - // The operation to be performed on a configuration section. - // - // Content can be added, deleted, or replaced within a section. - // - // Operation is a required field - Operation *string `type:"string" required:"true" enum:"Operation"` - - // The path within the section content to be modified. - // - // Path is a required field - Path *string `min:"1" type:"string" required:"true"` - - // The name of the section to be modified. - // - // Section is a required field - Section *string `min:"1" type:"string" required:"true"` -} - -// String returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s SectionModification) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s SectionModification) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *SectionModification) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "SectionModification"} - if s.Operation == nil { - invalidParams.Add(request.NewErrParamRequired("Operation")) - } - if s.Path == nil { - invalidParams.Add(request.NewErrParamRequired("Path")) - } - if s.Path != nil && len(*s.Path) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Path", 1)) - } - if s.Section == nil { - invalidParams.Add(request.NewErrParamRequired("Section")) - } - if s.Section != nil && len(*s.Section) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Section", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// SetOperation sets the Operation field's value. -func (s *SectionModification) SetOperation(v string) *SectionModification { - s.Operation = &v - return s -} - -// SetPath sets the Path field's value. -func (s *SectionModification) SetPath(v string) *SectionModification { - s.Path = &v - return s -} - -// SetSection sets the Section field's value. -func (s *SectionModification) SetSection(v string) *SectionModification { - s.Section = &v - return s -} - -// The request would result in exceeding service quota. -type ServiceQuotaExceededException struct { - _ struct{} `type:"structure"` - RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` - - Message_ *string `locationName:"Message" type:"string"` -} - -// String returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s ServiceQuotaExceededException) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s ServiceQuotaExceededException) GoString() string { - return s.String() -} - -func newErrorServiceQuotaExceededException(v protocol.ResponseMetadata) error { - return &ServiceQuotaExceededException{ - RespMetadata: v, - } -} - -// Code returns the exception type name. -func (s *ServiceQuotaExceededException) Code() string { - return "ServiceQuotaExceededException" -} - -// Message returns the exception's message. -func (s *ServiceQuotaExceededException) Message() string { - if s.Message_ != nil { - return *s.Message_ - } - return "" -} - -// OrigErr always returns nil, satisfies awserr.Error interface. -func (s *ServiceQuotaExceededException) OrigErr() error { - return nil -} - -func (s *ServiceQuotaExceededException) Error() string { - return fmt.Sprintf("%s: %s", s.Code(), s.Message()) -} - -// Status code returns the HTTP status code for the request's response error. -func (s *ServiceQuotaExceededException) StatusCode() int { - return s.RespMetadata.StatusCode -} - -// RequestID returns the service's response RequestID for request. -func (s *ServiceQuotaExceededException) RequestID() string { - return s.RespMetadata.RequestID -} - -// Properties that provide details of a snapshot. -type SnapshotDetails struct { - _ struct{} `type:"structure"` - - // The timestamp of when the snapshot was created. - Created *time.Time `type:"timestamp" timestampFormat:"iso8601"` - - // The description of the snapshot. - Description *string `type:"string"` - - // The identifier of the snapshot. - Id *string `min:"33" type:"string"` - - // The timestamp of when the snapshot was last updated. - LastUpdated *time.Time `type:"timestamp" timestampFormat:"iso8601"` - - // The sections in the snapshot. - Sections map[string]*Section `type:"map"` -} - -// String returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s SnapshotDetails) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s SnapshotDetails) GoString() string { - return s.String() -} - -// SetCreated sets the Created field's value. -func (s *SnapshotDetails) SetCreated(v time.Time) *SnapshotDetails { - s.Created = &v - return s -} - -// SetDescription sets the Description field's value. -func (s *SnapshotDetails) SetDescription(v string) *SnapshotDetails { - s.Description = &v - return s -} - -// SetId sets the Id field's value. -func (s *SnapshotDetails) SetId(v string) *SnapshotDetails { - s.Id = &v - return s -} - -// SetLastUpdated sets the LastUpdated field's value. -func (s *SnapshotDetails) SetLastUpdated(v time.Time) *SnapshotDetails { - s.LastUpdated = &v - return s -} - -// SetSections sets the Sections field's value. -func (s *SnapshotDetails) SetSections(v map[string]*Section) *SnapshotDetails { - s.Sections = v - return s -} - -// The summary of the properties of a snapshot. -type SnapshotSummary struct { - _ struct{} `type:"structure"` - - // The timestamp of when the snapshot was created. - Created *time.Time `type:"timestamp" timestampFormat:"iso8601"` - - // The description of the snapshot. - Description *string `type:"string"` - - // The identifier of the snapshot. - Id *string `min:"33" type:"string"` - - // Then timestamp of when the snapshot was last updated. - LastUpdated *time.Time `type:"timestamp" timestampFormat:"iso8601"` -} - -// String returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s SnapshotSummary) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s SnapshotSummary) GoString() string { - return s.String() -} - -// SetCreated sets the Created field's value. -func (s *SnapshotSummary) SetCreated(v time.Time) *SnapshotSummary { - s.Created = &v - return s -} - -// SetDescription sets the Description field's value. -func (s *SnapshotSummary) SetDescription(v string) *SnapshotSummary { - s.Description = &v - return s -} - -// SetId sets the Id field's value. -func (s *SnapshotSummary) SetId(v string) *SnapshotSummary { - s.Id = &v - return s -} - -// SetLastUpdated sets the LastUpdated field's value. -func (s *SnapshotSummary) SetLastUpdated(v time.Time) *SnapshotSummary { - s.LastUpdated = &v - return s -} - -// Properties that provide details of a stage deployment. -type StageDeploymentDetails struct { - _ struct{} `type:"structure"` - - // The timestamp of when the stage deployment was created. - Created *time.Time `type:"timestamp" timestampFormat:"iso8601"` - - // The type of action of the stage deployment. - DeploymentAction *string `type:"string" enum:"DeploymentAction"` - - // The identifier of the deployment. - DeploymentId *string `min:"1" type:"string"` - - // The result of the deployment. - DeploymentResult *DeploymentResult `type:"structure"` - - // The state of the deployment. - DeploymentState *string `type:"string" enum:"DeploymentState"` - - // The timestamp of when the deployment was last updated. - LastUpdated *time.Time `type:"timestamp" timestampFormat:"iso8601"` - - // The identifier of the snapshot associated with the stage deployment. - SnapshotId *string `min:"33" type:"string"` -} - -// String returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s StageDeploymentDetails) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s StageDeploymentDetails) GoString() string { - return s.String() -} - -// SetCreated sets the Created field's value. -func (s *StageDeploymentDetails) SetCreated(v time.Time) *StageDeploymentDetails { - s.Created = &v - return s -} - -// SetDeploymentAction sets the DeploymentAction field's value. -func (s *StageDeploymentDetails) SetDeploymentAction(v string) *StageDeploymentDetails { - s.DeploymentAction = &v - return s -} - -// SetDeploymentId sets the DeploymentId field's value. -func (s *StageDeploymentDetails) SetDeploymentId(v string) *StageDeploymentDetails { - s.DeploymentId = &v - return s -} - -// SetDeploymentResult sets the DeploymentResult field's value. -func (s *StageDeploymentDetails) SetDeploymentResult(v *DeploymentResult) *StageDeploymentDetails { - s.DeploymentResult = v - return s -} - -// SetDeploymentState sets the DeploymentState field's value. -func (s *StageDeploymentDetails) SetDeploymentState(v string) *StageDeploymentDetails { - s.DeploymentState = &v - return s -} - -// SetLastUpdated sets the LastUpdated field's value. -func (s *StageDeploymentDetails) SetLastUpdated(v time.Time) *StageDeploymentDetails { - s.LastUpdated = &v - return s -} - -// SetSnapshotId sets the SnapshotId field's value. -func (s *StageDeploymentDetails) SetSnapshotId(v string) *StageDeploymentDetails { - s.SnapshotId = &v - return s -} - -// The summary of the properties of a stage deployment. -type StageDeploymentSummary struct { - _ struct{} `type:"structure"` - - // The type of action of the deployment. - DeploymentAction *string `type:"string" enum:"DeploymentAction"` - - // The identifier of the deployment. - DeploymentId *string `min:"1" type:"string"` - - // The result of the deployment. - DeploymentResult *DeploymentResult `type:"structure"` - - // The state of the deployment. - DeploymentState *string `type:"string" enum:"DeploymentState"` - - // The timestamp of when the deployment was last updated. - LastUpdated *time.Time `type:"timestamp" timestampFormat:"iso8601"` - - // The identifier of the snapshot associated with the stage deployment. - SnapshotId *string `min:"33" type:"string"` -} - -// String returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s StageDeploymentSummary) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s StageDeploymentSummary) GoString() string { - return s.String() -} - -// SetDeploymentAction sets the DeploymentAction field's value. -func (s *StageDeploymentSummary) SetDeploymentAction(v string) *StageDeploymentSummary { - s.DeploymentAction = &v - return s -} - -// SetDeploymentId sets the DeploymentId field's value. -func (s *StageDeploymentSummary) SetDeploymentId(v string) *StageDeploymentSummary { - s.DeploymentId = &v - return s -} - -// SetDeploymentResult sets the DeploymentResult field's value. -func (s *StageDeploymentSummary) SetDeploymentResult(v *DeploymentResult) *StageDeploymentSummary { - s.DeploymentResult = v - return s -} - -// SetDeploymentState sets the DeploymentState field's value. -func (s *StageDeploymentSummary) SetDeploymentState(v string) *StageDeploymentSummary { - s.DeploymentState = &v - return s -} - -// SetLastUpdated sets the LastUpdated field's value. -func (s *StageDeploymentSummary) SetLastUpdated(v time.Time) *StageDeploymentSummary { - s.LastUpdated = &v - return s -} - -// SetSnapshotId sets the SnapshotId field's value. -func (s *StageDeploymentSummary) SetSnapshotId(v string) *StageDeploymentSummary { - s.SnapshotId = &v - return s -} - -// Properties that provide details of a stage. -type StageDetails struct { - _ struct{} `type:"structure"` - - // The Amazon Resource Name (ARN) of the stage. - Arn *string `min:"20" type:"string"` - - // The timestamp of when the stage was created. - Created *time.Time `type:"timestamp" timestampFormat:"iso8601"` - - // The description of the stage. - Description *string `type:"string"` - - // The game key associated with the stage. - // - // The game key is a unique identifier that the game client uses to connect - // to the GameSparks backend. - GameKey *string `min:"1" type:"string"` - - // The timestamp of when the stage was last updated. - LastUpdated *time.Time `type:"timestamp" timestampFormat:"iso8601"` - - // The Amazon CloudWatch log group for game runtimes deployed to the stage. - LogGroup *string `min:"1" type:"string"` - - // The name of the stage. - Name *string `min:"1" type:"string"` - - // The Amazon Resource Name (ARN) of the role used to run the game runtimes - // deployed to the stage. - Role *string `min:"20" type:"string"` - - // The state of the stage. - State *string `type:"string" enum:"StageState"` - - // The tags associated with the stage. - Tags map[string]*string `min:"1" type:"map"` -} - -// String returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s StageDetails) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s StageDetails) GoString() string { - return s.String() -} - -// SetArn sets the Arn field's value. -func (s *StageDetails) SetArn(v string) *StageDetails { - s.Arn = &v - return s -} - -// SetCreated sets the Created field's value. -func (s *StageDetails) SetCreated(v time.Time) *StageDetails { - s.Created = &v - return s -} - -// SetDescription sets the Description field's value. -func (s *StageDetails) SetDescription(v string) *StageDetails { - s.Description = &v - return s -} - -// SetGameKey sets the GameKey field's value. -func (s *StageDetails) SetGameKey(v string) *StageDetails { - s.GameKey = &v - return s -} - -// SetLastUpdated sets the LastUpdated field's value. -func (s *StageDetails) SetLastUpdated(v time.Time) *StageDetails { - s.LastUpdated = &v - return s -} - -// SetLogGroup sets the LogGroup field's value. -func (s *StageDetails) SetLogGroup(v string) *StageDetails { - s.LogGroup = &v - return s -} - -// SetName sets the Name field's value. -func (s *StageDetails) SetName(v string) *StageDetails { - s.Name = &v - return s -} - -// SetRole sets the Role field's value. -func (s *StageDetails) SetRole(v string) *StageDetails { - s.Role = &v - return s -} - -// SetState sets the State field's value. -func (s *StageDetails) SetState(v string) *StageDetails { - s.State = &v - return s -} - -// SetTags sets the Tags field's value. -func (s *StageDetails) SetTags(v map[string]*string) *StageDetails { - s.Tags = v - return s -} - -// The summary of the properties of a stage. -type StageSummary struct { - _ struct{} `type:"structure"` - - // The description of the stage. - Description *string `type:"string"` - - // The game key associated with the stage. - // - // The game key is a unique identifier that the game client uses to connect - // to the GameSparks backend. - GameKey *string `min:"1" type:"string"` - - // The name of the stage. - Name *string `min:"1" type:"string"` - - // The state of the stage. - State *string `type:"string" enum:"StageState"` - - // The tags associated with the stage. - Tags map[string]*string `min:"1" type:"map"` -} - -// String returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s StageSummary) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s StageSummary) GoString() string { - return s.String() -} - -// SetDescription sets the Description field's value. -func (s *StageSummary) SetDescription(v string) *StageSummary { - s.Description = &v - return s -} - -// SetGameKey sets the GameKey field's value. -func (s *StageSummary) SetGameKey(v string) *StageSummary { - s.GameKey = &v - return s -} - -// SetName sets the Name field's value. -func (s *StageSummary) SetName(v string) *StageSummary { - s.Name = &v - return s -} - -// SetState sets the State field's value. -func (s *StageSummary) SetState(v string) *StageSummary { - s.State = &v - return s -} - -// SetTags sets the Tags field's value. -func (s *StageSummary) SetTags(v map[string]*string) *StageSummary { - s.Tags = v - return s -} - -type StartGeneratedCodeJobInput struct { - _ struct{} `type:"structure"` - - // The name of the game. - // - // GameName is a required field - GameName *string `location:"uri" locationName:"GameName" min:"1" type:"string" required:"true"` - - // Properties of the generator to use for the job. - // - // Generator is a required field - Generator *Generator `type:"structure" required:"true"` - - // The identifier of the snapshot for which to generate code. - // - // SnapshotId is a required field - SnapshotId *string `location:"uri" locationName:"SnapshotId" min:"33" type:"string" required:"true"` -} - -// String returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s StartGeneratedCodeJobInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s StartGeneratedCodeJobInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *StartGeneratedCodeJobInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "StartGeneratedCodeJobInput"} - if s.GameName == nil { - invalidParams.Add(request.NewErrParamRequired("GameName")) - } - if s.GameName != nil && len(*s.GameName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("GameName", 1)) - } - if s.Generator == nil { - invalidParams.Add(request.NewErrParamRequired("Generator")) - } - if s.SnapshotId == nil { - invalidParams.Add(request.NewErrParamRequired("SnapshotId")) - } - if s.SnapshotId != nil && len(*s.SnapshotId) < 33 { - invalidParams.Add(request.NewErrParamMinLen("SnapshotId", 33)) - } - if s.Generator != nil { - if err := s.Generator.Validate(); err != nil { - invalidParams.AddNested("Generator", err.(request.ErrInvalidParams)) - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// SetGameName sets the GameName field's value. -func (s *StartGeneratedCodeJobInput) SetGameName(v string) *StartGeneratedCodeJobInput { - s.GameName = &v - return s -} - -// SetGenerator sets the Generator field's value. -func (s *StartGeneratedCodeJobInput) SetGenerator(v *Generator) *StartGeneratedCodeJobInput { - s.Generator = v - return s -} - -// SetSnapshotId sets the SnapshotId field's value. -func (s *StartGeneratedCodeJobInput) SetSnapshotId(v string) *StartGeneratedCodeJobInput { - s.SnapshotId = &v - return s -} - -type StartGeneratedCodeJobOutput struct { - _ struct{} `type:"structure"` - - // The identifier of the code generation job. You can use this identifier in - // the GetGeneratedCodeJob operation. - GeneratedCodeJobId *string `type:"string"` -} - -// String returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s StartGeneratedCodeJobOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s StartGeneratedCodeJobOutput) GoString() string { - return s.String() -} - -// SetGeneratedCodeJobId sets the GeneratedCodeJobId field's value. -func (s *StartGeneratedCodeJobOutput) SetGeneratedCodeJobId(v string) *StartGeneratedCodeJobOutput { - s.GeneratedCodeJobId = &v - return s -} - -type StartStageDeploymentInput struct { - _ struct{} `type:"structure"` - - // A client-defined token. With an active client token in the request, this - // action is idempotent. - ClientToken *string `min:"33" type:"string"` - - // The name of the game. - // - // GameName is a required field - GameName *string `location:"uri" locationName:"GameName" min:"1" type:"string" required:"true"` - - // The identifier of the snapshot to deploy. - // - // SnapshotId is a required field - SnapshotId *string `min:"33" type:"string" required:"true"` - - // The name of the stage to deploy the snapshot onto. - // - // StageName is a required field - StageName *string `location:"uri" locationName:"StageName" min:"1" type:"string" required:"true"` -} - -// String returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s StartStageDeploymentInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s StartStageDeploymentInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *StartStageDeploymentInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "StartStageDeploymentInput"} - if s.ClientToken != nil && len(*s.ClientToken) < 33 { - invalidParams.Add(request.NewErrParamMinLen("ClientToken", 33)) - } - if s.GameName == nil { - invalidParams.Add(request.NewErrParamRequired("GameName")) - } - if s.GameName != nil && len(*s.GameName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("GameName", 1)) - } - if s.SnapshotId == nil { - invalidParams.Add(request.NewErrParamRequired("SnapshotId")) - } - if s.SnapshotId != nil && len(*s.SnapshotId) < 33 { - invalidParams.Add(request.NewErrParamMinLen("SnapshotId", 33)) - } - if s.StageName == nil { - invalidParams.Add(request.NewErrParamRequired("StageName")) - } - if s.StageName != nil && len(*s.StageName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("StageName", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// SetClientToken sets the ClientToken field's value. -func (s *StartStageDeploymentInput) SetClientToken(v string) *StartStageDeploymentInput { - s.ClientToken = &v - return s -} - -// SetGameName sets the GameName field's value. -func (s *StartStageDeploymentInput) SetGameName(v string) *StartStageDeploymentInput { - s.GameName = &v - return s -} - -// SetSnapshotId sets the SnapshotId field's value. -func (s *StartStageDeploymentInput) SetSnapshotId(v string) *StartStageDeploymentInput { - s.SnapshotId = &v - return s -} - -// SetStageName sets the StageName field's value. -func (s *StartStageDeploymentInput) SetStageName(v string) *StartStageDeploymentInput { - s.StageName = &v - return s -} - -type StartStageDeploymentOutput struct { - _ struct{} `type:"structure"` - - // Properties that describe the stage deployment. - StageDeployment *StageDeploymentDetails `type:"structure"` -} - -// String returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s StartStageDeploymentOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s StartStageDeploymentOutput) GoString() string { - return s.String() -} - -// SetStageDeployment sets the StageDeployment field's value. -func (s *StartStageDeploymentOutput) SetStageDeployment(v *StageDeploymentDetails) *StartStageDeploymentOutput { - s.StageDeployment = v - return s -} - -type TagResourceInput struct { - _ struct{} `type:"structure"` - - // The Amazon Resource Name (ARN) of the resource to add the tags to. - // - // ResourceArn is a required field - ResourceArn *string `location:"uri" locationName:"ResourceArn" min:"20" type:"string" required:"true"` - - // The tags to add to the resource. - // - // Tags is a required field - Tags map[string]*string `locationName:"tags" min:"1" type:"map" required:"true"` -} - -// String returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s TagResourceInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s TagResourceInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *TagResourceInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "TagResourceInput"} - if s.ResourceArn == nil { - invalidParams.Add(request.NewErrParamRequired("ResourceArn")) - } - if s.ResourceArn != nil && len(*s.ResourceArn) < 20 { - invalidParams.Add(request.NewErrParamMinLen("ResourceArn", 20)) - } - if s.Tags == nil { - invalidParams.Add(request.NewErrParamRequired("Tags")) - } - if s.Tags != nil && len(s.Tags) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Tags", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// SetResourceArn sets the ResourceArn field's value. -func (s *TagResourceInput) SetResourceArn(v string) *TagResourceInput { - s.ResourceArn = &v - return s -} - -// SetTags sets the Tags field's value. -func (s *TagResourceInput) SetTags(v map[string]*string) *TagResourceInput { - s.Tags = v - return s -} - -type TagResourceOutput struct { - _ struct{} `type:"structure"` -} - -// String returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s TagResourceOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s TagResourceOutput) GoString() string { - return s.String() -} - -// The request throughput limit was exceeded. -type ThrottlingException struct { - _ struct{} `type:"structure"` - RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` - - Message_ *string `locationName:"Message" type:"string"` -} - -// String returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s ThrottlingException) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s ThrottlingException) GoString() string { - return s.String() -} - -func newErrorThrottlingException(v protocol.ResponseMetadata) error { - return &ThrottlingException{ - RespMetadata: v, - } -} - -// Code returns the exception type name. -func (s *ThrottlingException) Code() string { - return "ThrottlingException" -} - -// Message returns the exception's message. -func (s *ThrottlingException) Message() string { - if s.Message_ != nil { - return *s.Message_ - } - return "" -} - -// OrigErr always returns nil, satisfies awserr.Error interface. -func (s *ThrottlingException) OrigErr() error { - return nil -} - -func (s *ThrottlingException) Error() string { - return fmt.Sprintf("%s: %s", s.Code(), s.Message()) -} - -// Status code returns the HTTP status code for the request's response error. -func (s *ThrottlingException) StatusCode() int { - return s.RespMetadata.StatusCode -} - -// RequestID returns the service's response RequestID for request. -func (s *ThrottlingException) RequestID() string { - return s.RespMetadata.RequestID -} - -type UntagResourceInput struct { - _ struct{} `type:"structure" nopayload:"true"` - - // The Amazon Resource Name (ARN) of the resource to remove the tags from. - // - // ResourceArn is a required field - ResourceArn *string `location:"uri" locationName:"ResourceArn" min:"20" type:"string" required:"true"` - - // The keys of the tags to remove. - // - // TagKeys is a required field - TagKeys []*string `location:"querystring" locationName:"tagKeys" min:"1" type:"list" required:"true"` -} - -// String returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s UntagResourceInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s UntagResourceInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *UntagResourceInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "UntagResourceInput"} - if s.ResourceArn == nil { - invalidParams.Add(request.NewErrParamRequired("ResourceArn")) - } - if s.ResourceArn != nil && len(*s.ResourceArn) < 20 { - invalidParams.Add(request.NewErrParamMinLen("ResourceArn", 20)) - } - if s.TagKeys == nil { - invalidParams.Add(request.NewErrParamRequired("TagKeys")) - } - if s.TagKeys != nil && len(s.TagKeys) < 1 { - invalidParams.Add(request.NewErrParamMinLen("TagKeys", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// SetResourceArn sets the ResourceArn field's value. -func (s *UntagResourceInput) SetResourceArn(v string) *UntagResourceInput { - s.ResourceArn = &v - return s -} - -// SetTagKeys sets the TagKeys field's value. -func (s *UntagResourceInput) SetTagKeys(v []*string) *UntagResourceInput { - s.TagKeys = v - return s -} - -type UntagResourceOutput struct { - _ struct{} `type:"structure"` -} - -// String returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s UntagResourceOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s UntagResourceOutput) GoString() string { - return s.String() -} - -type UpdateGameConfigurationInput struct { - _ struct{} `type:"structure"` - - // The name of the game. - // - // GameName is a required field - GameName *string `location:"uri" locationName:"GameName" min:"1" type:"string" required:"true"` - - // The list of modifications to make. - // - // Modifications is a required field - Modifications []*SectionModification `min:"1" type:"list" required:"true"` -} - -// String returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s UpdateGameConfigurationInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s UpdateGameConfigurationInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *UpdateGameConfigurationInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "UpdateGameConfigurationInput"} - if s.GameName == nil { - invalidParams.Add(request.NewErrParamRequired("GameName")) - } - if s.GameName != nil && len(*s.GameName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("GameName", 1)) - } - if s.Modifications == nil { - invalidParams.Add(request.NewErrParamRequired("Modifications")) - } - if s.Modifications != nil && len(s.Modifications) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Modifications", 1)) - } - if s.Modifications != nil { - for i, v := range s.Modifications { - if v == nil { - continue - } - if err := v.Validate(); err != nil { - invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Modifications", i), err.(request.ErrInvalidParams)) - } - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// SetGameName sets the GameName field's value. -func (s *UpdateGameConfigurationInput) SetGameName(v string) *UpdateGameConfigurationInput { - s.GameName = &v - return s -} - -// SetModifications sets the Modifications field's value. -func (s *UpdateGameConfigurationInput) SetModifications(v []*SectionModification) *UpdateGameConfigurationInput { - s.Modifications = v - return s -} - -type UpdateGameConfigurationOutput struct { - _ struct{} `type:"structure"` - - // Details about the game configuration. - GameConfiguration *GameConfigurationDetails `type:"structure"` -} - -// String returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s UpdateGameConfigurationOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s UpdateGameConfigurationOutput) GoString() string { - return s.String() -} - -// SetGameConfiguration sets the GameConfiguration field's value. -func (s *UpdateGameConfigurationOutput) SetGameConfiguration(v *GameConfigurationDetails) *UpdateGameConfigurationOutput { - s.GameConfiguration = v - return s -} - -type UpdateGameInput struct { - _ struct{} `type:"structure"` - - // The description of the game. - Description *string `type:"string"` - - // The name of the game. - // - // GameName is a required field - GameName *string `location:"uri" locationName:"GameName" min:"1" type:"string" required:"true"` -} - -// String returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s UpdateGameInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s UpdateGameInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *UpdateGameInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "UpdateGameInput"} - if s.GameName == nil { - invalidParams.Add(request.NewErrParamRequired("GameName")) - } - if s.GameName != nil && len(*s.GameName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("GameName", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// SetDescription sets the Description field's value. -func (s *UpdateGameInput) SetDescription(v string) *UpdateGameInput { - s.Description = &v - return s -} - -// SetGameName sets the GameName field's value. -func (s *UpdateGameInput) SetGameName(v string) *UpdateGameInput { - s.GameName = &v - return s -} - -type UpdateGameOutput struct { - _ struct{} `type:"structure"` - - // The details of the game. - Game *GameDetails `type:"structure"` -} - -// String returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s UpdateGameOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s UpdateGameOutput) GoString() string { - return s.String() -} - -// SetGame sets the Game field's value. -func (s *UpdateGameOutput) SetGame(v *GameDetails) *UpdateGameOutput { - s.Game = v - return s -} - -type UpdateSnapshotInput struct { - _ struct{} `type:"structure"` - - // The description of the snapshot. - Description *string `type:"string"` - - // The name of the game. - // - // GameName is a required field - GameName *string `location:"uri" locationName:"GameName" min:"1" type:"string" required:"true"` - - // The identifier of the snapshot. - // - // SnapshotId is a required field - SnapshotId *string `location:"uri" locationName:"SnapshotId" min:"33" type:"string" required:"true"` -} - -// String returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s UpdateSnapshotInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s UpdateSnapshotInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *UpdateSnapshotInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "UpdateSnapshotInput"} - if s.GameName == nil { - invalidParams.Add(request.NewErrParamRequired("GameName")) - } - if s.GameName != nil && len(*s.GameName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("GameName", 1)) - } - if s.SnapshotId == nil { - invalidParams.Add(request.NewErrParamRequired("SnapshotId")) - } - if s.SnapshotId != nil && len(*s.SnapshotId) < 33 { - invalidParams.Add(request.NewErrParamMinLen("SnapshotId", 33)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// SetDescription sets the Description field's value. -func (s *UpdateSnapshotInput) SetDescription(v string) *UpdateSnapshotInput { - s.Description = &v - return s -} - -// SetGameName sets the GameName field's value. -func (s *UpdateSnapshotInput) SetGameName(v string) *UpdateSnapshotInput { - s.GameName = &v - return s -} - -// SetSnapshotId sets the SnapshotId field's value. -func (s *UpdateSnapshotInput) SetSnapshotId(v string) *UpdateSnapshotInput { - s.SnapshotId = &v - return s -} - -type UpdateSnapshotOutput struct { - _ struct{} `type:"structure"` - - // Properties that provide details of the updated snapshot. - Snapshot *SnapshotDetails `type:"structure"` -} - -// String returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s UpdateSnapshotOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s UpdateSnapshotOutput) GoString() string { - return s.String() -} - -// SetSnapshot sets the Snapshot field's value. -func (s *UpdateSnapshotOutput) SetSnapshot(v *SnapshotDetails) *UpdateSnapshotOutput { - s.Snapshot = v - return s -} - -type UpdateStageInput struct { - _ struct{} `type:"structure"` - - // The description of the stage. - Description *string `type:"string"` - - // The name of the game. - // - // GameName is a required field - GameName *string `location:"uri" locationName:"GameName" min:"1" type:"string" required:"true"` - - // The Amazon Resource Name (ARN) of the role to use for the game snapshots - // deployed to this stage. - Role *string `min:"20" type:"string"` - - // The name of the stage. - // - // StageName is a required field - StageName *string `location:"uri" locationName:"StageName" min:"1" type:"string" required:"true"` -} - -// String returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s UpdateStageInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s UpdateStageInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *UpdateStageInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "UpdateStageInput"} - if s.GameName == nil { - invalidParams.Add(request.NewErrParamRequired("GameName")) - } - if s.GameName != nil && len(*s.GameName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("GameName", 1)) - } - if s.Role != nil && len(*s.Role) < 20 { - invalidParams.Add(request.NewErrParamMinLen("Role", 20)) - } - if s.StageName == nil { - invalidParams.Add(request.NewErrParamRequired("StageName")) - } - if s.StageName != nil && len(*s.StageName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("StageName", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// SetDescription sets the Description field's value. -func (s *UpdateStageInput) SetDescription(v string) *UpdateStageInput { - s.Description = &v - return s -} - -// SetGameName sets the GameName field's value. -func (s *UpdateStageInput) SetGameName(v string) *UpdateStageInput { - s.GameName = &v - return s -} - -// SetRole sets the Role field's value. -func (s *UpdateStageInput) SetRole(v string) *UpdateStageInput { - s.Role = &v - return s -} - -// SetStageName sets the StageName field's value. -func (s *UpdateStageInput) SetStageName(v string) *UpdateStageInput { - s.StageName = &v - return s -} - -type UpdateStageOutput struct { - _ struct{} `type:"structure"` - - // Properties that provide details of the updated stage. - Stage *StageDetails `type:"structure"` -} - -// String returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s UpdateStageOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s UpdateStageOutput) GoString() string { - return s.String() -} - -// SetStage sets the Stage field's value. -func (s *UpdateStageOutput) SetStage(v *StageDetails) *UpdateStageOutput { - s.Stage = v - return s -} - -// One of the parameters in the request is invalid. -type ValidationException struct { - _ struct{} `type:"structure"` - RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` - - Message_ *string `locationName:"Message" type:"string"` -} - -// String returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s ValidationException) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s ValidationException) GoString() string { - return s.String() -} - -func newErrorValidationException(v protocol.ResponseMetadata) error { - return &ValidationException{ - RespMetadata: v, - } -} - -// Code returns the exception type name. -func (s *ValidationException) Code() string { - return "ValidationException" -} - -// Message returns the exception's message. -func (s *ValidationException) Message() string { - if s.Message_ != nil { - return *s.Message_ - } - return "" -} - -// OrigErr always returns nil, satisfies awserr.Error interface. -func (s *ValidationException) OrigErr() error { - return nil -} - -func (s *ValidationException) Error() string { - return fmt.Sprintf("%s: %s", s.Code(), s.Message()) -} - -// Status code returns the HTTP status code for the request's response error. -func (s *ValidationException) StatusCode() int { - return s.RespMetadata.StatusCode -} - -// RequestID returns the service's response RequestID for request. -func (s *ValidationException) RequestID() string { - return s.RespMetadata.RequestID -} - -const ( - // DeploymentActionDeploy is a DeploymentAction enum value - DeploymentActionDeploy = "DEPLOY" - - // DeploymentActionUndeploy is a DeploymentAction enum value - DeploymentActionUndeploy = "UNDEPLOY" -) - -// DeploymentAction_Values returns all elements of the DeploymentAction enum -func DeploymentAction_Values() []string { - return []string{ - DeploymentActionDeploy, - DeploymentActionUndeploy, - } -} - -const ( - // DeploymentStatePending is a DeploymentState enum value - DeploymentStatePending = "PENDING" - - // DeploymentStateInProgress is a DeploymentState enum value - DeploymentStateInProgress = "IN_PROGRESS" - - // DeploymentStateCompleted is a DeploymentState enum value - DeploymentStateCompleted = "COMPLETED" - - // DeploymentStateFailed is a DeploymentState enum value - DeploymentStateFailed = "FAILED" -) - -// DeploymentState_Values returns all elements of the DeploymentState enum -func DeploymentState_Values() []string { - return []string{ - DeploymentStatePending, - DeploymentStateInProgress, - DeploymentStateCompleted, - DeploymentStateFailed, - } -} - -const ( - // GameStateActive is a GameState enum value - GameStateActive = "ACTIVE" - - // GameStateDeleting is a GameState enum value - GameStateDeleting = "DELETING" -) - -// GameState_Values returns all elements of the GameState enum -func GameState_Values() []string { - return []string{ - GameStateActive, - GameStateDeleting, - } -} - -const ( - // GeneratedCodeJobStateInProgress is a GeneratedCodeJobState enum value - GeneratedCodeJobStateInProgress = "IN_PROGRESS" - - // GeneratedCodeJobStateCompleted is a GeneratedCodeJobState enum value - GeneratedCodeJobStateCompleted = "COMPLETED" - - // GeneratedCodeJobStateFailed is a GeneratedCodeJobState enum value - GeneratedCodeJobStateFailed = "FAILED" - - // GeneratedCodeJobStatePending is a GeneratedCodeJobState enum value - GeneratedCodeJobStatePending = "PENDING" -) - -// GeneratedCodeJobState_Values returns all elements of the GeneratedCodeJobState enum -func GeneratedCodeJobState_Values() []string { - return []string{ - GeneratedCodeJobStateInProgress, - GeneratedCodeJobStateCompleted, - GeneratedCodeJobStateFailed, - GeneratedCodeJobStatePending, - } -} - -const ( - // OperationAdd is a Operation enum value - OperationAdd = "ADD" - - // OperationRemove is a Operation enum value - OperationRemove = "REMOVE" - - // OperationReplace is a Operation enum value - OperationReplace = "REPLACE" -) - -// Operation_Values returns all elements of the Operation enum -func Operation_Values() []string { - return []string{ - OperationAdd, - OperationRemove, - OperationReplace, - } -} - -const ( - // ResultCodeSuccess is a ResultCode enum value - ResultCodeSuccess = "SUCCESS" - - // ResultCodeInvalidRoleFailure is a ResultCode enum value - ResultCodeInvalidRoleFailure = "INVALID_ROLE_FAILURE" - - // ResultCodeUnspecifiedFailure is a ResultCode enum value - ResultCodeUnspecifiedFailure = "UNSPECIFIED_FAILURE" -) - -// ResultCode_Values returns all elements of the ResultCode enum -func ResultCode_Values() []string { - return []string{ - ResultCodeSuccess, - ResultCodeInvalidRoleFailure, - ResultCodeUnspecifiedFailure, - } -} - -const ( - // StageStateActive is a StageState enum value - StageStateActive = "ACTIVE" - - // StageStateDeleting is a StageState enum value - StageStateDeleting = "DELETING" -) - -// StageState_Values returns all elements of the StageState enum -func StageState_Values() []string { - return []string{ - StageStateActive, - StageStateDeleting, - } -} diff --git a/service/gamesparks/doc.go b/service/gamesparks/doc.go deleted file mode 100644 index 2a1c6b6186..0000000000 --- a/service/gamesparks/doc.go +++ /dev/null @@ -1,26 +0,0 @@ -// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. - -// Package gamesparks provides the client and types for making API -// requests to GameSparks. -// -// See https://docs.aws.amazon.com/goto/WebAPI/gamesparks-2021-08-17 for more information on this service. -// -// See gamesparks package documentation for more information. -// https://docs.aws.amazon.com/sdk-for-go/api/service/gamesparks/ -// -// # Using the Client -// -// To contact GameSparks with the SDK use the New function to create -// a new service client. With that client you can make API requests to the service. -// These clients are safe to use concurrently. -// -// See the SDK's documentation for more information on how to use the SDK. -// https://docs.aws.amazon.com/sdk-for-go/api/ -// -// See aws.Config documentation for more information on configuring SDK clients. -// https://docs.aws.amazon.com/sdk-for-go/api/aws/#Config -// -// See the GameSparks client GameSparks for more -// information on creating client for this service. -// https://docs.aws.amazon.com/sdk-for-go/api/service/gamesparks/#New -package gamesparks diff --git a/service/gamesparks/errors.go b/service/gamesparks/errors.go deleted file mode 100644 index 17dd624428..0000000000 --- a/service/gamesparks/errors.go +++ /dev/null @@ -1,62 +0,0 @@ -// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. - -package gamesparks - -import ( - "github.com/aws/aws-sdk-go/private/protocol" -) - -const ( - - // ErrCodeAccessDeniedException for service response error code - // "AccessDeniedException". - // - // You do not have sufficient access to perform this action. - ErrCodeAccessDeniedException = "AccessDeniedException" - - // ErrCodeConflictException for service response error code - // "ConflictException". - // - // The resource already exists, or another operation is in progress. - ErrCodeConflictException = "ConflictException" - - // ErrCodeInternalServerException for service response error code - // "InternalServerException". - // - // The service encountered an internal error. - ErrCodeInternalServerException = "InternalServerException" - - // ErrCodeResourceNotFoundException for service response error code - // "ResourceNotFoundException". - // - // The resource specified in the request does not exist. - ErrCodeResourceNotFoundException = "ResourceNotFoundException" - - // ErrCodeServiceQuotaExceededException for service response error code - // "ServiceQuotaExceededException". - // - // The request would result in exceeding service quota. - ErrCodeServiceQuotaExceededException = "ServiceQuotaExceededException" - - // ErrCodeThrottlingException for service response error code - // "ThrottlingException". - // - // The request throughput limit was exceeded. - ErrCodeThrottlingException = "ThrottlingException" - - // ErrCodeValidationException for service response error code - // "ValidationException". - // - // One of the parameters in the request is invalid. - ErrCodeValidationException = "ValidationException" -) - -var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{ - "AccessDeniedException": newErrorAccessDeniedException, - "ConflictException": newErrorConflictException, - "InternalServerException": newErrorInternalServerException, - "ResourceNotFoundException": newErrorResourceNotFoundException, - "ServiceQuotaExceededException": newErrorServiceQuotaExceededException, - "ThrottlingException": newErrorThrottlingException, - "ValidationException": newErrorValidationException, -} diff --git a/service/gamesparks/gamesparksiface/interface.go b/service/gamesparks/gamesparksiface/interface.go deleted file mode 100644 index 1b592605f5..0000000000 --- a/service/gamesparks/gamesparksiface/interface.go +++ /dev/null @@ -1,217 +0,0 @@ -// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. - -// Package gamesparksiface provides an interface to enable mocking the GameSparks service client -// for testing your code. -// -// It is important to note that this interface will have breaking changes -// when the service model is updated and adds new API operations, paginators, -// and waiters. -package gamesparksiface - -import ( - "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/request" - "github.com/aws/aws-sdk-go/service/gamesparks" -) - -// GameSparksAPI provides an interface to enable mocking the -// gamesparks.GameSparks service client's API operation, -// paginators, and waiters. This make unit testing your code that calls out -// to the SDK's service client's calls easier. -// -// The best way to use this interface is so the SDK's service client's calls -// can be stubbed out for unit testing your code with the SDK without needing -// to inject custom request handlers into the SDK's request pipeline. -// -// // myFunc uses an SDK service client to make a request to -// // GameSparks. -// func myFunc(svc gamesparksiface.GameSparksAPI) bool { -// // Make svc.CreateGame request -// } -// -// func main() { -// sess := session.New() -// svc := gamesparks.New(sess) -// -// myFunc(svc) -// } -// -// In your _test.go file: -// -// // Define a mock struct to be used in your unit tests of myFunc. -// type mockGameSparksClient struct { -// gamesparksiface.GameSparksAPI -// } -// func (m *mockGameSparksClient) CreateGame(input *gamesparks.CreateGameInput) (*gamesparks.CreateGameOutput, error) { -// // mock response/functionality -// } -// -// func TestMyFunc(t *testing.T) { -// // Setup Test -// mockSvc := &mockGameSparksClient{} -// -// myfunc(mockSvc) -// -// // Verify myFunc's functionality -// } -// -// It is important to note that this interface will have breaking changes -// when the service model is updated and adds new API operations, paginators, -// and waiters. Its suggested to use the pattern above for testing, or using -// tooling to generate mocks to satisfy the interfaces. -type GameSparksAPI interface { - CreateGame(*gamesparks.CreateGameInput) (*gamesparks.CreateGameOutput, error) - CreateGameWithContext(aws.Context, *gamesparks.CreateGameInput, ...request.Option) (*gamesparks.CreateGameOutput, error) - CreateGameRequest(*gamesparks.CreateGameInput) (*request.Request, *gamesparks.CreateGameOutput) - - CreateSnapshot(*gamesparks.CreateSnapshotInput) (*gamesparks.CreateSnapshotOutput, error) - CreateSnapshotWithContext(aws.Context, *gamesparks.CreateSnapshotInput, ...request.Option) (*gamesparks.CreateSnapshotOutput, error) - CreateSnapshotRequest(*gamesparks.CreateSnapshotInput) (*request.Request, *gamesparks.CreateSnapshotOutput) - - CreateStage(*gamesparks.CreateStageInput) (*gamesparks.CreateStageOutput, error) - CreateStageWithContext(aws.Context, *gamesparks.CreateStageInput, ...request.Option) (*gamesparks.CreateStageOutput, error) - CreateStageRequest(*gamesparks.CreateStageInput) (*request.Request, *gamesparks.CreateStageOutput) - - DeleteGame(*gamesparks.DeleteGameInput) (*gamesparks.DeleteGameOutput, error) - DeleteGameWithContext(aws.Context, *gamesparks.DeleteGameInput, ...request.Option) (*gamesparks.DeleteGameOutput, error) - DeleteGameRequest(*gamesparks.DeleteGameInput) (*request.Request, *gamesparks.DeleteGameOutput) - - DeleteStage(*gamesparks.DeleteStageInput) (*gamesparks.DeleteStageOutput, error) - DeleteStageWithContext(aws.Context, *gamesparks.DeleteStageInput, ...request.Option) (*gamesparks.DeleteStageOutput, error) - DeleteStageRequest(*gamesparks.DeleteStageInput) (*request.Request, *gamesparks.DeleteStageOutput) - - DisconnectPlayer(*gamesparks.DisconnectPlayerInput) (*gamesparks.DisconnectPlayerOutput, error) - DisconnectPlayerWithContext(aws.Context, *gamesparks.DisconnectPlayerInput, ...request.Option) (*gamesparks.DisconnectPlayerOutput, error) - DisconnectPlayerRequest(*gamesparks.DisconnectPlayerInput) (*request.Request, *gamesparks.DisconnectPlayerOutput) - - ExportSnapshot(*gamesparks.ExportSnapshotInput) (*gamesparks.ExportSnapshotOutput, error) - ExportSnapshotWithContext(aws.Context, *gamesparks.ExportSnapshotInput, ...request.Option) (*gamesparks.ExportSnapshotOutput, error) - ExportSnapshotRequest(*gamesparks.ExportSnapshotInput) (*request.Request, *gamesparks.ExportSnapshotOutput) - - GetExtension(*gamesparks.GetExtensionInput) (*gamesparks.GetExtensionOutput, error) - GetExtensionWithContext(aws.Context, *gamesparks.GetExtensionInput, ...request.Option) (*gamesparks.GetExtensionOutput, error) - GetExtensionRequest(*gamesparks.GetExtensionInput) (*request.Request, *gamesparks.GetExtensionOutput) - - GetExtensionVersion(*gamesparks.GetExtensionVersionInput) (*gamesparks.GetExtensionVersionOutput, error) - GetExtensionVersionWithContext(aws.Context, *gamesparks.GetExtensionVersionInput, ...request.Option) (*gamesparks.GetExtensionVersionOutput, error) - GetExtensionVersionRequest(*gamesparks.GetExtensionVersionInput) (*request.Request, *gamesparks.GetExtensionVersionOutput) - - GetGame(*gamesparks.GetGameInput) (*gamesparks.GetGameOutput, error) - GetGameWithContext(aws.Context, *gamesparks.GetGameInput, ...request.Option) (*gamesparks.GetGameOutput, error) - GetGameRequest(*gamesparks.GetGameInput) (*request.Request, *gamesparks.GetGameOutput) - - GetGameConfiguration(*gamesparks.GetGameConfigurationInput) (*gamesparks.GetGameConfigurationOutput, error) - GetGameConfigurationWithContext(aws.Context, *gamesparks.GetGameConfigurationInput, ...request.Option) (*gamesparks.GetGameConfigurationOutput, error) - GetGameConfigurationRequest(*gamesparks.GetGameConfigurationInput) (*request.Request, *gamesparks.GetGameConfigurationOutput) - - GetGeneratedCodeJob(*gamesparks.GetGeneratedCodeJobInput) (*gamesparks.GetGeneratedCodeJobOutput, error) - GetGeneratedCodeJobWithContext(aws.Context, *gamesparks.GetGeneratedCodeJobInput, ...request.Option) (*gamesparks.GetGeneratedCodeJobOutput, error) - GetGeneratedCodeJobRequest(*gamesparks.GetGeneratedCodeJobInput) (*request.Request, *gamesparks.GetGeneratedCodeJobOutput) - - GetPlayerConnectionStatus(*gamesparks.GetPlayerConnectionStatusInput) (*gamesparks.GetPlayerConnectionStatusOutput, error) - GetPlayerConnectionStatusWithContext(aws.Context, *gamesparks.GetPlayerConnectionStatusInput, ...request.Option) (*gamesparks.GetPlayerConnectionStatusOutput, error) - GetPlayerConnectionStatusRequest(*gamesparks.GetPlayerConnectionStatusInput) (*request.Request, *gamesparks.GetPlayerConnectionStatusOutput) - - GetSnapshot(*gamesparks.GetSnapshotInput) (*gamesparks.GetSnapshotOutput, error) - GetSnapshotWithContext(aws.Context, *gamesparks.GetSnapshotInput, ...request.Option) (*gamesparks.GetSnapshotOutput, error) - GetSnapshotRequest(*gamesparks.GetSnapshotInput) (*request.Request, *gamesparks.GetSnapshotOutput) - - GetStage(*gamesparks.GetStageInput) (*gamesparks.GetStageOutput, error) - GetStageWithContext(aws.Context, *gamesparks.GetStageInput, ...request.Option) (*gamesparks.GetStageOutput, error) - GetStageRequest(*gamesparks.GetStageInput) (*request.Request, *gamesparks.GetStageOutput) - - GetStageDeployment(*gamesparks.GetStageDeploymentInput) (*gamesparks.GetStageDeploymentOutput, error) - GetStageDeploymentWithContext(aws.Context, *gamesparks.GetStageDeploymentInput, ...request.Option) (*gamesparks.GetStageDeploymentOutput, error) - GetStageDeploymentRequest(*gamesparks.GetStageDeploymentInput) (*request.Request, *gamesparks.GetStageDeploymentOutput) - - ImportGameConfiguration(*gamesparks.ImportGameConfigurationInput) (*gamesparks.ImportGameConfigurationOutput, error) - ImportGameConfigurationWithContext(aws.Context, *gamesparks.ImportGameConfigurationInput, ...request.Option) (*gamesparks.ImportGameConfigurationOutput, error) - ImportGameConfigurationRequest(*gamesparks.ImportGameConfigurationInput) (*request.Request, *gamesparks.ImportGameConfigurationOutput) - - ListExtensionVersions(*gamesparks.ListExtensionVersionsInput) (*gamesparks.ListExtensionVersionsOutput, error) - ListExtensionVersionsWithContext(aws.Context, *gamesparks.ListExtensionVersionsInput, ...request.Option) (*gamesparks.ListExtensionVersionsOutput, error) - ListExtensionVersionsRequest(*gamesparks.ListExtensionVersionsInput) (*request.Request, *gamesparks.ListExtensionVersionsOutput) - - ListExtensionVersionsPages(*gamesparks.ListExtensionVersionsInput, func(*gamesparks.ListExtensionVersionsOutput, bool) bool) error - ListExtensionVersionsPagesWithContext(aws.Context, *gamesparks.ListExtensionVersionsInput, func(*gamesparks.ListExtensionVersionsOutput, bool) bool, ...request.Option) error - - ListExtensions(*gamesparks.ListExtensionsInput) (*gamesparks.ListExtensionsOutput, error) - ListExtensionsWithContext(aws.Context, *gamesparks.ListExtensionsInput, ...request.Option) (*gamesparks.ListExtensionsOutput, error) - ListExtensionsRequest(*gamesparks.ListExtensionsInput) (*request.Request, *gamesparks.ListExtensionsOutput) - - ListExtensionsPages(*gamesparks.ListExtensionsInput, func(*gamesparks.ListExtensionsOutput, bool) bool) error - ListExtensionsPagesWithContext(aws.Context, *gamesparks.ListExtensionsInput, func(*gamesparks.ListExtensionsOutput, bool) bool, ...request.Option) error - - ListGames(*gamesparks.ListGamesInput) (*gamesparks.ListGamesOutput, error) - ListGamesWithContext(aws.Context, *gamesparks.ListGamesInput, ...request.Option) (*gamesparks.ListGamesOutput, error) - ListGamesRequest(*gamesparks.ListGamesInput) (*request.Request, *gamesparks.ListGamesOutput) - - ListGamesPages(*gamesparks.ListGamesInput, func(*gamesparks.ListGamesOutput, bool) bool) error - ListGamesPagesWithContext(aws.Context, *gamesparks.ListGamesInput, func(*gamesparks.ListGamesOutput, bool) bool, ...request.Option) error - - ListGeneratedCodeJobs(*gamesparks.ListGeneratedCodeJobsInput) (*gamesparks.ListGeneratedCodeJobsOutput, error) - ListGeneratedCodeJobsWithContext(aws.Context, *gamesparks.ListGeneratedCodeJobsInput, ...request.Option) (*gamesparks.ListGeneratedCodeJobsOutput, error) - ListGeneratedCodeJobsRequest(*gamesparks.ListGeneratedCodeJobsInput) (*request.Request, *gamesparks.ListGeneratedCodeJobsOutput) - - ListGeneratedCodeJobsPages(*gamesparks.ListGeneratedCodeJobsInput, func(*gamesparks.ListGeneratedCodeJobsOutput, bool) bool) error - ListGeneratedCodeJobsPagesWithContext(aws.Context, *gamesparks.ListGeneratedCodeJobsInput, func(*gamesparks.ListGeneratedCodeJobsOutput, bool) bool, ...request.Option) error - - ListSnapshots(*gamesparks.ListSnapshotsInput) (*gamesparks.ListSnapshotsOutput, error) - ListSnapshotsWithContext(aws.Context, *gamesparks.ListSnapshotsInput, ...request.Option) (*gamesparks.ListSnapshotsOutput, error) - ListSnapshotsRequest(*gamesparks.ListSnapshotsInput) (*request.Request, *gamesparks.ListSnapshotsOutput) - - ListSnapshotsPages(*gamesparks.ListSnapshotsInput, func(*gamesparks.ListSnapshotsOutput, bool) bool) error - ListSnapshotsPagesWithContext(aws.Context, *gamesparks.ListSnapshotsInput, func(*gamesparks.ListSnapshotsOutput, bool) bool, ...request.Option) error - - ListStageDeployments(*gamesparks.ListStageDeploymentsInput) (*gamesparks.ListStageDeploymentsOutput, error) - ListStageDeploymentsWithContext(aws.Context, *gamesparks.ListStageDeploymentsInput, ...request.Option) (*gamesparks.ListStageDeploymentsOutput, error) - ListStageDeploymentsRequest(*gamesparks.ListStageDeploymentsInput) (*request.Request, *gamesparks.ListStageDeploymentsOutput) - - ListStageDeploymentsPages(*gamesparks.ListStageDeploymentsInput, func(*gamesparks.ListStageDeploymentsOutput, bool) bool) error - ListStageDeploymentsPagesWithContext(aws.Context, *gamesparks.ListStageDeploymentsInput, func(*gamesparks.ListStageDeploymentsOutput, bool) bool, ...request.Option) error - - ListStages(*gamesparks.ListStagesInput) (*gamesparks.ListStagesOutput, error) - ListStagesWithContext(aws.Context, *gamesparks.ListStagesInput, ...request.Option) (*gamesparks.ListStagesOutput, error) - ListStagesRequest(*gamesparks.ListStagesInput) (*request.Request, *gamesparks.ListStagesOutput) - - ListStagesPages(*gamesparks.ListStagesInput, func(*gamesparks.ListStagesOutput, bool) bool) error - ListStagesPagesWithContext(aws.Context, *gamesparks.ListStagesInput, func(*gamesparks.ListStagesOutput, bool) bool, ...request.Option) error - - ListTagsForResource(*gamesparks.ListTagsForResourceInput) (*gamesparks.ListTagsForResourceOutput, error) - ListTagsForResourceWithContext(aws.Context, *gamesparks.ListTagsForResourceInput, ...request.Option) (*gamesparks.ListTagsForResourceOutput, error) - ListTagsForResourceRequest(*gamesparks.ListTagsForResourceInput) (*request.Request, *gamesparks.ListTagsForResourceOutput) - - StartGeneratedCodeJob(*gamesparks.StartGeneratedCodeJobInput) (*gamesparks.StartGeneratedCodeJobOutput, error) - StartGeneratedCodeJobWithContext(aws.Context, *gamesparks.StartGeneratedCodeJobInput, ...request.Option) (*gamesparks.StartGeneratedCodeJobOutput, error) - StartGeneratedCodeJobRequest(*gamesparks.StartGeneratedCodeJobInput) (*request.Request, *gamesparks.StartGeneratedCodeJobOutput) - - StartStageDeployment(*gamesparks.StartStageDeploymentInput) (*gamesparks.StartStageDeploymentOutput, error) - StartStageDeploymentWithContext(aws.Context, *gamesparks.StartStageDeploymentInput, ...request.Option) (*gamesparks.StartStageDeploymentOutput, error) - StartStageDeploymentRequest(*gamesparks.StartStageDeploymentInput) (*request.Request, *gamesparks.StartStageDeploymentOutput) - - TagResource(*gamesparks.TagResourceInput) (*gamesparks.TagResourceOutput, error) - TagResourceWithContext(aws.Context, *gamesparks.TagResourceInput, ...request.Option) (*gamesparks.TagResourceOutput, error) - TagResourceRequest(*gamesparks.TagResourceInput) (*request.Request, *gamesparks.TagResourceOutput) - - UntagResource(*gamesparks.UntagResourceInput) (*gamesparks.UntagResourceOutput, error) - UntagResourceWithContext(aws.Context, *gamesparks.UntagResourceInput, ...request.Option) (*gamesparks.UntagResourceOutput, error) - UntagResourceRequest(*gamesparks.UntagResourceInput) (*request.Request, *gamesparks.UntagResourceOutput) - - UpdateGame(*gamesparks.UpdateGameInput) (*gamesparks.UpdateGameOutput, error) - UpdateGameWithContext(aws.Context, *gamesparks.UpdateGameInput, ...request.Option) (*gamesparks.UpdateGameOutput, error) - UpdateGameRequest(*gamesparks.UpdateGameInput) (*request.Request, *gamesparks.UpdateGameOutput) - - UpdateGameConfiguration(*gamesparks.UpdateGameConfigurationInput) (*gamesparks.UpdateGameConfigurationOutput, error) - UpdateGameConfigurationWithContext(aws.Context, *gamesparks.UpdateGameConfigurationInput, ...request.Option) (*gamesparks.UpdateGameConfigurationOutput, error) - UpdateGameConfigurationRequest(*gamesparks.UpdateGameConfigurationInput) (*request.Request, *gamesparks.UpdateGameConfigurationOutput) - - UpdateSnapshot(*gamesparks.UpdateSnapshotInput) (*gamesparks.UpdateSnapshotOutput, error) - UpdateSnapshotWithContext(aws.Context, *gamesparks.UpdateSnapshotInput, ...request.Option) (*gamesparks.UpdateSnapshotOutput, error) - UpdateSnapshotRequest(*gamesparks.UpdateSnapshotInput) (*request.Request, *gamesparks.UpdateSnapshotOutput) - - UpdateStage(*gamesparks.UpdateStageInput) (*gamesparks.UpdateStageOutput, error) - UpdateStageWithContext(aws.Context, *gamesparks.UpdateStageInput, ...request.Option) (*gamesparks.UpdateStageOutput, error) - UpdateStageRequest(*gamesparks.UpdateStageInput) (*request.Request, *gamesparks.UpdateStageOutput) -} - -var _ GameSparksAPI = (*gamesparks.GameSparks)(nil) diff --git a/service/gamesparks/service.go b/service/gamesparks/service.go deleted file mode 100644 index 72099fc507..0000000000 --- a/service/gamesparks/service.go +++ /dev/null @@ -1,106 +0,0 @@ -// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. - -package gamesparks - -import ( - "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/client" - "github.com/aws/aws-sdk-go/aws/client/metadata" - "github.com/aws/aws-sdk-go/aws/request" - "github.com/aws/aws-sdk-go/aws/signer/v4" - "github.com/aws/aws-sdk-go/private/protocol" - "github.com/aws/aws-sdk-go/private/protocol/restjson" -) - -// GameSparks provides the API operation methods for making requests to -// GameSparks. See this package's package overview docs -// for details on the service. -// -// GameSparks methods are safe to use concurrently. It is not safe to -// modify mutate any of the struct's properties though. -type GameSparks struct { - *client.Client -} - -// Used for custom client initialization logic -var initClient func(*client.Client) - -// Used for custom request initialization logic -var initRequest func(*request.Request) - -// Service information constants -const ( - ServiceName = "GameSparks" // Name of service. - EndpointsID = "gamesparks" // ID to lookup a service endpoint with. - ServiceID = "GameSparks" // ServiceID is a unique identifier of a specific service. -) - -// New creates a new instance of the GameSparks client with a session. -// If additional configuration is needed for the client instance use the optional -// aws.Config parameter to add your extra config. -// -// Example: -// -// mySession := session.Must(session.NewSession()) -// -// // Create a GameSparks client from just a session. -// svc := gamesparks.New(mySession) -// -// // Create a GameSparks client with additional configuration -// svc := gamesparks.New(mySession, aws.NewConfig().WithRegion("us-west-2")) -func New(p client.ConfigProvider, cfgs ...*aws.Config) *GameSparks { - c := p.ClientConfig(EndpointsID, cfgs...) - if c.SigningNameDerived || len(c.SigningName) == 0 { - c.SigningName = "gamesparks" - } - return newClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName, c.ResolvedRegion) -} - -// newClient creates, initializes and returns a new service client instance. -func newClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, signingRegion, signingName, resolvedRegion string) *GameSparks { - svc := &GameSparks{ - Client: client.New( - cfg, - metadata.ClientInfo{ - ServiceName: ServiceName, - ServiceID: ServiceID, - SigningName: signingName, - SigningRegion: signingRegion, - PartitionID: partitionID, - Endpoint: endpoint, - APIVersion: "2021-08-17", - ResolvedRegion: resolvedRegion, - }, - handlers, - ), - } - - // Handlers - svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler) - svc.Handlers.Build.PushBackNamed(restjson.BuildHandler) - svc.Handlers.Unmarshal.PushBackNamed(restjson.UnmarshalHandler) - svc.Handlers.UnmarshalMeta.PushBackNamed(restjson.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed( - protocol.NewUnmarshalErrorHandler(restjson.NewUnmarshalTypedError(exceptionFromCode)).NamedHandler(), - ) - - // Run custom client initialization if present - if initClient != nil { - initClient(svc.Client) - } - - return svc -} - -// newRequest creates a new request for a GameSparks operation and runs any -// custom request initialization. -func (c *GameSparks) newRequest(op *request.Operation, params, data interface{}) *request.Request { - req := c.NewRequest(op, params, data) - - // Run custom request initialization if present - if initRequest != nil { - initRequest(req) - } - - return req -}