Struct aws_sdk_backupgateway::client::Client  
source · [−]pub struct Client<C = DynConnector, M = DefaultMiddleware, R = Standard> { /* private fields */ }Expand description
Client for AWS Backup Gateway
Client for invoking operations on AWS Backup Gateway. Each operation on AWS Backup Gateway is a method on this
this struct. .send() MUST be invoked on the generated operations to dispatch the request to the service.
Examples
Constructing a client and invoking an operation
    // create a shared configuration. This can be used & shared between multiple service clients.
    let shared_config = aws_config::load_from_env().await;
    let client = aws_sdk_backupgateway::Client::new(&shared_config);
    // invoke an operation
    /* let rsp = client
        .<operation_name>().
        .<param>("some value")
        .send().await; */Constructing a client with custom configuration
use aws_config::RetryConfig;
    let shared_config = aws_config::load_from_env().await;
    let config = aws_sdk_backupgateway::config::Builder::from(&shared_config)
        .retry_config(RetryConfig::disabled())
        .build();
    let client = aws_sdk_backupgateway::Client::from_conf(config);Implementations
impl<C, M, R> Client<C, M, R> where
    C: SmithyConnector,
    M: SmithyMiddleware<C>,
    R: NewRequestPolicy, 
impl<C, M, R> Client<C, M, R> where
    C: SmithyConnector,
    M: SmithyMiddleware<C>,
    R: NewRequestPolicy, 
Constructs a fluent builder for the AssociateGatewayToServer operation.
- The fluent builder is configurable:
- gateway_arn(impl Into<String>)/- set_gateway_arn(Option<String>):- The Amazon Resource Name (ARN) of the gateway. Use the - ListGatewaysoperation to return a list of gateways for your account and Amazon Web Services Region.
- server_arn(impl Into<String>)/- set_server_arn(Option<String>):- The Amazon Resource Name (ARN) of the server that hosts your virtual machines. 
 
- On success, responds with AssociateGatewayToServerOutputwith field(s):- gateway_arn(Option<String>):- The Amazon Resource Name (ARN) of a gateway. 
 
- On failure, responds with SdkError<AssociateGatewayToServerError>
Constructs a fluent builder for the CreateGateway operation.
- The fluent builder is configurable:
- activation_key(impl Into<String>)/- set_activation_key(Option<String>):- The activation key of the created gateway. 
- gateway_display_name(impl Into<String>)/- set_gateway_display_name(Option<String>):- The display name of the created gateway. 
- gateway_type(GatewayType)/- set_gateway_type(Option<GatewayType>):- The type of created gateway. 
- tags(Vec<Tag>)/- set_tags(Option<Vec<Tag>>):- A list of up to 50 tags to assign to the gateway. Each tag is a key-value pair. 
 
- On success, responds with CreateGatewayOutputwith field(s):- gateway_arn(Option<String>):- The Amazon Resource Name (ARN) of the gateway you create. 
 
- On failure, responds with SdkError<CreateGatewayError>
Constructs a fluent builder for the DeleteGateway operation.
- The fluent builder is configurable:
- gateway_arn(impl Into<String>)/- set_gateway_arn(Option<String>):- The Amazon Resource Name (ARN) of the gateway to delete. 
 
- On success, responds with DeleteGatewayOutputwith field(s):- gateway_arn(Option<String>):- The Amazon Resource Name (ARN) of the gateway you deleted. 
 
- On failure, responds with SdkError<DeleteGatewayError>
Constructs a fluent builder for the DeleteHypervisor operation.
- The fluent builder is configurable:
- hypervisor_arn(impl Into<String>)/- set_hypervisor_arn(Option<String>):- The Amazon Resource Name (ARN) of the hypervisor to delete. 
 
- On success, responds with DeleteHypervisorOutputwith field(s):- hypervisor_arn(Option<String>):- The Amazon Resource Name (ARN) of the hypervisor you deleted. 
 
- On failure, responds with SdkError<DeleteHypervisorError>
Constructs a fluent builder for the DisassociateGatewayFromServer operation.
- The fluent builder is configurable:
- gateway_arn(impl Into<String>)/- set_gateway_arn(Option<String>):- The Amazon Resource Name (ARN) of the gateway to disassociate. 
 
