Struct aws_sdk_gamesparks::client::Client
source · pub struct Client { /* private fields */ }
Expand description
Client for GameSparks
Client for invoking operations on GameSparks. Each operation on GameSparks is a method on this
this struct. .send()
MUST be invoked on the generated operations to dispatch the request to the service.
Constructing a Client
A Config
is required to construct a client. For most use cases, the aws-config
crate should be used to automatically resolve this config using
aws_config::load_from_env()
, since this will resolve an SdkConfig
which can be shared
across multiple different AWS SDK clients. This config resolution process can be customized
by calling aws_config::from_env()
instead, which returns a ConfigLoader
that uses
the builder pattern to customize the default config.
In the simplest case, creating a client looks as follows:
let config = aws_config::load_from_env().await;
let client = aws_sdk_gamesparks::Client::new(&config);
Occasionally, SDKs may have additional service-specific that can be set on the Config
that
is absent from SdkConfig
, or slightly different settings for a specific client may be desired.
The Config
struct implements From<&SdkConfig>
, so setting these specific settings can be
done as follows:
let sdk_config = ::aws_config::load_from_env().await;
let config = aws_sdk_gamesparks::config::Builder::from(&sdk_config)
.some_service_specific_setting("value")
.build();
See the aws-config
docs and Config
for more information on customizing configuration.
Note: Client construction is expensive due to connection thread pool initialization, and should be done once at application start-up.
Using the Client
A client has a function for every operation that can be performed by the service.
For example, the CreateGame
operation has
a Client::create_game
, function which returns a builder for that operation.
The fluent builder ultimately has a send()
function that returns an async future that
returns a result, as illustrated below:
let result = client.create_game()
.game_name("example")
.send()
.await;
The underlying HTTP requests that get made by this can be modified with the customize_operation
function on the fluent builder. See the customize
module for more
information.
Implementations§
source§impl Client
impl Client
sourcepub fn create_game(&self) -> CreateGameFluentBuilder
pub fn create_game(&self) -> CreateGameFluentBuilder
Constructs a fluent builder for the CreateGame
operation.
- The fluent builder is configurable:
game_name(impl Into<String>)
/set_game_name(Option<String>)
:The name of the game.
description(impl Into<String>)
/set_description(Option<String>)
:The description of the game.
client_token(impl Into<String>)
/set_client_token(Option<String>)
:A client-defined token. With an active client token in the request, this action is idempotent.
tags(impl Into<String>, impl Into<String>)
/set_tags(Option<HashMap<String, String>>)
:The list of tags to apply to the game.
- On success, responds with
CreateGameOutput
with field(s):game(Option<GameDetails>)
:Details about the game that was created.
- On failure, responds with
SdkError<CreateGameError>
source§impl Client
impl Client
sourcepub fn create_snapshot(&self) -> CreateSnapshotFluentBuilder
pub fn create_snapshot(&self) -> CreateSnapshotFluentBuilder
Constructs a fluent builder for the CreateSnapshot
operation.
- The fluent builder is configurable:
game_name(impl Into<String>)
/set_game_name(Option<String>)
:The name of the game.
description(impl Into<String>)
/set_description(Option<String>)
:The description of the snapshot.
- On success, responds with
CreateSnapshotOutput
with field(s):snapshot(Option<SnapshotDetails>)
:Properties that provide details of the created snapshot.
- On failure, responds with
SdkError<CreateSnapshotError>
source§impl Client
impl Client
sourcepub fn create_stage(&self) -> CreateStageFluentBuilder
pub fn create_stage(&self) -> CreateStageFluentBuilder
Constructs a fluent builder for the CreateStage
operation.
- The fluent builder is configurable:
game_name(impl Into<String>)
/set_game_name(Option<String>)
:The name of the game.
stage_name(impl Into<String>)
/set_stage_name(Option<String>)
:The name of the stage.
role(impl Into<String>)
/set_role(Option<String>)
: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.
description(impl Into<String>)
/set_description(Option<String>)
:The description of the stage.
client_token(impl Into<String>)
/set_client_token(Option<String>)
:A client-defined token. With an active client token in the request, this action is idempotent.
tags(impl Into<String>, impl Into<String>)
/set_tags(Option<HashMap<String, String>>)
:The list of tags to apply to the stage.
- On success, responds with
CreateStageOutput
with field(s):stage(Option<StageDetails>)
:Properties that describe the stage.
- On failure, responds with
SdkError<CreateStageError>
source§impl Client
impl Client
sourcepub fn delete_game(&self) -> DeleteGameFluentBuilder
pub fn delete_game(&self) -> DeleteGameFluentBuilder
Constructs a fluent builder for the DeleteGame
operation.
- The fluent builder is configurable:
game_name(impl Into<String>)
/set_game_name(Option<String>)
:The name of the game to delete.
- On success, responds with
DeleteGameOutput
- On failure, responds with
SdkError<DeleteGameError>
source§impl Client
impl Client
sourcepub fn delete_stage(&self) -> DeleteStageFluentBuilder
pub fn delete_stage(&self) -> DeleteStageFluentBuilder
Constructs a fluent builder for the DeleteStage
operation.
- The fluent builder is configurable:
game_name(impl Into<String>)
/set_game_name(Option<String>)
:The name of the game.
stage_name(impl Into<String>)
/set_stage_name(Option<String>)
:The name of the stage to delete.
- On success, responds with
DeleteStageOutput
- On failure, responds with
SdkError<DeleteStageError>
source§impl Client
impl Client
sourcepub fn disconnect_player(&self) -> DisconnectPlayerFluentBuilder
pub fn disconnect_player(&self) -> DisconnectPlayerFluentBuilder
Constructs a fluent builder for the DisconnectPlayer
operation.
- The fluent builder is configurable:
player_id(impl Into<String>)
/set_player_id(Option<String>)
:The unique identifier representing a player.
game_name(impl Into<String>)
/set_game_name(Option<String>)
:The name of the game.
stage_name(impl Into<String>)
/set_stage_name(Option<String>)
:The name of the stage.
- On success, responds with
DisconnectPlayerOutput
with field(s):disconnect_successes(Option<Vec<String>>)
:The list of the connection ids that were disconnected.
disconnect_failures(Option<Vec<String>>)
:The list of the connection ids that could not be disconnected.
- On failure, responds with
SdkError<DisconnectPlayerError>
source§impl Client
impl Client
sourcepub fn export_snapshot(&self) -> ExportSnapshotFluentBuilder
pub fn export_snapshot(&self) -> ExportSnapshotFluentBuilder
Constructs a fluent builder for the ExportSnapshot
operation.
- The fluent builder is configurable:
game_name(impl Into<String>)
/set_game_name(Option<String>)
:The name of the game.
snapshot_id(impl Into<String>)
/set_snapshot_id(Option<String>)
:The identifier of the snapshot to export.
- On success, responds with
ExportSnapshotOutput
with field(s):s3_url(Option<String>)
: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.
- On failure, responds with
SdkError<ExportSnapshotError>
source§impl Client
impl Client
sourcepub fn get_extension(&self) -> GetExtensionFluentBuilder
pub fn get_extension(&self) -> GetExtensionFluentBuilder
Constructs a fluent builder for the GetExtension
operation.
- The fluent builder is configurable:
namespace(impl Into<String>)
/set_namespace(Option<String>)
:The namespace (qualifier) of the extension.
name(impl Into<String>)
/set_name(Option<String>)
:The name of the extension.
- On success, responds with
GetExtensionOutput
with field(s):extension(Option<ExtensionDetails>)
:Details about the extension.
- On failure, responds with
SdkError<GetExtensionError>
source§impl Client
impl Client
sourcepub fn get_extension_version(&self) -> GetExtensionVersionFluentBuilder
pub fn get_extension_version(&self) -> GetExtensionVersionFluentBuilder
Constructs a fluent builder for the GetExtensionVersion
operation.
- The fluent builder is configurable:
namespace(impl Into<String>)
/set_namespace(Option<String>)
:The namespace (qualifier) of the extension.
name(impl Into<String>)
/set_name(Option<String>)
:The name of the extension.
extension_version(impl Into<String>)
/set_extension_version(Option<String>)
:The version of the extension.
- On success, responds with
GetExtensionVersionOutput
with field(s):extension_version(Option<ExtensionVersionDetails>)
:The version of the extension.
- On failure, responds with
SdkError<GetExtensionVersionError>
source§impl Client
impl Client
sourcepub fn get_game(&self) -> GetGameFluentBuilder
pub fn get_game(&self) -> GetGameFluentBuilder
Constructs a fluent builder for the GetGame
operation.
- The fluent builder is configurable:
game_name(impl Into<String>)
/set_game_name(Option<String>)
:The name of the game.
- On success, responds with
GetGameOutput
with field(s):game(Option<GameDetails>)
:The details of the game.
- On failure, responds with
SdkError<GetGameError>
source§impl Client
impl Client
sourcepub fn get_game_configuration(&self) -> GetGameConfigurationFluentBuilder
pub fn get_game_configuration(&self) -> GetGameConfigurationFluentBuilder
Constructs a fluent builder for the GetGameConfiguration
operation.
- The fluent builder is configurable:
game_name(impl Into<String>)
/set_game_name(Option<String>)
:The name of the game.
sections(impl Into<String>)
/set_sections(Option<Vec<String>>)
:The list of sections to return.
- On success, responds with
GetGameConfigurationOutput
with field(s):game_configuration(Option<GameConfigurationDetails>)
:Details about the game configuration.
- On failure, responds with
SdkError<GetGameConfigurationError>
source§impl Client
impl Client
sourcepub fn get_generated_code_job(&self) -> GetGeneratedCodeJobFluentBuilder
pub fn get_generated_code_job(&self) -> GetGeneratedCodeJobFluentBuilder
Constructs a fluent builder for the GetGeneratedCodeJob
operation.
- The fluent builder is configurable:
game_name(impl Into<String>)
/set_game_name(Option<String>)
:The name of the game.
snapshot_id(impl Into<String>)
/set_snapshot_id(Option<String>)
:The identifier of the snapshot for the code generation job.
job_id(impl Into<String>)
/set_job_id(Option<String>)
:The identifier of the code generation job.
- On success, responds with
GetGeneratedCodeJobOutput
with field(s):generated_code_job(Option<GeneratedCodeJobDetails>)
:Details about the generated code job.
- On failure, responds with
SdkError<GetGeneratedCodeJobError>
source§impl Client
impl Client
sourcepub fn get_player_connection_status(
&self
) -> GetPlayerConnectionStatusFluentBuilder
pub fn get_player_connection_status( &self ) -> GetPlayerConnectionStatusFluentBuilder
Constructs a fluent builder for the GetPlayerConnectionStatus
operation.
- The fluent builder is configurable:
player_id(impl Into<String>)
/set_player_id(Option<String>)
:The unique identifier representing a player.
game_name(impl Into<String>)
/set_game_name(Option<String>)
:The name of the game.
stage_name(impl Into<String>)
/set_stage_name(Option<String>)
:The name of the stage.
- On success, responds with
GetPlayerConnectionStatusOutput
with field(s):connections(Option<Vec<Connection>>)
:The list of connection ids, one for each connection in use by the player.
- On failure, responds with
SdkError<GetPlayerConnectionStatusError>
source§impl Client
impl Client
sourcepub fn get_snapshot(&self) -> GetSnapshotFluentBuilder
pub fn get_snapshot(&self) -> GetSnapshotFluentBuilder
Constructs a fluent builder for the GetSnapshot
operation.
- The fluent builder is configurable:
game_name(impl Into<String>)
/set_game_name(Option<String>)
:The name of the game.
snapshot_id(impl Into<String>)
/set_snapshot_id(Option<String>)
:The identifier of the snapshot.
sections(impl Into<String>)
/set_sections(Option<Vec<String>>)
:The list of game configuration sections to be described.
- On success, responds with
GetSnapshotOutput
with field(s):snapshot(Option<SnapshotDetails>)
:Properties that provide details of the snapshot.
- On failure, responds with
SdkError<GetSnapshotError>
source§impl Client
impl Client
sourcepub fn get_stage(&self) -> GetStageFluentBuilder
pub fn get_stage(&self) -> GetStageFluentBuilder
Constructs a fluent builder for the GetStage
operation.
- The fluent builder is configurable:
game_name(impl Into<String>)
/set_game_name(Option<String>)
:The name of the game.
stage_name(impl Into<String>)
/set_stage_name(Option<String>)
:The name of the stage.
- On success, responds with
GetStageOutput
with field(s):stage(Option<StageDetails>)
:Properties that provide details of the stage.
- On failure, responds with
SdkError<GetStageError>
source§impl Client
impl Client
sourcepub fn get_stage_deployment(&self) -> GetStageDeploymentFluentBuilder
pub fn get_stage_deployment(&self) -> GetStageDeploymentFluentBuilder
Constructs a fluent builder for the GetStageDeployment
operation.
- The fluent builder is configurable:
game_name(impl Into<String>)
/set_game_name(Option<String>)
:The name of the game.
stage_name(impl Into<String>)
/set_stage_name(Option<String>)
:The name of the stage.
deployment_id(impl Into<String>)
/set_deployment_id(Option<String>)
:The identifier of the stage deployment.
StartStageDeployment
returns the identifier that you use here.
- On success, responds with
GetStageDeploymentOutput
with field(s):stage_deployment(Option<StageDeploymentDetails>)
:Properties that provide details of the stage deployment.
- On failure, responds with
SdkError<GetStageDeploymentError>
source§impl Client
impl Client
sourcepub fn import_game_configuration(&self) -> ImportGameConfigurationFluentBuilder
pub fn import_game_configuration(&self) -> ImportGameConfigurationFluentBuilder
Constructs a fluent builder for the ImportGameConfiguration
operation.
- The fluent builder is configurable:
game_name(impl Into<String>)
/set_game_name(Option<String>)
:The name of the game.
import_source(ImportGameConfigurationSource)
/set_import_source(Option<ImportGameConfigurationSource>)
:The source used to import configuration sections.
- On success, responds with
ImportGameConfigurationOutput
with field(s):game_configuration(Option<GameConfigurationDetails>)
:Details about the game configuration.
- On failure, responds with
SdkError<ImportGameConfigurationError>
source§impl Client
impl Client
sourcepub fn list_extension_versions(&self) -> ListExtensionVersionsFluentBuilder
pub fn list_extension_versions(&self) -> ListExtensionVersionsFluentBuilder
Constructs a fluent builder for the ListExtensionVersions
operation.
This operation supports pagination; See into_paginator()
.
- The fluent builder is configurable:
namespace(impl Into<String>)
/set_namespace(Option<String>)
:The namespace (qualifier) of the extension.
name(impl Into<String>)
/set_name(Option<String>)
:The name of the extension.
next_token(impl Into<String>)
/set_next_token(Option<String>)
: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.
max_results(i32)
/set_max_results(Option<i32>)
:The maximum number of results to return.
Use this parameter with NextToken to get results as a set of sequential pages.
- On success, responds with
ListExtensionVersionsOutput
with field(s):extension_versions(Option<Vec<ExtensionVersionDetails>>)
:The list of extension versions.
next_token(Option<String>)
: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.
- On failure, responds with
SdkError<ListExtensionVersionsError>
source§impl Client
impl Client
sourcepub fn list_extensions(&self) -> ListExtensionsFluentBuilder
pub fn list_extensions(&self) -> ListExtensionsFluentBuilder
Constructs a fluent builder for the ListExtensions
operation.
This operation supports pagination; See into_paginator()
.
- The fluent builder is configurable:
max_results(i32)
/set_max_results(Option<i32>)
:The maximum number of results to return.
Use this parameter with NextToken to get results as a set of sequential pages.
next_token(impl Into<String>)
/set_next_token(Option<String>)
: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.
- On success, responds with
ListExtensionsOutput
with field(s):extensions(Option<Vec<ExtensionDetails>>)
:The list of extensions.
next_token(Option<String>)
: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.
- On failure, responds with
SdkError<ListExtensionsError>
source§impl Client
impl Client
sourcepub fn list_games(&self) -> ListGamesFluentBuilder
pub fn list_games(&self) -> ListGamesFluentBuilder
Constructs a fluent builder for the ListGames
operation.
This operation supports pagination; See into_paginator()
.
- The fluent builder is configurable:
max_results(i32)
/set_max_results(Option<i32>)
:The maximum number of results to return.
Use this parameter with NextToken to get results as a set of sequential pages.
next_token(impl Into<String>)
/set_next_token(Option<String>)
: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.
- On success, responds with
ListGamesOutput
with field(s):games(Option<Vec<GameSummary>>)
:The list of games.
next_token(Option<String>)
: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.
- On failure, responds with
SdkError<ListGamesError>
source§impl Client
impl Client
sourcepub fn list_generated_code_jobs(&self) -> ListGeneratedCodeJobsFluentBuilder
pub fn list_generated_code_jobs(&self) -> ListGeneratedCodeJobsFluentBuilder
Constructs a fluent builder for the ListGeneratedCodeJobs
operation.
This operation supports pagination; See into_paginator()
.
- The fluent builder is configurable:
game_name(impl Into<String>)
/set_game_name(Option<String>)
:The name of the game.
snapshot_id(impl Into<String>)
/set_snapshot_id(Option<String>)
:The identifier of the snapshot.
max_results(i32)
/set_max_results(Option<i32>)
:The maximum number of results to return.
Use this parameter with NextToken to get results as a set of sequential pages.
next_token(impl Into<String>)
/set_next_token(Option<String>)
: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.
- On success, responds with
ListGeneratedCodeJobsOutput
with field(s):generated_code_jobs(Option<Vec<GeneratedCodeJobDetails>>)
:The list of generated code jobs.
next_token(Option<String>)
: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.
- On failure, responds with
SdkError<ListGeneratedCodeJobsError>
source§impl Client
impl Client
sourcepub fn list_snapshots(&self) -> ListSnapshotsFluentBuilder
pub fn list_snapshots(&self) -> ListSnapshotsFluentBuilder
Constructs a fluent builder for the ListSnapshots
operation.
This operation supports pagination; See into_paginator()
.
- The fluent builder is configurable:
game_name(impl Into<String>)
/set_game_name(Option<String>)
:The name of the game.
max_results(i32)
/set_max_results(Option<i32>)
:The maximum number of results to return.
Use this parameter with NextToken to get results as a set of sequential pages.
next_token(impl Into<String>)
/set_next_token(Option<String>)
: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.
- On success, responds with
ListSnapshotsOutput
with field(s):snapshots(Option<Vec<SnapshotSummary>>)
:A list of snapshot summaries. You can use the returned snapshot IDs in the
UpdateSnapshot
andGetSnapshot
operations.next_token(Option<String>)
: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.
- On failure, responds with
SdkError<ListSnapshotsError>
source§impl Client
impl Client
sourcepub fn list_stage_deployments(&self) -> ListStageDeploymentsFluentBuilder
pub fn list_stage_deployments(&self) -> ListStageDeploymentsFluentBuilder
Constructs a fluent builder for the ListStageDeployments
operation.
This operation supports pagination; See into_paginator()
.
- The fluent builder is configurable:
game_name(impl Into<String>)
/set_game_name(Option<String>)
:The name of the game.
stage_name(impl Into<String>)
/set_stage_name(Option<String>)
:The name of the stage.
next_token(impl Into<String>)
/set_next_token(Option<String>)
: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.
max_results(i32)
/set_max_results(Option<i32>)
:The maximum number of results to return.
Use this parameter with NextToken to get results as a set of sequential pages.
- On success, responds with
ListStageDeploymentsOutput
with field(s):stage_deployments(Option<Vec<StageDeploymentSummary>>)
:A list of stage deployment summaries. You can use the deployment IDs in the
UpdateStageDeployment
andGetStageDeployment
actions.next_token(Option<String>)
: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.
- On failure, responds with
SdkError<ListStageDeploymentsError>
source§impl Client
impl Client
sourcepub fn list_stages(&self) -> ListStagesFluentBuilder
pub fn list_stages(&self) -> ListStagesFluentBuilder
Constructs a fluent builder for the ListStages
operation.
This operation supports pagination; See into_paginator()
.
- The fluent builder is configurable:
game_name(impl Into<String>)
/set_game_name(Option<String>)
:The name of the game.
max_results(i32)
/set_max_results(Option<i32>)
:The maximum number of results to return.
Use this parameter with NextToken to get results as a set of sequential pages.
next_token(impl Into<String>)
/set_next_token(Option<String>)
: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.
- On success, responds with
ListStagesOutput
with field(s):stages(Option<Vec<StageSummary>>)
:A list of stage summaries. You can use the stage names in the
UpdateStage
andGetStage
actions.next_token(Option<String>)
: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.
- On failure, responds with
SdkError<ListStagesError>
source§impl Client
impl Client
Constructs a fluent builder for the ListTagsForResource
operation.
- The fluent builder is configurable:
resource_arn(impl Into<String>)
/set_resource_arn(Option<String>)
:The Amazon Resource Name (ARN) of the GameSparks resource.
- On success, responds with
ListTagsForResourceOutput
with field(s):tags(Option<HashMap<String, String>>)
:The tags associated with the resource.
- On failure, responds with
SdkError<ListTagsForResourceError>
source§impl Client
impl Client
sourcepub fn start_generated_code_job(&self) -> StartGeneratedCodeJobFluentBuilder
pub fn start_generated_code_job(&self) -> StartGeneratedCodeJobFluentBuilder
Constructs a fluent builder for the StartGeneratedCodeJob
operation.
- The fluent builder is configurable:
game_name(impl Into<String>)
/set_game_name(Option<String>)
:The name of the game.
snapshot_id(impl Into<String>)
/set_snapshot_id(Option<String>)
:The identifier of the snapshot for which to generate code.
generator(Generator)
/set_generator(Option<Generator>)
:Properties of the generator to use for the job.
- On success, responds with
StartGeneratedCodeJobOutput
with field(s):generated_code_job_id(Option<String>)
:The identifier of the code generation job. You can use this identifier in the
GetGeneratedCodeJob
operation.
- On failure, responds with
SdkError<StartGeneratedCodeJobError>
source§impl Client
impl Client
sourcepub fn start_stage_deployment(&self) -> StartStageDeploymentFluentBuilder
pub fn start_stage_deployment(&self) -> StartStageDeploymentFluentBuilder
Constructs a fluent builder for the StartStageDeployment
operation.
- The fluent builder is configurable:
game_name(impl Into<String>)
/set_game_name(Option<String>)
:The name of the game.
stage_name(impl Into<String>)
/set_stage_name(Option<String>)
:The name of the stage to deploy the snapshot onto.
snapshot_id(impl Into<String>)
/set_snapshot_id(Option<String>)
:The identifier of the snapshot to deploy.
client_token(impl Into<String>)
/set_client_token(Option<String>)
:A client-defined token. With an active client token in the request, this action is idempotent.
- On success, responds with
StartStageDeploymentOutput
with field(s):stage_deployment(Option<StageDeploymentDetails>)
:Properties that describe the stage deployment.
- On failure, responds with
SdkError<StartStageDeploymentError>
source§impl Client
impl Client
sourcepub fn tag_resource(&self) -> TagResourceFluentBuilder
pub fn tag_resource(&self) -> TagResourceFluentBuilder
Constructs a fluent builder for the TagResource
operation.
- The fluent builder is configurable:
resource_arn(impl Into<String>)
/set_resource_arn(Option<String>)
:The Amazon Resource Name (ARN) of the resource to add the tags to.
tags(impl Into<String>, impl Into<String>)
/set_tags(Option<HashMap<String, String>>)
:The tags to add to the resource.
- On success, responds with
TagResourceOutput
- On failure, responds with
SdkError<TagResourceError>
source§impl Client
impl Client
sourcepub fn untag_resource(&self) -> UntagResourceFluentBuilder
pub fn untag_resource(&self) -> UntagResourceFluentBuilder
Constructs a fluent builder for the UntagResource
operation.
- The fluent builder is configurable:
resource_arn(impl Into<String>)
/set_resource_arn(Option<String>)
:The Amazon Resource Name (ARN) of the resource to remove the tags from.
tag_keys(impl Into<String>)
/set_tag_keys(Option<Vec<String>>)
:The keys of the tags to remove.
- On success, responds with
UntagResourceOutput
- On failure, responds with
SdkError<UntagResourceError>
source§impl Client
impl Client
sourcepub fn update_game(&self) -> UpdateGameFluentBuilder
pub fn update_game(&self) -> UpdateGameFluentBuilder
Constructs a fluent builder for the UpdateGame
operation.
- The fluent builder is configurable:
game_name(impl Into<String>)
/set_game_name(Option<String>)
:The name of the game.
description(impl Into<String>)
/set_description(Option<String>)
:The description of the game.
- On success, responds with
UpdateGameOutput
with field(s):game(Option<GameDetails>)
:The details of the game.
- On failure, responds with
SdkError<UpdateGameError>
source§impl Client
impl Client
sourcepub fn update_game_configuration(&self) -> UpdateGameConfigurationFluentBuilder
pub fn update_game_configuration(&self) -> UpdateGameConfigurationFluentBuilder
Constructs a fluent builder for the UpdateGameConfiguration
operation.
- The fluent builder is configurable:
game_name(impl Into<String>)
/set_game_name(Option<String>)
:The name of the game.
modifications(SectionModification)
/set_modifications(Option<Vec<SectionModification>>)
:The list of modifications to make.
- On success, responds with
UpdateGameConfigurationOutput
with field(s):game_configuration(Option<GameConfigurationDetails>)
:Details about the game configuration.
- On failure, responds with
SdkError<UpdateGameConfigurationError>
source§impl Client
impl Client
sourcepub fn update_snapshot(&self) -> UpdateSnapshotFluentBuilder
pub fn update_snapshot(&self) -> UpdateSnapshotFluentBuilder
Constructs a fluent builder for the UpdateSnapshot
operation.
- The fluent builder is configurable:
game_name(impl Into<String>)
/set_game_name(Option<String>)
:The name of the game.
snapshot_id(impl Into<String>)
/set_snapshot_id(Option<String>)
:The identifier of the snapshot.
description(impl Into<String>)
/set_description(Option<String>)
:The description of the snapshot.
- On success, responds with
UpdateSnapshotOutput
with field(s):snapshot(Option<SnapshotDetails>)
:Properties that provide details of the updated snapshot.
- On failure, responds with
SdkError<UpdateSnapshotError>
source§impl Client
impl Client
sourcepub fn update_stage(&self) -> UpdateStageFluentBuilder
pub fn update_stage(&self) -> UpdateStageFluentBuilder
Constructs a fluent builder for the UpdateStage
operation.
- The fluent builder is configurable:
game_name(impl Into<String>)
/set_game_name(Option<String>)
:The name of the game.
stage_name(impl Into<String>)
/set_stage_name(Option<String>)
:The name of the stage.
role(impl Into<String>)
/set_role(Option<String>)
:The Amazon Resource Name (ARN) of the role to use for the game snapshots deployed to this stage.
description(impl Into<String>)
/set_description(Option<String>)
:The description of the stage.
- On success, responds with
UpdateStageOutput
with field(s):stage(Option<StageDetails>)
:Properties that provide details of the updated stage.
- On failure, responds with
SdkError<UpdateStageError>
source§impl Client
impl Client
sourcepub fn new(sdk_config: &SdkConfig) -> Self
pub fn new(sdk_config: &SdkConfig) -> Self
Creates a new client from an SDK Config.
Panics
- This method will panic if the
sdk_config
is missing an async sleep implementation. If you experience this panic, set thesleep_impl
on the Config passed into this function to fix it. - This method will panic if the
sdk_config
is missing an HTTP connector. If you experience this panic, set thehttp_connector
on the Config passed into this function to fix it.