pub struct Client { /* 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.
§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_backupgateway::Client::new(&config);
Occasionally, SDKs may have additional service-specific values that can be set on the Config
that
is absent from SdkConfig
, or slightly different settings for a specific client may be desired.
The Builder
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_backupgateway::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 AssociateGatewayToServer
operation has
a Client::associate_gateway_to_server
, 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.associate_gateway_to_server()
.gateway_arn("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 associate_gateway_to_server(
&self,
) -> AssociateGatewayToServerFluentBuilder
pub fn associate_gateway_to_server( &self, ) -> AssociateGatewayToServerFluentBuilder
Constructs a fluent builder for the AssociateGatewayToServer
operation.
- The fluent builder is configurable:
gateway_arn(impl Into<String>)
/set_gateway_arn(Option<String>)
:
required: trueThe Amazon Resource Name (ARN) of the gateway. Use the
ListGateways
operation to return a list of gateways for your account and Amazon Web Services Region.server_arn(impl Into<String>)
/set_server_arn(Option<String>)
:
required: trueThe Amazon Resource Name (ARN) of the server that hosts your virtual machines.
- On success, responds with
AssociateGatewayToServerOutput
with field(s):gateway_arn(Option<String>)
:The Amazon Resource Name (ARN) of a gateway.
- On failure, responds with
SdkError<AssociateGatewayToServerError>
Source§impl Client
impl Client
Sourcepub fn create_gateway(&self) -> CreateGatewayFluentBuilder
pub fn create_gateway(&self) -> CreateGatewayFluentBuilder
Constructs a fluent builder for the CreateGateway
operation.
- The fluent builder is configurable:
activation_key(impl Into<String>)
/set_activation_key(Option<String>)
:
required: trueThe activation key of the created gateway.
gateway_display_name(impl Into<String>)
/set_gateway_display_name(Option<String>)
:
required: trueThe display name of the created gateway.
gateway_type(GatewayType)
/set_gateway_type(Option<GatewayType>)
:
required: trueThe type of created gateway.
tags(Tag)
/set_tags(Option<Vec::<Tag>>)
:
required: falseA list of up to 50 tags to assign to the gateway. Each tag is a key-value pair.
- On success, responds with
CreateGatewayOutput
with field(s):gateway_arn(Option<String>)
:The Amazon Resource Name (ARN) of the gateway you create.
- On failure, responds with
SdkError<CreateGatewayError>
Source§impl Client
impl Client
Sourcepub fn delete_gateway(&self) -> DeleteGatewayFluentBuilder
pub fn delete_gateway(&self) -> DeleteGatewayFluentBuilder
Constructs a fluent builder for the DeleteGateway
operation.
- The fluent builder is configurable:
gateway_arn(impl Into<String>)
/set_gateway_arn(Option<String>)
:
required: trueThe Amazon Resource Name (ARN) of the gateway to delete.
- On success, responds with
DeleteGatewayOutput
with field(s):gateway_arn(Option<String>)
:The Amazon Resource Name (ARN) of the gateway you deleted.
- On failure, responds with
SdkError<DeleteGatewayError>
Source§impl Client
impl Client
Sourcepub fn delete_hypervisor(&self) -> DeleteHypervisorFluentBuilder
pub fn delete_hypervisor(&self) -> DeleteHypervisorFluentBuilder
Constructs a fluent builder for the DeleteHypervisor
operation.
- The fluent builder is configurable:
hypervisor_arn(impl Into<String>)
/set_hypervisor_arn(Option<String>)
:
required: trueThe Amazon Resource Name (ARN) of the hypervisor to delete.
- On success, responds with
DeleteHypervisorOutput
with field(s):hypervisor_arn(Option<String>)
:The Amazon Resource Name (ARN) of the hypervisor you deleted.
- On failure, responds with
SdkError<DeleteHypervisorError>
Source§impl Client
impl Client
Sourcepub fn disassociate_gateway_from_server(
&self,
) -> DisassociateGatewayFromServerFluentBuilder
pub fn disassociate_gateway_from_server( &self, ) -> DisassociateGatewayFromServerFluentBuilder
Constructs a fluent builder for the DisassociateGatewayFromServer
operation.
- The fluent builder is configurable:
gateway_arn(impl Into<String>)
/set_gateway_arn(Option<String>)
:
required: trueThe Amazon Resource Name (ARN) of the gateway to disassociate.
- On success, responds with
DisassociateGatewayFromServerOutput
with field(s):gateway_arn(Option<String>)
:The Amazon Resource Name (ARN) of the gateway you disassociated.
- On failure, responds with
SdkError<DisassociateGatewayFromServerError>
Source§impl Client
impl Client
Sourcepub fn get_bandwidth_rate_limit_schedule(
&self,
) -> GetBandwidthRateLimitScheduleFluentBuilder
pub fn get_bandwidth_rate_limit_schedule( &self, ) -> GetBandwidthRateLimitScheduleFluentBuilder
Constructs a fluent builder for the GetBandwidthRateLimitSchedule
operation.
- The fluent builder is configurable:
gateway_arn(impl Into<String>)
/set_gateway_arn(Option<String>)
:
required: trueThe Amazon Resource Name (ARN) of the gateway. Use the
ListGateways
operation to return a list of gateways for your account and Amazon Web Services Region.
- On success, responds with
GetBandwidthRateLimitScheduleOutput
with field(s):gateway_arn(Option<String>)
:The Amazon Resource Name (ARN) of the gateway. Use the
ListGateways
operation to return a list of gateways for your account and Amazon Web Services Region.bandwidth_rate_limit_intervals(Option<Vec::<BandwidthRateLimitInterval>>)
:An array containing bandwidth rate limit schedule intervals for a gateway. When no bandwidth rate limit intervals have been scheduled, the array is empty.
- On failure, responds with
SdkError<GetBandwidthRateLimitScheduleError>
Source§impl Client
impl Client
Sourcepub fn get_gateway(&self) -> GetGatewayFluentBuilder
pub fn get_gateway(&self) -> GetGatewayFluentBuilder
Constructs a fluent builder for the GetGateway
operation.
- The fluent builder is configurable:
gateway_arn(impl Into<String>)
/set_gateway_arn(Option<String>)
:
required: trueThe Amazon Resource Name (ARN) of the gateway.
- On success, responds with
GetGatewayOutput
with field(s):gateway(Option<GatewayDetails>)
:By providing the ARN (Amazon Resource Name), this API returns the gateway.
- On failure, responds with
SdkError<GetGatewayError>
Source§impl Client
impl Client
Sourcepub fn get_hypervisor(&self) -> GetHypervisorFluentBuilder
pub fn get_hypervisor(&self) -> GetHypervisorFluentBuilder
Constructs a fluent builder for the GetHypervisor
operation.
- The fluent builder is configurable:
hypervisor_arn(impl Into<String>)
/set_hypervisor_arn(Option<String>)
:
required: trueThe Amazon Resource Name (ARN) of the hypervisor.
- On success, responds with
GetHypervisorOutput
with field(s):hypervisor(Option<HypervisorDetails>)
:Details about the requested hypervisor.
- On failure, responds with
SdkError<GetHypervisorError>
Source§impl Client
impl Client
Sourcepub fn get_hypervisor_property_mappings(
&self,
) -> GetHypervisorPropertyMappingsFluentBuilder
pub fn get_hypervisor_property_mappings( &self, ) -> GetHypervisorPropertyMappingsFluentBuilder
Constructs a fluent builder for the GetHypervisorPropertyMappings
operation.
- The fluent builder is configurable:
hypervisor_arn(impl Into<String>)
/set_hypervisor_arn(Option<String>)
:
required: trueThe Amazon Resource Name (ARN) of the hypervisor.
- On success, responds with
GetHypervisorPropertyMappingsOutput
with field(s):hypervisor_arn(Option<String>)
:The Amazon Resource Name (ARN) of the hypervisor.
vmware_to_aws_tag_mappings(Option<Vec::<VmwareToAwsTagMapping>>)
:This is a display of the mappings of on-premises VMware tags to the Amazon Web Services tags.
iam_role_arn(Option<String>)
:The Amazon Resource Name (ARN) of the IAM role.
- On failure, responds with
SdkError<GetHypervisorPropertyMappingsError>
Source§impl Client
impl Client
Sourcepub fn get_virtual_machine(&self) -> GetVirtualMachineFluentBuilder
pub fn get_virtual_machine(&self) -> GetVirtualMachineFluentBuilder
Constructs a fluent builder for the GetVirtualMachine
operation.
- The fluent builder is configurable:
resource_arn(impl Into<String>)
/set_resource_arn(Option<String>)
:
required: trueThe Amazon Resource Name (ARN) of the virtual machine.
- On success, responds with
GetVirtualMachineOutput
with field(s):virtual_machine(Option<VirtualMachineDetails>)
:This object contains the basic attributes of
VirtualMachine
contained by the output ofGetVirtualMachine
- On failure, responds with
SdkError<GetVirtualMachineError>
Source§impl Client
impl Client
Sourcepub fn import_hypervisor_configuration(
&self,
) -> ImportHypervisorConfigurationFluentBuilder
pub fn import_hypervisor_configuration( &self, ) -> ImportHypervisorConfigurationFluentBuilder
Constructs a fluent builder for the ImportHypervisorConfiguration
operation.
- The fluent builder is configurable:
name(impl Into<String>)
/set_name(Option<String>)
:
required: trueThe name of the hypervisor.
host(impl Into<String>)
/set_host(Option<String>)
:
required: trueThe 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>)
:
required: falseThe username for the hypervisor.
password(impl Into<String>)
/set_password(Option<String>)
:
required: falseThe password for the hypervisor.
kms_key_arn(impl Into<String>)
/set_kms_key_arn(Option<String>)
:
required: falseThe Key Management Service for the hypervisor.
tags(Tag)
/set_tags(Option<Vec::<Tag>>)
:
required: falseThe tags of the hypervisor configuration to import.
- On success, responds with
ImportHypervisorConfigurationOutput
with field(s):hypervisor_arn(Option<String>)
:The Amazon Resource Name (ARN) of the hypervisor you disassociated.
- On failure, responds with
SdkError<ImportHypervisorConfigurationError>
Source§impl Client
impl Client
Sourcepub fn list_gateways(&self) -> ListGatewaysFluentBuilder
pub fn list_gateways(&self) -> ListGatewaysFluentBuilder
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>)
:
required: falseThe maximum number of gateways to list.
next_token(impl Into<String>)
/set_next_token(Option<String>)
:
required: falseThe next item following a partial list of returned resources. For example, if a request is made to return
MaxResults
number of resources,NextToken
allows you to return more items in your list starting at the location pointed to by the next token.
- On success, responds with
ListGatewaysOutput
with 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
maxResults
number of resources,NextToken
allows you to return more items in your list starting at the location pointed to by the next token.
- On failure, responds with
SdkError<ListGatewaysError>
Source§impl Client
impl Client
Sourcepub fn list_hypervisors(&self) -> ListHypervisorsFluentBuilder
pub fn list_hypervisors(&self) -> ListHypervisorsFluentBuilder
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>)
:
required: falseThe maximum number of hypervisors to list.
next_token(impl Into<String>)
/set_next_token(Option<String>)
:
required: falseThe next item following a partial list of returned resources. For example, if a request is made to return
maxResults
number of resources,NextToken
allows you to return more items in your list starting at the location pointed to by the next token.
- On success, responds with
ListHypervisorsOutput
with field(s):hypervisors(Option<Vec::<Hypervisor>>)
:A list of your
Hypervisor
objects, 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
maxResults
number of resources,NextToken
allows you to return more items in your list starting at the location pointed to by the next token.
- On failure, responds with
SdkError<ListHypervisorsError>
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>)
:
required: trueThe Amazon Resource Name (ARN) of the resource’s tags to list.
- On success, responds with
ListTagsForResourceOutput
with 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>
Source§impl Client
impl Client
Sourcepub fn list_virtual_machines(&self) -> ListVirtualMachinesFluentBuilder
pub fn list_virtual_machines(&self) -> ListVirtualMachinesFluentBuilder
Constructs a fluent builder for the ListVirtualMachines
operation.
This operation supports pagination; See into_paginator()
.
- The fluent builder is configurable:
hypervisor_arn(impl Into<String>)
/set_hypervisor_arn(Option<String>)
:
required: falseThe Amazon Resource Name (ARN) of the hypervisor connected to your virtual machine.
max_results(i32)
/set_max_results(Option<i32>)
:
required: falseThe maximum number of virtual machines to list.
next_token(impl Into<String>)
/set_next_token(Option<String>)
:
required: falseThe next item following a partial list of returned resources. For example, if a request is made to return
maxResults
number of resources,NextToken
allows you to return more items in your list starting at the location pointed to by the next token.
- On success, responds with
ListVirtualMachinesOutput
with field(s):virtual_machines(Option<Vec::<VirtualMachine>>)
:A list of your
VirtualMachine
objects, 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
maxResults
number of resources,NextToken
allows you to return more items in your list starting at the location pointed to by the next token.
- On failure, responds with
SdkError<ListVirtualMachinesError>
Source§impl Client
impl Client
Sourcepub fn put_bandwidth_rate_limit_schedule(
&self,
) -> PutBandwidthRateLimitScheduleFluentBuilder
pub fn put_bandwidth_rate_limit_schedule( &self, ) -> PutBandwidthRateLimitScheduleFluentBuilder
Constructs a fluent builder for the PutBandwidthRateLimitSchedule
operation.
- The fluent builder is configurable:
gateway_arn(impl Into<String>)
/set_gateway_arn(Option<String>)
:
required: trueThe Amazon Resource Name (ARN) of the gateway. Use the
ListGateways
operation to return a list of gateways for your account and Amazon Web Services Region.bandwidth_rate_limit_intervals(BandwidthRateLimitInterval)
/set_bandwidth_rate_limit_intervals(Option<Vec::<BandwidthRateLimitInterval>>)
:
required: trueAn array containing bandwidth rate limit schedule intervals for a gateway. When no bandwidth rate limit intervals have been scheduled, the array is empty.
- On success, responds with
PutBandwidthRateLimitScheduleOutput
with field(s):gateway_arn(Option<String>)
:The Amazon Resource Name (ARN) of the gateway. Use the
ListGateways
operation to return a list of gateways for your account and Amazon Web Services Region.
- On failure, responds with
SdkError<PutBandwidthRateLimitScheduleError>
Source§impl Client
impl Client
Sourcepub fn put_hypervisor_property_mappings(
&self,
) -> PutHypervisorPropertyMappingsFluentBuilder
pub fn put_hypervisor_property_mappings( &self, ) -> PutHypervisorPropertyMappingsFluentBuilder
Constructs a fluent builder for the PutHypervisorPropertyMappings
operation.
- The fluent builder is configurable:
hypervisor_arn(impl Into<String>)
/set_hypervisor_arn(Option<String>)
:
required: trueThe Amazon Resource Name (ARN) of the hypervisor.
vmware_to_aws_tag_mappings(VmwareToAwsTagMapping)
/set_vmware_to_aws_tag_mappings(Option<Vec::<VmwareToAwsTagMapping>>)
:
required: trueThis action requests the mappings of on-premises VMware tags to the Amazon Web Services tags.
iam_role_arn(impl Into<String>)
/set_iam_role_arn(Option<String>)
:
required: trueThe Amazon Resource Name (ARN) of the IAM role.
- On success, responds with
PutHypervisorPropertyMappingsOutput
with field(s):hypervisor_arn(Option<String>)
:The Amazon Resource Name (ARN) of the hypervisor.
- On failure, responds with
SdkError<PutHypervisorPropertyMappingsError>
Source§impl Client
impl Client
Sourcepub fn put_maintenance_start_time(&self) -> PutMaintenanceStartTimeFluentBuilder
pub fn put_maintenance_start_time(&self) -> PutMaintenanceStartTimeFluentBuilder
Constructs a fluent builder for the PutMaintenanceStartTime
operation.
- The fluent builder is configurable:
gateway_arn(impl Into<String>)
/set_gateway_arn(Option<String>)
:
required: trueThe Amazon Resource Name (ARN) for the gateway, used to specify its maintenance start time.
hour_of_day(i32)
/set_hour_of_day(Option<i32>)
:
required: trueThe hour of the day to start maintenance on a gateway.
minute_of_hour(i32)
/set_minute_of_hour(Option<i32>)
:
required: trueThe minute of the hour to start maintenance on a gateway.
day_of_week(i32)
/set_day_of_week(Option<i32>)
:
required: falseThe day of the week to start maintenance on a gateway.
day_of_month(i32)
/set_day_of_month(Option<i32>)
:
required: falseThe day of the month start maintenance on a gateway.
Valid values range from
Sunday
toSaturday
.
- On success, responds with
PutMaintenanceStartTimeOutput
with 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>
Source§impl Client
impl Client
Sourcepub fn start_virtual_machines_metadata_sync(
&self,
) -> StartVirtualMachinesMetadataSyncFluentBuilder
pub fn start_virtual_machines_metadata_sync( &self, ) -> StartVirtualMachinesMetadataSyncFluentBuilder
Constructs a fluent builder for the StartVirtualMachinesMetadataSync
operation.
- The fluent builder is configurable:
hypervisor_arn(impl Into<String>)
/set_hypervisor_arn(Option<String>)
:
required: trueThe Amazon Resource Name (ARN) of the hypervisor.
- On success, responds with
StartVirtualMachinesMetadataSyncOutput
with field(s):hypervisor_arn(Option<String>)
:The Amazon Resource Name (ARN) of the hypervisor.
- On failure, responds with
SdkError<StartVirtualMachinesMetadataSyncError>
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>)
:
required: trueThe Amazon Resource Name (ARN) of the resource to tag.
tags(Tag)
/set_tags(Option<Vec::<Tag>>)
:
required: trueA list of tags to assign to the resource.
- On success, responds with
TagResourceOutput
with field(s):resource_arn(Option<String>)
:The Amazon Resource Name (ARN) of the resource you tagged.
- On failure, responds with
SdkError<TagResourceError>
Source§impl Client
impl Client
Sourcepub fn test_hypervisor_configuration(
&self,
) -> TestHypervisorConfigurationFluentBuilder
pub fn test_hypervisor_configuration( &self, ) -> TestHypervisorConfigurationFluentBuilder
Constructs a fluent builder for the TestHypervisorConfiguration
operation.
- The fluent builder is configurable:
gateway_arn(impl Into<String>)
/set_gateway_arn(Option<String>)
:
required: trueThe Amazon Resource Name (ARN) of the gateway to the hypervisor to test.
host(impl Into<String>)
/set_host(Option<String>)
:
required: trueThe 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>)
:
required: falseThe username for the hypervisor.
password(impl Into<String>)
/set_password(Option<String>)
:
required: falseThe password for the hypervisor.
- On success, responds with
TestHypervisorConfigurationOutput
- On failure, responds with
SdkError<TestHypervisorConfigurationError>
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>)
:
required: trueThe Amazon Resource Name (ARN) of the resource from which to remove tags.
tag_keys(impl Into<String>)
/set_tag_keys(Option<Vec::<String>>)
:
required: trueThe list of tag keys specifying which tags to remove.
- On success, responds with
UntagResourceOutput
with 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>
Source§impl Client
impl Client
Sourcepub fn update_gateway_information(
&self,
) -> UpdateGatewayInformationFluentBuilder
pub fn update_gateway_information( &self, ) -> UpdateGatewayInformationFluentBuilder
Constructs a fluent builder for the UpdateGatewayInformation
operation.
- The fluent builder is configurable:
gateway_arn(impl Into<String>)
/set_gateway_arn(Option<String>)
:
required: trueThe Amazon Resource Name (ARN) of the gateway to update.
gateway_display_name(impl Into<String>)
/set_gateway_display_name(Option<String>)
:
required: falseThe updated display name of the gateway.
- On success, responds with
UpdateGatewayInformationOutput
with field(s):gateway_arn(Option<String>)
:The Amazon Resource Name (ARN) of the gateway you updated.
- On failure, responds with
SdkError<UpdateGatewayInformationError>
Source§impl Client
impl Client
Sourcepub fn update_gateway_software_now(
&self,
) -> UpdateGatewaySoftwareNowFluentBuilder
pub fn update_gateway_software_now( &self, ) -> UpdateGatewaySoftwareNowFluentBuilder
Constructs a fluent builder for the UpdateGatewaySoftwareNow
operation.
- The fluent builder is configurable:
gateway_arn(impl Into<String>)
/set_gateway_arn(Option<String>)
:
required: trueThe Amazon Resource Name (ARN) of the gateway to be updated.
- On success, responds with
UpdateGatewaySoftwareNowOutput
with field(s):gateway_arn(Option<String>)
:The Amazon Resource Name (ARN) of the gateway you updated.
- On failure, responds with
SdkError<UpdateGatewaySoftwareNowError>
Source§impl Client
impl Client
Sourcepub fn update_hypervisor(&self) -> UpdateHypervisorFluentBuilder
pub fn update_hypervisor(&self) -> UpdateHypervisorFluentBuilder
Constructs a fluent builder for the UpdateHypervisor
operation.
- The fluent builder is configurable:
hypervisor_arn(impl Into<String>)
/set_hypervisor_arn(Option<String>)
:
required: trueThe Amazon Resource Name (ARN) of the hypervisor to update.
host(impl Into<String>)
/set_host(Option<String>)
:
required: falseThe 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>)
:
required: falseThe updated username for the hypervisor.
password(impl Into<String>)
/set_password(Option<String>)
:
required: falseThe updated password for the hypervisor.
name(impl Into<String>)
/set_name(Option<String>)
:
required: falseThe updated name for the hypervisor
log_group_arn(impl Into<String>)
/set_log_group_arn(Option<String>)
:
required: falseThe Amazon Resource Name (ARN) of the group of gateways within the requested log.
- On success, responds with
UpdateHypervisorOutput
with field(s):hypervisor_arn(Option<String>)
:The Amazon Resource Name (ARN) of the hypervisor you updated.
- On failure, responds with
SdkError<UpdateHypervisorError>
Source§impl Client
impl Client
Sourcepub fn from_conf(conf: Config) -> Self
pub fn from_conf(conf: Config) -> Self
Creates a new client from the service Config
.
§Panics
This method will panic in the following cases:
- Retries or timeouts are enabled without a
sleep_impl
configured. - Identity caching is enabled without a
sleep_impl
andtime_source
configured. - No
behavior_version
is provided.
The panic message for each of these will have instructions on how to resolve them.
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. - This method will panic if no
BehaviorVersion
is provided. If you experience this panic, setbehavior_version
on the Config or enable thebehavior-version-latest
Cargo feature.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Client
impl !RefUnwindSafe for Client
impl Send for Client
impl Sync for Client
impl Unpin for Client
impl !UnwindSafe for Client
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> Paint for Twhere
T: ?Sized,
impl<T> Paint for Twhere
T: ?Sized,
Source§fn fg(&self, value: Color) -> Painted<&T>
fn fg(&self, value: Color) -> Painted<&T>
Returns a styled value derived from self
with the foreground set to
value
.
This method should be used rarely. Instead, prefer to use color-specific
builder methods like red()
and
green()
, which have the same functionality but are
pithier.
§Example
Set foreground color to white using fg()
:
use yansi::{Paint, Color};
painted.fg(Color::White);
Set foreground color to white using white()
.
use yansi::Paint;
painted.white();
Source§fn bright_black(&self) -> Painted<&T>
fn bright_black(&self) -> Painted<&T>
Source§fn bright_red(&self) -> Painted<&T>
fn bright_red(&self) -> Painted<&T>
Source§fn bright_green(&self) -> Painted<&T>
fn bright_green(&self) -> Painted<&T>
Source§fn bright_yellow(&self) -> Painted<&T>
fn bright_yellow(&self) -> Painted<&T>
Source§fn bright_blue(&self) -> Painted<&T>
fn bright_blue(&self) -> Painted<&T>
Source§fn bright_magenta(&self) -> Painted<&T>
fn bright_magenta(&self) -> Painted<&T>
Source§fn bright_cyan(&self) -> Painted<&T>
fn bright_cyan(&self) -> Painted<&T>
Source§fn bright_white(&self) -> Painted<&T>
fn bright_white(&self) -> Painted<&T>
Source§fn bg(&self, value: Color) -> Painted<&T>
fn bg(&self, value: Color) -> Painted<&T>
Returns a styled value derived from self
with the background set to
value
.
This method should be used rarely. Instead, prefer to use color-specific
builder methods like on_red()
and
on_green()
, which have the same functionality but
are pithier.
§Example
Set background color to red using fg()
:
use yansi::{Paint, Color};
painted.bg(Color::Red);
Set background color to red using on_red()
.
use yansi::Paint;
painted.on_red();
Source§fn on_primary(&self) -> Painted<&T>
fn on_primary(&self) -> Painted<&T>
Source§fn on_magenta(&self) -> Painted<&T>
fn on_magenta(&self) -> Painted<&T>
Source§fn on_bright_black(&self) -> Painted<&T>
fn on_bright_black(&self) -> Painted<&T>
Source§fn on_bright_red(&self) -> Painted<&T>
fn on_bright_red(&self) -> Painted<&T>
Source§fn on_bright_green(&self) -> Painted<&T>
fn on_bright_green(&self) -> Painted<&T>
Source§fn on_bright_yellow(&self) -> Painted<&T>
fn on_bright_yellow(&self) -> Painted<&T>
Source§fn on_bright_blue(&self) -> Painted<&T>
fn on_bright_blue(&self) -> Painted<&T>
Source§fn on_bright_magenta(&self) -> Painted<&T>
fn on_bright_magenta(&self) -> Painted<&T>
Source§fn on_bright_cyan(&self) -> Painted<&T>
fn on_bright_cyan(&self) -> Painted<&T>
Source§fn on_bright_white(&self) -> Painted<&T>
fn on_bright_white(&self) -> Painted<&T>
Source§fn attr(&self, value: Attribute) -> Painted<&T>
fn attr(&self, value: Attribute) -> Painted<&T>
Enables the styling Attribute
value
.
This method should be used rarely. Instead, prefer to use
attribute-specific builder methods like bold()
and
underline()
, which have the same functionality
but are pithier.
§Example
Make text bold using attr()
:
use yansi::{Paint, Attribute};
painted.attr(Attribute::Bold);
Make text bold using using bold()
.
use yansi::Paint;
painted.bold();
Source§fn rapid_blink(&self) -> Painted<&T>
fn rapid_blink(&self) -> Painted<&T>
Source§fn quirk(&self, value: Quirk) -> Painted<&T>
fn quirk(&self, value: Quirk) -> Painted<&T>
Enables the yansi
Quirk
value
.
This method should be used rarely. Instead, prefer to use quirk-specific
builder methods like mask()
and
wrap()
, which have the same functionality but are
pithier.
§Example
Enable wrapping using .quirk()
:
use yansi::{Paint, Quirk};
painted.quirk(Quirk::Wrap);
Enable wrapping using wrap()
.
use yansi::Paint;
painted.wrap();
Source§fn clear(&self) -> Painted<&T>
👎Deprecated since 1.0.1: renamed to resetting()
due to conflicts with Vec::clear()
.
The clear()
method will be removed in a future release.
fn clear(&self) -> Painted<&T>
resetting()
due to conflicts with Vec::clear()
.
The clear()
method will be removed in a future release.Source§fn whenever(&self, value: Condition) -> Painted<&T>
fn whenever(&self, value: Condition) -> Painted<&T>
Conditionally enable styling based on whether the Condition
value
applies. Replaces any previous condition.
See the crate level docs for more details.
§Example
Enable styling painted
only when both stdout
and stderr
are TTYs:
use yansi::{Paint, Condition};
painted.red().on_yellow().whenever(Condition::STDOUTERR_ARE_TTY);