- On success, responds with DisassociateGatewayFromServerOutputwith field(s):- gateway_arn(Option<String>):- The Amazon Resource Name (ARN) of the gateway you disassociated. 
 
- On failure, responds with SdkError<DisassociateGatewayFromServerError>
Constructs a fluent builder for the ImportHypervisorConfiguration operation.
- The fluent builder is configurable:
- name(impl Into<String>)/- set_name(Option<String>):- The name of the hypervisor. 
- host(impl Into<String>)/- set_host(Option<String>):- The server host of the hypervisor. This can be either an IP address or a fully-qualified domain name (FQDN). 
- username(impl Into<String>)/- set_username(Option<String>):- The username for the hypervisor. 
- password(impl Into<String>)/- set_password(Option<String>):- The password for the hypervisor. 
- kms_key_arn(impl Into<String>)/- set_kms_key_arn(Option<String>):- The Key Management Service for the hypervisor. 
- tags(Vec<Tag>)/- set_tags(Option<Vec<Tag>>):- The tags of the hypervisor configuration to import. 
 
- On success, responds with ImportHypervisorConfigurationOutputwith field(s):- hypervisor_arn(Option<String>):- The Amazon Resource Name (ARN) of the hypervisor you disassociated. 
 
- On failure, responds with SdkError<ImportHypervisorConfigurationError>
Constructs a fluent builder for the ListGateways 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 gateways to list. 
- next_token(impl Into<String>)/- set_next_token(Option<String>):- The next item following a partial list of returned resources. For example, if a request is made to return - MaxResultsnumber of resources,- NextTokenallows you to return more items in your list starting at the location pointed to by the next token.
 
- On success, responds with ListGatewaysOutputwith field(s):- gateways(Option<Vec<Gateway>>):- A list of your gateways. 
- next_token(Option<String>):- The next item following a partial list of returned resources. For example, if a request is made to return - maxResultsnumber of resources,- NextTokenallows you to return more items in your list starting at the location pointed to by the next token.
 
- On failure, responds with SdkError<ListGatewaysError>
Constructs a fluent builder for the ListHypervisors 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 hypervisors to list. 
- next_token(impl Into<String>)/- set_next_token(Option<String>):- The next item following a partial list of returned resources. For example, if a request is made to return - maxResultsnumber of resources,- NextTokenallows you to return more items in your list starting at the location pointed to by the next token.
 
- On success, responds with ListHypervisorsOutputwith field(s):- hypervisors(Option<Vec<Hypervisor>>):- A list of your - Hypervisorobjects, ordered by their Amazon Resource Names (ARNs).
- next_token(Option<String>):- The next item following a partial list of returned resources. For example, if a request is made to return - maxResultsnumber of resources,- NextTokenallows you to return more items in your list starting at the location pointed to by the next token.
 
- On failure, responds with SdkError<ListHypervisorsError>
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 resource’s tags to list. 
 
- On success, responds with ListTagsForResourceOutputwith field(s):- resource_arn(Option<String>):- The Amazon Resource Name (ARN) of the resource’s tags that you listed. 
- tags(Option<Vec<Tag>>):- A list of the resource’s tags. 
 
- On failure, responds with SdkError<ListTagsForResourceError>
Constructs a fluent builder for the ListVirtualMachines 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 virtual machines to list. 
- next_token(impl Into<String>)/- set_next_token(Option<String>):- The next item following a partial list of returned resources. For example, if a request is made to return - maxResultsnumber of resources,- NextTokenallows you to return more items in your list starting at the location pointed to by the next token.
 
- On success, responds with ListVirtualMachinesOutputwith field(s):- virtual_machines(Option<Vec<VirtualMachine>>):- A list of your - VirtualMachineobjects, ordered by their Amazon Resource Names (ARNs).
- next_token(Option<String>):- The next item following a partial list of returned resources. For example, if a request is made to return - maxResultsnumber of resources,- NextTokenallows you to return more items in your list starting at the location pointed to by the next token.
 
