pub struct Client { /* private fields */ }Expand description
Client for AWS Backup External
Client for invoking operations on AWS Backup External. Each operation on AWS Backup External 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_backupexternal::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_backupexternal::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 AssociateDisk operation has
a Client::associate_disk, 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_disk()
.appliance_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_disk(&self) -> AssociateDiskFluentBuilder
pub fn associate_disk(&self) -> AssociateDiskFluentBuilder
Constructs a fluent builder for the AssociateDisk operation.
- The fluent builder is configurable:
appliance_arn(impl Into<String>)/set_appliance_arn(Option<String>):
required: true
The Amazon Resource Name (ARN) of the appliance.node_arn(impl Into<String>)/set_node_arn(Option<String>):
required: true
The Amazon Resource Name (ARN) of the appliance node.disk_identifier(impl Into<String>)/set_disk_identifier(Option<String>):
required: true
The identifier of the disk attached to the appliance node.disk_type(DiskType)/set_disk_type(Option<DiskType>):
required: true
The type of storage provided by the disk.
- On success, responds with
AssociateDiskOutput - On failure, responds with
SdkError<AssociateDiskError>
Source§impl Client
impl Client
Sourcepub fn create_appliance(&self) -> CreateApplianceFluentBuilder
pub fn create_appliance(&self) -> CreateApplianceFluentBuilder
Constructs a fluent builder for the CreateAppliance operation.
- The fluent builder is configurable:
appliance_name(impl Into<String>)/set_appliance_name(Option<String>):
required: true
The name of the appliance.environment_type(ApplianceEnvironmentType)/set_environment_type(Option<ApplianceEnvironmentType>):
required: true
The environment in which the appliance runs.appliance_iam_role_arn(impl Into<String>)/set_appliance_iam_role_arn(Option<String>):
required: true
The Amazon Resource Name (ARN) of the AWS Identity and Access Management (IAM) role used by the appliance.node_fault_tolerance(i32)/set_node_fault_tolerance(Option<i32>):
required: true
The number of node failures that the appliance can tolerate.network_configuration(ApplianceNetworkConfigurationForCreate)/set_network_configuration(Option<ApplianceNetworkConfigurationForCreate>):
required: true
The network configuration of the appliance.client_token(impl Into<String>)/set_client_token(Option<String>):
required: false
A unique, case-sensitive identifier that you provide to ensure that the request is idempotent.tags(impl Into<String>, impl Into<String>)/set_tags(Option<HashMap::<String, String>>):
required: false
The tags to associate with the appliance.
- On success, responds with
CreateApplianceOutputwith field(s):appliance_arn(String): The Amazon Resource Name (ARN) of the appliance.created_at(DateTime): The date and time that the appliance was created.image(Option<String>): The appliance image to deploy: the Amazon Machine Image (AMI) ID for anEC2appliance, or the URL to download the Open Virtual Appliance (OVA) image for aVMWAREappliance.aws_ova_image_root_certificate_download_url(Option<String>): The URL to download the root certificate for the appliance’s Open Virtual Appliance (OVA) image.activation_token(String): The token used to activate the appliance.activation_token_expires_at(DateTime): The date and time that the activation token expires.
- On failure, responds with
SdkError<CreateApplianceError>
Source§impl Client
impl Client
Sourcepub fn create_resource_provider(&self) -> CreateResourceProviderFluentBuilder
pub fn create_resource_provider(&self) -> CreateResourceProviderFluentBuilder
Constructs a fluent builder for the CreateResourceProvider operation.
- The fluent builder is configurable:
appliance_arn(impl Into<String>)/set_appliance_arn(Option<String>):
required: true
The Amazon Resource Name (ARN) of the appliance.client_token(impl Into<String>)/set_client_token(Option<String>):
required: false
A unique, case-sensitive identifier that you provide to ensure that the request is idempotent.name(impl Into<String>)/set_name(Option<String>):
required: false
The name of the resource provider.provider_configuration(ResourceProviderConfiguration)/set_provider_configuration(Option<ResourceProviderConfiguration>):
required: true
The configuration of the resource provider.provider_type(ResourceProviderType)/set_provider_type(Option<ResourceProviderType>):
required: true
The type of resource provider.secret_configuration_arn(impl Into<String>)/set_secret_configuration_arn(Option<String>):
required: false
The Amazon Resource Name (ARN) of the AWS Secrets Manager secret used to access the resource provider.tags(impl Into<String>, impl Into<String>)/set_tags(Option<HashMap::<String, String>>):
required: false
The tags to associate with the resource provider.target_configuration(ResourceTargetConfigurations)/set_target_configuration(Option<ResourceTargetConfigurations>):
required: true
The default backup configurations for the resource provider’s resource targets, by target type.target_tags_on_create(impl Into<String>, impl Into<String>)/set_target_tags_on_create(Option<HashMap::<String, String>>):
required: false
The tags to apply when the resource provider’s resource targets are created.target_tag_keys_to_sync(impl Into<String>)/set_target_tag_keys_to_sync(Option<Vec::<String>>):
required: false
The tag keys whose values are synchronized from external resources to their resource targets.auto_delete_not_found_targets_after_days(i32)/set_auto_delete_not_found_targets_after_days(Option<i32>):
required: false
The number of days after which resource targets with a status ofNOT_FOUNDare automatically deleted.
- On success, responds with
CreateResourceProviderOutputwith field(s):arn(String): The Amazon Resource Name (ARN) of the resource provider.
- On failure, responds with
SdkError<CreateResourceProviderError>
Source§impl Client
impl Client
Sourcepub fn delete_appliance(&self) -> DeleteApplianceFluentBuilder
pub fn delete_appliance(&self) -> DeleteApplianceFluentBuilder
Constructs a fluent builder for the DeleteAppliance operation.
- The fluent builder is configurable:
appliance_arn(impl Into<String>)/set_appliance_arn(Option<String>):
required: true
The Amazon Resource Name (ARN) of the appliance.force(bool)/set_force(Option<bool>):
required: false
Specifies whether to delete the appliance without waiting for the appliance to confirm the deletion. You can force deletion only when the appliance management status isDISCONNECTEDorDELETE_FAILED.
- On success, responds with
DeleteApplianceOutputwith field(s):appliance_arn(String): The Amazon Resource Name (ARN) of the appliance.appliance_management_status(ApplianceManagementStatus): The management status of the appliance.
- On failure, responds with
SdkError<DeleteApplianceError>
Source§impl Client
impl Client
Sourcepub fn delete_node(&self) -> DeleteNodeFluentBuilder
pub fn delete_node(&self) -> DeleteNodeFluentBuilder
Constructs a fluent builder for the DeleteNode operation.
- The fluent builder is configurable:
appliance_arn(impl Into<String>)/set_appliance_arn(Option<String>):
required: true
The Amazon Resource Name (ARN) of the appliance.node_arn(impl Into<String>)/set_node_arn(Option<String>):
required: true
The Amazon Resource Name (ARN) of the appliance node.
- On success, responds with
DeleteNodeOutputwith field(s):appliance_arn(String): The Amazon Resource Name (ARN) of the appliance.node_arn(String): The Amazon Resource Name (ARN) of the appliance node.node_management_status(NodeManagementStatus): The management status of the appliance node.
- On failure, responds with
SdkError<DeleteNodeError>
Source§impl Client
impl Client
Sourcepub fn delete_resource_provider(&self) -> DeleteResourceProviderFluentBuilder
pub fn delete_resource_provider(&self) -> DeleteResourceProviderFluentBuilder
Constructs a fluent builder for the DeleteResourceProvider operation.
- The fluent builder is configurable:
arn(impl Into<String>)/set_arn(Option<String>):
required: true
The Amazon Resource Name (ARN) of the resource provider.
- On success, responds with
DeleteResourceProviderOutput - On failure, responds with
SdkError<DeleteResourceProviderError>
Source§impl Client
impl Client
Sourcepub fn delete_resource_target(&self) -> DeleteResourceTargetFluentBuilder
pub fn delete_resource_target(&self) -> DeleteResourceTargetFluentBuilder
Constructs a fluent builder for the DeleteResourceTarget operation.
- The fluent builder is configurable:
arn(impl Into<String>)/set_arn(Option<String>):
required: true
The Amazon Resource Name (ARN) of the resource target.
- On success, responds with
DeleteResourceTargetOutput - On failure, responds with
SdkError<DeleteResourceTargetError>
Source§impl Client
impl Client
Sourcepub fn get_activation_credentials(
&self,
) -> GetActivationCredentialsFluentBuilder
pub fn get_activation_credentials( &self, ) -> GetActivationCredentialsFluentBuilder
Constructs a fluent builder for the GetActivationCredentials operation.
- The fluent builder is configurable:
appliance_arn(impl Into<String>)/set_appliance_arn(Option<String>):
required: true
The Amazon Resource Name (ARN) of the appliance.
- On success, responds with
GetActivationCredentialsOutputwith field(s):image(Option<String>): The appliance image to deploy: the Amazon Machine Image (AMI) ID for anEC2appliance, or the URL to download the Open Virtual Appliance (OVA) image for aVMWAREappliance.aws_ova_image_root_certificate_download_url(Option<String>): The URL to download the root certificate for the appliance’s Open Virtual Appliance (OVA) image.activation_token_expires_at(DateTime): The date and time that the activation token expires.activation_token(String): The token used to activate the appliance.
- On failure, responds with
SdkError<GetActivationCredentialsError>
Source§impl Client
impl Client
Sourcepub fn get_agent_download(&self) -> GetAgentDownloadFluentBuilder
pub fn get_agent_download(&self) -> GetAgentDownloadFluentBuilder
Constructs a fluent builder for the GetAgentDownload operation.
- The fluent builder is configurable:
appliance_arn(impl Into<String>)/set_appliance_arn(Option<String>):
required: true
The Amazon Resource Name (ARN) of the appliance.platform(AgentPlatform)/set_platform(Option<AgentPlatform>):
required: true
The platform and installation format for the agent download.
- On success, responds with
GetAgentDownloadOutputwith field(s):agent_download_url(String): The URL to download the agent installer.agent_version(String): The version of the agent available for download.signing_certificate_download_url(Option<String>): Public URL of the certificate that signed the installer.agent_certificate_bundle_download_url(Option<String>): Presigned URL for this appliance’s agent certificate bundle, passed to the agent installer. Valid for 15 minutes.
- On failure, responds with
SdkError<GetAgentDownloadError>
Source§impl Client
impl Client
Sourcepub fn get_agent_upgrade_settings(&self) -> GetAgentUpgradeSettingsFluentBuilder
pub fn get_agent_upgrade_settings(&self) -> GetAgentUpgradeSettingsFluentBuilder
Constructs a fluent builder for the GetAgentUpgradeSettings operation.
- The fluent builder is configurable:
appliance_arn(impl Into<String>)/set_appliance_arn(Option<String>):
required: true
The Amazon Resource Name (ARN) of the appliance.
- On success, responds with
GetAgentUpgradeSettingsOutputwith field(s):enable_auto_upgrade(bool): Specifies whether automatic agent upgrades are enabled for the appliance.start_hour_utc(Option<i32>): Hour of day in UTC (0-23 inclusive).end_hour_utc(Option<i32>): Hour of day in UTC (0-23 inclusive).
- On failure, responds with
SdkError<GetAgentUpgradeSettingsError>
Source§impl Client
impl Client
Sourcepub fn get_appliance(&self) -> GetApplianceFluentBuilder
pub fn get_appliance(&self) -> GetApplianceFluentBuilder
Constructs a fluent builder for the GetAppliance operation.
- The fluent builder is configurable:
appliance_arn(impl Into<String>)/set_appliance_arn(Option<String>):
required: true
The Amazon Resource Name (ARN) of the appliance.
- On success, responds with
GetApplianceOutputwith field(s):appliance_arn(String): The Amazon Resource Name (ARN) of the appliance.appliance_name(String): The name of the appliance.environment_type(ApplianceEnvironmentType): The environment in which the appliance runs.appliance_iam_role_arn(String): The Amazon Resource Name (ARN) of the AWS Identity and Access Management (IAM) role used by the appliance.node_fault_tolerance(i32): The number of node failures that the appliance can tolerate.network_configuration(Option<ApplianceNetworkConfigurationForGetAppliance>): The network configuration of the appliance.appliance_management_status(ApplianceManagementStatus): The management status of the appliance.appliance_operation_mode(ApplianceOperationMode): The operation mode of the appliance.health_status(Option<ApplianceHealthStatus>): The health status of the appliance.notifications(Option<Vec::<Notification>>): The notifications for the appliance.created_at(DateTime): The date and time that the appliance was created.deleted_at(Option<DateTime>): The date and time that the appliance was deleted.patched_at(Option<DateTime>): The date and time that the appliance was last patched.software_version(Option<String>): The software version of the appliance.tags(Option<HashMap::<String, String>>): The tags associated with the resource.
- On failure, responds with
SdkError<GetApplianceError>
Source§impl Client
impl Client
Sourcepub fn get_appliance_sizing_recommendation(
&self,
) -> GetApplianceSizingRecommendationFluentBuilder
pub fn get_appliance_sizing_recommendation( &self, ) -> GetApplianceSizingRecommendationFluentBuilder
Constructs a fluent builder for the GetApplianceSizingRecommendation operation.
- The fluent builder is configurable:
workloads(SizingWorkload)/set_workloads(Option<Vec::<SizingWorkload>>):
required: true
The workloads for which to calculate appliance sizing recommendations.projection_years(i32)/set_projection_years(Option<i32>):
required: true
The number of years for which to calculate appliance sizing projections.node_fault_tolerance(i32)/set_node_fault_tolerance(Option<i32>):
required: false
The number of node failures that the appliance can tolerate.node_type(SizingNodeType)/set_node_type(Option<SizingNodeType>):
required: true
The type of appliance node to use in the sizing calculation.
- On success, responds with
GetApplianceSizingRecommendationOutputwith field(s):projections(Vec::<SizingProjection>): The yearly appliance sizing projections for the specified workloads.
- On failure, responds with
SdkError<GetApplianceSizingRecommendationError>
Source§impl Client
impl Client
Sourcepub fn get_node(&self) -> GetNodeFluentBuilder
pub fn get_node(&self) -> GetNodeFluentBuilder
Constructs a fluent builder for the GetNode operation.
- The fluent builder is configurable:
appliance_arn(impl Into<String>)/set_appliance_arn(Option<String>):
required: true
The Amazon Resource Name (ARN) of the appliance.node_arn(impl Into<String>)/set_node_arn(Option<String>):
required: true
The Amazon Resource Name (ARN) of the appliance node.
- On success, responds with
GetNodeOutputwith field(s):appliance_arn(String): The Amazon Resource Name (ARN) of the appliance.node_arn(String): The Amazon Resource Name (ARN) of the appliance node.ip_address(String): The IP address of the appliance node.environment_type(ApplianceEnvironmentType): The environment in which the appliance runs.node_management_status(NodeManagementStatus): The management status of the appliance node.health_status(Option<NodeHealthStatus>): The health status of the appliance node.notifications(Option<Vec::<Notification>>): The notifications for the appliance node.created_at(DateTime): The date and time that the appliance node was created.deleted_at(Option<DateTime>): The date and time that the appliance node was deleted.software_version(Option<String>): The software version of the appliance node.tags(Option<HashMap::<String, String>>): The tags associated with the resource.
- On failure, responds with
SdkError<GetNodeError>
Source§impl Client
impl Client
Sourcepub fn get_resource_provider(&self) -> GetResourceProviderFluentBuilder
pub fn get_resource_provider(&self) -> GetResourceProviderFluentBuilder
Constructs a fluent builder for the GetResourceProvider operation.
- The fluent builder is configurable:
arn(impl Into<String>)/set_arn(Option<String>):
required: true
The Amazon Resource Name (ARN) of the resource provider.
- On success, responds with
GetResourceProviderOutputwith field(s):agent_compliance_status(Option<ResourceProviderAgentComplianceStatus>): The compliance status of the resource provider’s agent version.agent_upgrade_status(Option<ResourceProviderAgentUpgradeStatus>): The status of the resource provider’s agent upgrade.agent_upgrade_status_message(Option<String>): The message describing the status of the resource provider’s agent upgrade.agent_version_current(Option<String>): The current version of the resource provider’s agent.agent_version_latest(Option<String>): The latest version of the agent available for the resource provider.appliance_arn(String): The Amazon Resource Name (ARN) of the appliance.arn(String): The Amazon Resource Name (ARN) of the resource provider.created_at(DateTime): The date and time that the resource provider was created.last_sync_started_at(Option<DateTime>): The date and time that the resource provider’s most recent synchronization started.last_sync_completed_at(Option<DateTime>): The date and time that the resource provider’s most recent synchronization completed.name(Option<String>): The name of the resource provider.provider_configuration(Option<ResourceProviderConfiguration>): The configuration of the resource provider.provider_metadata(Option<ResourceProviderMetadata>): The metadata describing the resource provider.provider_type(ResourceProviderType): The type of resource provider.secret_configuration_arn(Option<String>): The Amazon Resource Name (ARN) of the AWS Secrets Manager secret used to access the resource provider.status(ResourceProviderStatus): The status of the resource provider.status_message(Option<String>): The message describing the status of the resource provider.target_configuration(Option<ResourceTargetConfigurations>): The default backup configurations for the resource provider’s resource targets, by target type.target_tags_on_create(Option<HashMap::<String, String>>): The tags to apply when the resource provider’s resource targets are created.target_tag_keys_to_sync(Option<Vec::<String>>): The tag keys whose values are synchronized from external resources to their resource targets.auto_delete_not_found_targets_after_days(Option<i32>): The number of days after which resource targets with a status ofNOT_FOUNDare automatically deleted.updated_at(Option<DateTime>): The date and time that the resource provider was last updated.
- On failure, responds with
SdkError<GetResourceProviderError>
Source§impl Client
impl Client
Sourcepub fn get_resource_target(&self) -> GetResourceTargetFluentBuilder
pub fn get_resource_target(&self) -> GetResourceTargetFluentBuilder
Constructs a fluent builder for the GetResourceTarget operation.
- The fluent builder is configurable:
arn(impl Into<String>)/set_arn(Option<String>):
required: true
The Amazon Resource Name (ARN) of the resource target.
- On success, responds with
GetResourceTargetOutputwith field(s):arn(String): The Amazon Resource Name (ARN) of the resource target.created_at(DateTime): The date and time that the resource target was created.external_identifier(Option<String>): The identifier of the resource target in the external system.external_name(Option<String>): The name of the resource target in the external system.last_synced_at(Option<DateTime>): The date and time that the resource target was last synchronized with its resource provider.name(Option<String>): The name of the resource target.provider_arn(String): The Amazon Resource Name (ARN) of the resource target’s provider.provider_type(ResourceProviderType): The type of resource provider.status(ResourceTargetStatus): The status of the resource target.status_message(Option<String>): The message describing the status of the resource target.target_configuration(Option<ResourceTargetConfiguration>): The backup configuration for the resource target.target_configuration_source(ResourceTargetConfigurationSource): The source of the resource target’s backup configuration.target_metadata(Option<ResourceTargetMetadata>): The metadata describing the resource target.target_type(ResourceTargetType): The type of resource target.updated_at(Option<DateTime>): The date and time that the resource target was last updated.
- On failure, responds with
SdkError<GetResourceTargetError>
Source§impl Client
impl Client
Sourcepub fn list_appliances(&self) -> ListAppliancesFluentBuilder
pub fn list_appliances(&self) -> ListAppliancesFluentBuilder
Constructs a fluent builder for the ListAppliances operation.
This operation supports pagination; See into_paginator().
- The fluent builder is configurable:
max_results(i32)/set_max_results(Option<i32>):
required: false
The maximum number of results to return in a single response.next_token(impl Into<String>)/set_next_token(Option<String>):
required: false
The token returned by a previous call to retrieve the next page of results.
- On success, responds with
ListAppliancesOutputwith field(s):appliances(Vec::<ApplianceListMember>): The list of appliance summaries.next_token(Option<String>): The token to use to retrieve the next page of results. If there are no additional results, this value is not returned.
- On failure, responds with
SdkError<ListAppliancesError>
Source§impl Client
impl Client
Sourcepub fn list_disks(&self) -> ListDisksFluentBuilder
pub fn list_disks(&self) -> ListDisksFluentBuilder
Constructs a fluent builder for the ListDisks operation.
This operation supports pagination; See into_paginator().
- The fluent builder is configurable:
appliance_arn(impl Into<String>)/set_appliance_arn(Option<String>):
required: true
The Amazon Resource Name (ARN) of the appliance.node_arn(impl Into<String>)/set_node_arn(Option<String>):
required: true
The Amazon Resource Name (ARN) of the appliance node.max_results(i32)/set_max_results(Option<i32>):
required: false
The maximum number of results to return in a single response.next_token(impl Into<String>)/set_next_token(Option<String>):
required: false
The token returned by a previous call to retrieve the next page of results.
- On success, responds with
ListDisksOutputwith field(s):disks(Vec::<ListDisksDiskSummary>): The list of disks attached to the appliance node.next_token(Option<String>): The token to use to retrieve the next page of results. If there are no additional results, this value is not returned.
- On failure, responds with
SdkError<ListDisksError>
Source§impl Client
impl Client
Sourcepub fn list_nodes(&self) -> ListNodesFluentBuilder
pub fn list_nodes(&self) -> ListNodesFluentBuilder
Constructs a fluent builder for the ListNodes operation.
This operation supports pagination; See into_paginator().
- The fluent builder is configurable:
appliance_arn(impl Into<String>)/set_appliance_arn(Option<String>):
required: true
The Amazon Resource Name (ARN) of the appliance.max_results(i32)/set_max_results(Option<i32>):
required: false
The maximum number of results to return in a single response.next_token(impl Into<String>)/set_next_token(Option<String>):
required: false
The token returned by a previous call to retrieve the next page of results.
- On success, responds with
ListNodesOutputwith field(s):nodes(Vec::<ApplianceNodeListMember>): The list of nodes belonging to the appliance.next_token(Option<String>): The token to use to retrieve the next page of results. If there are no additional results, this value is not returned.
- On failure, responds with
SdkError<ListNodesError>
Source§impl Client
impl Client
Sourcepub fn list_resource_providers(&self) -> ListResourceProvidersFluentBuilder
pub fn list_resource_providers(&self) -> ListResourceProvidersFluentBuilder
Constructs a fluent builder for the ListResourceProviders operation.
This operation supports pagination; See into_paginator().
- The fluent builder is configurable:
appliance_arn(impl Into<String>)/set_appliance_arn(Option<String>):
required: false
The Amazon Resource Name (ARN) of the appliance by which to filter the results.max_results(i32)/set_max_results(Option<i32>):
required: false
The maximum number of results to return in a single response.next_token(impl Into<String>)/set_next_token(Option<String>):
required: false
The token returned by a previous call to retrieve the next page of results.resource_provider_type(ResourceProviderType)/set_resource_provider_type(Option<ResourceProviderType>):
required: false
The resource provider type by which to filter the results.
- On success, responds with
ListResourceProvidersOutputwith field(s):next_token(Option<String>): The token to use to retrieve the next page of results. If there are no additional results, this value is not returned.items(Vec::<ResourceProviderListItem>): The list of resource provider summaries.
- On failure, responds with
SdkError<ListResourceProvidersError>
Source§impl Client
impl Client
Sourcepub fn list_resource_targets(&self) -> ListResourceTargetsFluentBuilder
pub fn list_resource_targets(&self) -> ListResourceTargetsFluentBuilder
Constructs a fluent builder for the ListResourceTargets operation.
This operation supports pagination; See into_paginator().
- The fluent builder is configurable:
max_results(i32)/set_max_results(Option<i32>):
required: false
The maximum number of results to return in a single response.next_token(impl Into<String>)/set_next_token(Option<String>):
required: false
The token returned by a previous call to retrieve the next page of results.resource_provider_arn(impl Into<String>)/set_resource_provider_arn(Option<String>):
required: false
The Amazon Resource Name (ARN) of the resource provider by which to filter the results.resource_target_type(ResourceTargetType)/set_resource_target_type(Option<ResourceTargetType>):
required: false
The resource target type by which to filter the results.
- On success, responds with
ListResourceTargetsOutputwith field(s):items(Vec::<ResourceTargetListItem>): The list of resource target summaries.next_token(Option<String>): The token to use to retrieve the next page of results. If there are no additional results, this value is not returned.
- On failure, responds with
SdkError<ListResourceTargetsError>
Source§impl Client
impl Client
Constructs a fluent builder for the ListTags operation.
- The fluent builder is configurable:
resource_arn(impl Into<String>)/set_resource_arn(Option<String>):
required: true
The Amazon Resource Name (ARN) of the resource.
- On success, responds with
ListTagsOutputwith field(s):tags(HashMap::<String, String>): The tags associated with the resource.
- On failure, responds with
SdkError<ListTagsError>
Source§impl Client
impl Client
Sourcepub fn put_agent_upgrade_settings(&self) -> PutAgentUpgradeSettingsFluentBuilder
pub fn put_agent_upgrade_settings(&self) -> PutAgentUpgradeSettingsFluentBuilder
Constructs a fluent builder for the PutAgentUpgradeSettings operation.
- The fluent builder is configurable:
appliance_arn(impl Into<String>)/set_appliance_arn(Option<String>):
required: true
The Amazon Resource Name (ARN) of the appliance.enable_auto_upgrade(bool)/set_enable_auto_upgrade(Option<bool>):
required: true
Specifies whether automatic agent upgrades are enabled for the appliance.start_hour_utc(i32)/set_start_hour_utc(Option<i32>):
required: false
Hour of day in UTC (0-23 inclusive).end_hour_utc(i32)/set_end_hour_utc(Option<i32>):
required: false
Hour of day in UTC (0-23 inclusive).
- On success, responds with
PutAgentUpgradeSettingsOutput - On failure, responds with
SdkError<PutAgentUpgradeSettingsError>
Source§impl Client
impl Client
Sourcepub fn start_resource_provider_agent_upgrade(
&self,
) -> StartResourceProviderAgentUpgradeFluentBuilder
pub fn start_resource_provider_agent_upgrade( &self, ) -> StartResourceProviderAgentUpgradeFluentBuilder
Constructs a fluent builder for the StartResourceProviderAgentUpgrade operation.
- The fluent builder is configurable:
arn(impl Into<String>)/set_arn(Option<String>):
required: true
The Amazon Resource Name (ARN) of the resource provider.
- On success, responds with
StartResourceProviderAgentUpgradeOutputwith field(s):upgrade_started_at(Option<DateTime>): The date and time that the resource provider’s agent upgrade started.
- On failure, responds with
SdkError<StartResourceProviderAgentUpgradeError>
Source§impl Client
impl Client
Sourcepub fn start_resource_provider_migration(
&self,
) -> StartResourceProviderMigrationFluentBuilder
pub fn start_resource_provider_migration( &self, ) -> StartResourceProviderMigrationFluentBuilder
Constructs a fluent builder for the StartResourceProviderMigration operation.
- The fluent builder is configurable:
arn(impl Into<String>)/set_arn(Option<String>):
required: true
The Amazon Resource Name (ARN) of the resource provider.destination_appliance_arn(impl Into<String>)/set_destination_appliance_arn(Option<String>):
required: true
The Amazon Resource Name (ARN) of the appliance to which the resource provider is migrated.
- On success, responds with
StartResourceProviderMigrationOutputwith field(s):migration_started_at(Option<DateTime>): The date and time that migration of the resource provider started.
- On failure, responds with
SdkError<StartResourceProviderMigrationError>
Source§impl Client
impl Client
Sourcepub fn start_resource_provider_sync(
&self,
) -> StartResourceProviderSyncFluentBuilder
pub fn start_resource_provider_sync( &self, ) -> StartResourceProviderSyncFluentBuilder
Constructs a fluent builder for the StartResourceProviderSync operation.
- The fluent builder is configurable:
arn(impl Into<String>)/set_arn(Option<String>):
required: true
The Amazon Resource Name (ARN) of the resource provider.
- On success, responds with
StartResourceProviderSyncOutputwith field(s):sync_started_at(Option<DateTime>): The date and time that synchronization of the resource provider’s resource targets started.
- On failure, responds with
SdkError<StartResourceProviderSyncError>
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: true
The Amazon Resource Name (ARN) of the resource.tags(impl Into<String>, impl Into<String>)/set_tags(Option<HashMap::<String, String>>):
required: true
The tags to add or update on 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>):
required: true
The Amazon Resource Name (ARN) of the resource.tag_keys(impl Into<String>)/set_tag_keys(Option<Vec::<String>>):
required: true
The keys of the tags to remove from the resource.
- On success, responds with
UntagResourceOutput - On failure, responds with
SdkError<UntagResourceError>
Source§impl Client
impl Client
Sourcepub fn update_appliance(&self) -> UpdateApplianceFluentBuilder
pub fn update_appliance(&self) -> UpdateApplianceFluentBuilder
Constructs a fluent builder for the UpdateAppliance operation.
- The fluent builder is configurable:
appliance_arn(impl Into<String>)/set_appliance_arn(Option<String>):
required: true
The Amazon Resource Name (ARN) of the appliance.appliance_name(impl Into<String>)/set_appliance_name(Option<String>):
required: false
The name of the appliance.appliance_iam_role_arn(impl Into<String>)/set_appliance_iam_role_arn(Option<String>):
required: false
The Amazon Resource Name (ARN) of the AWS Identity and Access Management (IAM) role used by the appliance.node_fault_tolerance(i32)/set_node_fault_tolerance(Option<i32>):
required: false
The number of node failures that the appliance can tolerate.network_configuration(ApplianceNetworkConfigurationForUpdate)/set_network_configuration(Option<ApplianceNetworkConfigurationForUpdate>):
required: false
The network configuration of the appliance.appliance_operation_mode(ApplianceOperationModeForUpdate)/set_appliance_operation_mode(Option<ApplianceOperationModeForUpdate>):
required: false
The operation mode of the appliance.
- On success, responds with
UpdateApplianceOutputwith field(s):appliance_arn(String): The Amazon Resource Name (ARN) of the appliance.appliance_name(Option<String>): The name of the appliance.appliance_operation_mode(Option<ApplianceOperationMode>): The operation mode of the appliance.
- On failure, responds with
SdkError<UpdateApplianceError>
Source§impl Client
impl Client
Sourcepub fn update_resource_provider(&self) -> UpdateResourceProviderFluentBuilder
pub fn update_resource_provider(&self) -> UpdateResourceProviderFluentBuilder
Constructs a fluent builder for the UpdateResourceProvider operation.
- The fluent builder is configurable:
arn(impl Into<String>)/set_arn(Option<String>):
required: true
The Amazon Resource Name (ARN) of the resource provider.name(impl Into<String>)/set_name(Option<String>):
required: false
The name of the resource provider.provider_configuration(ResourceProviderConfiguration)/set_provider_configuration(Option<ResourceProviderConfiguration>):
required: false
The configuration of the resource provider.secret_configuration_arn(impl Into<String>)/set_secret_configuration_arn(Option<String>):
required: false
The Amazon Resource Name (ARN) of the AWS Secrets Manager secret used to access the resource provider.target_configuration(ResourceTargetConfigurations)/set_target_configuration(Option<ResourceTargetConfigurations>):
required: false
The default backup configurations for the resource provider’s resource targets, by target type.target_tags_on_create(impl Into<String>, impl Into<String>)/set_target_tags_on_create(Option<HashMap::<String, String>>):
required: false
The tags to apply when the resource provider’s resource targets are created.target_tag_keys_to_sync(impl Into<String>)/set_target_tag_keys_to_sync(Option<Vec::<String>>):
required: false
The tag keys whose values are synchronized from external resources to their resource targets.auto_delete_not_found_targets_after_days(i32)/set_auto_delete_not_found_targets_after_days(Option<i32>):
required: false
The number of days after which resource targets with a status ofNOT_FOUNDare automatically deleted. Specify-1to disable automatic deletion.
- On success, responds with
UpdateResourceProviderOutput - On failure, responds with
SdkError<UpdateResourceProviderError>
Source§impl Client
impl Client
Sourcepub fn update_resource_target(&self) -> UpdateResourceTargetFluentBuilder
pub fn update_resource_target(&self) -> UpdateResourceTargetFluentBuilder
Constructs a fluent builder for the UpdateResourceTarget operation.
- The fluent builder is configurable:
arn(impl Into<String>)/set_arn(Option<String>):
required: true
The Amazon Resource Name (ARN) of the resource target.name(impl Into<String>)/set_name(Option<String>):
required: false
The name of the resource target.target_configuration(ResourceTargetConfiguration)/set_target_configuration(Option<ResourceTargetConfiguration>):
required: false
The backup configuration for the resource target.target_configuration_source(ResourceTargetConfigurationSource)/set_target_configuration_source(Option<ResourceTargetConfigurationSource>):
required: false
The source of the resource target’s backup configuration.
- On success, responds with
UpdateResourceTargetOutput - On failure, responds with
SdkError<UpdateResourceTargetError>
Source§impl Client
impl Client
Sourcepub fn verify_nodes(&self) -> VerifyNodesFluentBuilder
pub fn verify_nodes(&self) -> VerifyNodesFluentBuilder
Constructs a fluent builder for the VerifyNodes operation.
- The fluent builder is configurable:
appliance_arn(impl Into<String>)/set_appliance_arn(Option<String>):
required: true
The Amazon Resource Name (ARN) of the appliance.node_arns(impl Into<String>)/set_node_arns(Option<Vec::<String>>):
required: true
The Amazon Resource Names (ARNs) of the appliance nodes to verify.
- On success, responds with
VerifyNodesOutputwith field(s):verified_nodes(Vec::<VerifiedApplianceNodeListMember>): The verification results for the specified appliance nodes.
- On failure, responds with
SdkError<VerifyNodesError>
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_implconfigured. - Identity caching is enabled without a
sleep_implandtime_sourceconfigured. - No
behavior_versionis 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_configis missing an async sleep implementation. If you experience this panic, set thesleep_implon the Config passed into this function to fix it. - This method will panic if the
sdk_configis missing an HTTP connector. If you experience this panic, set thehttp_connectoron the Config passed into this function to fix it. - This method will panic if no
BehaviorVersionis provided. If you experience this panic, setbehavior_versionon the Config or enable thebehavior-version-latestCargo feature.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Client
impl !UnwindSafe for Client
impl Forget for Client
impl Freeze for Client
impl Move for Client
impl Send for Client
impl Sync for Client
impl Unpin for Client
impl UnsafeUnpin 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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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>
renamed to 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);