- On failure, responds with SdkError<ListVirtualMachinesError>
Constructs a fluent builder for the PutMaintenanceStartTime operation.
- The fluent builder is configurable:
- gateway_arn(impl Into<String>)/- set_gateway_arn(Option<String>):- The Amazon Resource Name (ARN) for the gateway, used to specify its maintenance start time. 
- hour_of_day(i32)/- set_hour_of_day(Option<i32>):- The hour of the day to start maintenance on a gateway. 
- minute_of_hour(i32)/- set_minute_of_hour(Option<i32>):- The minute of the hour to start maintenance on a gateway. 
- day_of_week(i32)/- set_day_of_week(Option<i32>):- The day of the week to start maintenance on a gateway. 
- day_of_month(i32)/- set_day_of_month(Option<i32>):- The day of the month start maintenance on a gateway. - Valid values range from - Sundayto- Saturday.
 
- On success, responds with PutMaintenanceStartTimeOutputwith field(s):- gateway_arn(Option<String>):- The Amazon Resource Name (ARN) of a gateway for which you set the maintenance start time. 
 
- On failure, responds with SdkError<PutMaintenanceStartTimeError>
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 tag. 
- tags(Vec<Tag>)/- set_tags(Option<Vec<Tag>>):- A list of tags to assign to the resource. 
 
- On success, responds with TagResourceOutputwith field(s):- resource_arn(Option<String>):- The Amazon Resource Name (ARN) of the resource you tagged. 
 
- On failure, responds with SdkError<TagResourceError>
Constructs a fluent builder for the TestHypervisorConfiguration operation.
- The fluent builder is configurable:
- gateway_arn(impl Into<String>)/- set_gateway_arn(Option<String>):- The Amazon Resource Name (ARN) of the gateway to the hypervisor to test. 
- host(impl Into<String>)/- set_host(Option<String>):- The server host of the hypervisor. This can be either an IP address or a fully-qualified domain name (FQDN). 
- username(impl Into<String>)/- set_username(Option<String>):- The username for the hypervisor. 
- password(impl Into<String>)/- set_password(Option<String>):- The password for the hypervisor. 
 
- On success, responds with TestHypervisorConfigurationOutput
- On failure, responds with SdkError<TestHypervisorConfigurationError>
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 from which to remove tags. 
- tag_keys(Vec<String>)/- set_tag_keys(Option<Vec<String>>):- The list of tag keys specifying which tags to remove. 
 
- On success, responds with UntagResourceOutputwith field(s):- resource_arn(Option<String>):- The Amazon Resource Name (ARN) of the resource from which you removed tags. 
 
- On failure, responds with SdkError<UntagResourceError>
Constructs a fluent builder for the UpdateGatewayInformation operation.
- The fluent builder is configurable:
- gateway_arn(impl Into<String>)/- set_gateway_arn(Option<String>):- The Amazon Resource Name (ARN) of the gateway to update. 
- gateway_display_name(impl Into<String>)/- set_gateway_display_name(Option<String>):- The updated display name of the gateway. 
 
- On success, responds with UpdateGatewayInformationOutputwith field(s):- gateway_arn(Option<String>):- The Amazon Resource Name (ARN) of the gateway you updated. 
 
- On failure, responds with SdkError<UpdateGatewayInformationError>
Constructs a fluent builder for the UpdateHypervisor operation.
- The fluent builder is configurable:
- hypervisor_arn(impl Into<String>)/- set_hypervisor_arn(Option<String>):- The Amazon Resource Name (ARN) of the hypervisor to update. 
- host(impl Into<String>)/- set_host(Option<String>):- The updated host of the hypervisor. This can be either an IP address or a fully-qualified domain name (FQDN). 
- username(impl Into<String>)/- set_username(Option<String>):- The updated username for the hypervisor. 
- password(impl Into<String>)/- set_password(Option<String>):- The updated password for the hypervisor. 
 
- On success, responds with UpdateHypervisorOutputwith field(s):- hypervisor_arn(Option<String>):- The Amazon Resource Name (ARN) of the hypervisor you updated. 
 
- On failure, responds with SdkError<UpdateHypervisorError>
Creates a client with the given service config and connector override.
Trait Implementations
Auto Trait Implementations
impl<C = DynConnector, M = DefaultMiddleware, R = Standard> !RefUnwindSafe for Client<C, M, R>
impl<C = DynConnector, M = DefaultMiddleware, R = Standard> !UnwindSafe for Client<C, M, R>
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more