pub struct Client { /* private fields */ }Expand description
Client for AWS Resilience Hub
Client for invoking operations on AWS Resilience Hub. Each operation on AWS Resilience Hub 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_resiliencehub::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_resiliencehub::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 AcceptResourceGroupingRecommendations operation has
a Client::accept_resource_grouping_recommendations, 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.accept_resource_grouping_recommendations()
.app_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 accept_resource_grouping_recommendations(
&self,
) -> AcceptResourceGroupingRecommendationsFluentBuilder
pub fn accept_resource_grouping_recommendations( &self, ) -> AcceptResourceGroupingRecommendationsFluentBuilder
Constructs a fluent builder for the AcceptResourceGroupingRecommendations operation.
- The fluent builder is configurable:
app_arn(impl Into<String>)/set_app_arn(Option<String>):
required: trueAmazon Resource Name (ARN) of the Resilience Hub application. The format for this ARN is: arn:
partition:resiliencehub:region:account:app/app-id. For more information about ARNs, see Amazon Resource Names (ARNs) in the Amazon Web Services General Reference guide.entries(AcceptGroupingRecommendationEntry)/set_entries(Option<Vec::<AcceptGroupingRecommendationEntry>>):
required: trueList of resource grouping recommendations you want to include in your application.
- On success, responds with
AcceptResourceGroupingRecommendationsOutputwith field(s):app_arn(String):Amazon Resource Name (ARN) of the Resilience Hub application. The format for this ARN is: arn:
partition:resiliencehub:region:account:app/app-id. For more information about ARNs, see Amazon Resource Names (ARNs) in the Amazon Web Services General Reference guide.failed_entries(Vec::<FailedGroupingRecommendationEntry>):List of resource grouping recommendations that could not be included in your application.
- On failure, responds with
SdkError<AcceptResourceGroupingRecommendationsError>
Source§impl Client
impl Client
Sourcepub fn add_draft_app_version_resource_mappings(
&self,
) -> AddDraftAppVersionResourceMappingsFluentBuilder
pub fn add_draft_app_version_resource_mappings( &self, ) -> AddDraftAppVersionResourceMappingsFluentBuilder
Constructs a fluent builder for the AddDraftAppVersionResourceMappings operation.
- The fluent builder is configurable:
app_arn(impl Into<String>)/set_app_arn(Option<String>):
required: trueAmazon Resource Name (ARN) of the Resilience Hub application. The format for this ARN is: arn:
partition:resiliencehub:region:account:app/app-id. For more information about ARNs, see Amazon Resource Names (ARNs) in the Amazon Web Services General Reference guide.resource_mappings(ResourceMapping)/set_resource_mappings(Option<Vec::<ResourceMapping>>):
required: trueMappings used to map logical resources from the template to physical resources. You can use the mapping type
CFN_STACKif the application template uses a logical stack name. Or you can map individual resources by using the mapping typeRESOURCE. We recommend using the mapping typeCFN_STACKif the application is backed by a CloudFormation stack.
- On success, responds with
AddDraftAppVersionResourceMappingsOutputwith field(s):app_arn(String):Amazon Resource Name (ARN) of the Resilience Hub application. The format for this ARN is: arn:
partition:resiliencehub:region:account:app/app-id. For more information about ARNs, see Amazon Resource Names (ARNs) in the Amazon Web Services General Reference guide.app_version(String):The version of the application.
resource_mappings(Vec::<ResourceMapping>):List of sources that are used to map a logical resource from the template to a physical resource. You can use sources such as CloudFormation, Terraform state files, AppRegistry applications, or Amazon EKS.
- On failure, responds with
SdkError<AddDraftAppVersionResourceMappingsError>
Source§impl Client
impl Client
Sourcepub fn batch_update_recommendation_status(
&self,
) -> BatchUpdateRecommendationStatusFluentBuilder
pub fn batch_update_recommendation_status( &self, ) -> BatchUpdateRecommendationStatusFluentBuilder
Constructs a fluent builder for the BatchUpdateRecommendationStatus operation.
- The fluent builder is configurable:
app_arn(impl Into<String>)/set_app_arn(Option<String>):
required: trueAmazon Resource Name (ARN) of the Resilience Hub application. The format for this ARN is: arn:
partition:resiliencehub:region:account:app/app-id. For more information about ARNs, see Amazon Resource Names (ARNs) in the Amazon Web Services General Reference guide.request_entries(UpdateRecommendationStatusRequestEntry)/set_request_entries(Option<Vec::<UpdateRecommendationStatusRequestEntry>>):
required: trueDefines the list of operational recommendations that need to be included or excluded.
- On success, responds with
BatchUpdateRecommendationStatusOutputwith field(s):app_arn(String):Amazon Resource Name (ARN) of the Resilience Hub application. The format for this ARN is: arn:
partition:resiliencehub:region:account:app/app-id. For more information about ARNs, see Amazon Resource Names (ARNs) in the Amazon Web Services General Reference guide.successful_entries(Vec::<BatchUpdateRecommendationStatusSuccessfulEntry>):A list of items that were included or excluded.
failed_entries(Vec::<BatchUpdateRecommendationStatusFailedEntry>):A list of items with error details about each item, which could not be included or excluded.
- On failure, responds with
SdkError<BatchUpdateRecommendationStatusError>
Source§impl Client
impl Client
Sourcepub fn create_app(&self) -> CreateAppFluentBuilder
pub fn create_app(&self) -> CreateAppFluentBuilder
Constructs a fluent builder for the CreateApp operation.
- The fluent builder is configurable:
name(impl Into<String>)/set_name(Option<String>):
required: trueName of the application.
description(impl Into<String>)/set_description(Option<String>):
required: falseThe optional description for an app.
policy_arn(impl Into<String>)/set_policy_arn(Option<String>):
required: falseAmazon Resource Name (ARN) of the resiliency policy. The format for this ARN is: arn:
partition:resiliencehub:region:account:resiliency-policy/policy-id. For more information about ARNs, see Amazon Resource Names (ARNs) in the Amazon Web Services General Reference guide.tags(impl Into<String>, impl Into<String>)/set_tags(Option<HashMap::<String, String>>):
required: falseTags assigned to the resource. A tag is a label that you assign to an Amazon Web Services resource. Each tag consists of a key/value pair.
client_token(impl Into<String>)/set_client_token(Option<String>):
required: falseUsed for an idempotency token. A client token is a unique, case-sensitive string of up to 64 ASCII characters. You should not reuse the same client token for other API requests.
assessment_schedule(AppAssessmentScheduleType)/set_assessment_schedule(Option<AppAssessmentScheduleType>):
required: falseAssessment execution schedule with ‘Daily’ or ‘Disabled’ values.
permission_model(PermissionModel)/set_permission_model(Option<PermissionModel>):
required: falseDefines the roles and credentials that Resilience Hub would use while creating the application, importing its resources, and running an assessment.
event_subscriptions(EventSubscription)/set_event_subscriptions(Option<Vec::<EventSubscription>>):
required: falseThe list of events you would like to subscribe and get notification for. Currently, Resilience Hub supports only Drift detected and Scheduled assessment failure events notification.
aws_application_arn(impl Into<String>)/set_aws_application_arn(Option<String>):
required: falseAmazon Resource Name (ARN) of Resource Groups group that is integrated with an AppRegistry application. For more information about ARNs, see Amazon Resource Names (ARNs) in the Amazon Web Services General Reference guide.
- On success, responds with
CreateAppOutputwith field(s):app(Option<App>):The created application returned as an object with details including compliance status, creation time, description, resiliency score, and more.
- On failure, responds with
SdkError<CreateAppError>
Source§impl Client
impl Client
Sourcepub fn create_app_version_app_component(
&self,
) -> CreateAppVersionAppComponentFluentBuilder
pub fn create_app_version_app_component( &self, ) -> CreateAppVersionAppComponentFluentBuilder
Constructs a fluent builder for the CreateAppVersionAppComponent operation.
- The fluent builder is configurable:
app_arn(impl Into<String>)/set_app_arn(Option<String>):
required: trueAmazon Resource Name (ARN) of the Resilience Hub application. The format for this ARN is: arn:
partition:resiliencehub:region:account:app/app-id. For more information about ARNs, see Amazon Resource Names (ARNs) in the Amazon Web Services General Reference guide.id(impl Into<String>)/set_id(Option<String>):
required: falseIdentifier of the Application Component.
name(impl Into<String>)/set_name(Option<String>):
required: trueName of the Application Component.
r#type(impl Into<String>)/set_type(Option<String>):
required: trueType of Application Component. For more information about the types of Application Component, see Grouping resources in an AppComponent.
additional_info(impl Into<String>, Vec::<String>)/set_additional_info(Option<HashMap::<String, Vec::<String>>>):
required: falseCurrently, there is no supported additional information for Application Components.
client_token(impl Into<String>)/set_client_token(Option<String>):
required: falseUsed for an idempotency token. A client token is a unique, case-sensitive string of up to 64 ASCII characters. You should not reuse the same client token for other API requests.
- On success, responds with
CreateAppVersionAppComponentOutputwith field(s):app_arn(String):Amazon Resource Name (ARN) of the Resilience Hub application. The format for this ARN is: arn:
partition:resiliencehub:region:account:app/app-id. For more information about ARNs, see Amazon Resource Names (ARNs) in the Amazon Web Services General Reference guide.app_version(String):Resilience Hub application version.
app_component(Option<AppComponent>):List of Application Components that belong to this resource.
- On failure, responds with
SdkError<CreateAppVersionAppComponentError>
Source§impl Client
impl Client
Sourcepub fn create_app_version_resource(
&self,
) -> CreateAppVersionResourceFluentBuilder
pub fn create_app_version_resource( &self, ) -> CreateAppVersionResourceFluentBuilder
Constructs a fluent builder for the CreateAppVersionResource operation.
- The fluent builder is configurable:
app_arn(impl Into<String>)/set_app_arn(Option<String>):
required: trueAmazon Resource Name (ARN) of the Resilience Hub application. The format for this ARN is: arn:
partition:resiliencehub:region:account:app/app-id. For more information about ARNs, see Amazon Resource Names (ARNs) in the Amazon Web Services General Reference guide.resource_name(impl Into<String>)/set_resource_name(Option<String>):
required: falseName of the resource.
logical_resource_id(LogicalResourceId)/set_logical_resource_id(Option<LogicalResourceId>):
required: trueLogical identifier of the resource.
physical_resource_id(impl Into<String>)/set_physical_resource_id(Option<String>):
required: truePhysical identifier of the resource.
aws_region(impl Into<String>)/set_aws_region(Option<String>):
required: falseAmazon Web Services region that owns the physical resource.
aws_account_id(impl Into<String>)/set_aws_account_id(Option<String>):
required: falseAmazon Web Services account that owns the physical resource.
resource_type(impl Into<String>)/set_resource_type(Option<String>):
required: trueType of resource.
app_components(impl Into<String>)/set_app_components(Option<Vec::<String>>):
required: trueList of Application Components that this resource belongs to. If an Application Component is not part of the Resilience Hub application, it will be added.
additional_info(impl Into<String>, Vec::<String>)/set_additional_info(Option<HashMap::<String, Vec::<String>>>):
required: falseCurrently, there is no supported additional information for resources.
client_token(impl Into<String>)/set_client_token(Option<String>):
required: falseUsed for an idempotency token. A client token is a unique, case-sensitive string of up to 64 ASCII characters. You should not reuse the same client token for other API requests.
- On success, responds with
CreateAppVersionResourceOutputwith field(s):app_arn(String):Amazon Resource Name (ARN) of the Resilience Hub application. The format for this ARN is: arn:
partition:resiliencehub:region:account:app/app-id. For more information about ARNs, see Amazon Resource Names (ARNs) in the Amazon Web Services General Reference guide.app_version(String):Resilience Hub application version.
physical_resource(Option<PhysicalResource>):Defines a physical resource. A physical resource is a resource that exists in your account. It can be identified using an Amazon Resource Name (ARN) or a Resilience Hub-native identifier.
- On failure, responds with
SdkError<CreateAppVersionResourceError>
Source§impl Client
impl Client
Sourcepub fn create_recommendation_template(
&self,
) -> CreateRecommendationTemplateFluentBuilder
pub fn create_recommendation_template( &self, ) -> CreateRecommendationTemplateFluentBuilder
Constructs a fluent builder for the CreateRecommendationTemplate operation.
- The fluent builder is configurable:
recommendation_ids(impl Into<String>)/set_recommendation_ids(Option<Vec::<String>>):
required: falseIdentifiers for the recommendations used to create a recommendation template.
format(TemplateFormat)/set_format(Option<TemplateFormat>):
required: falseThe format for the recommendation template.
- CfnJson
-
The template is CloudFormation JSON.
- CfnYaml
-
The template is CloudFormation YAML.
recommendation_types(RenderRecommendationType)/set_recommendation_types(Option<Vec::<RenderRecommendationType>>):
required: falseAn array of strings that specify the recommendation template type or types.
- Alarm
-
The template is an
AlarmRecommendationtemplate. - Sop
-
The template is a
SopRecommendationtemplate. - Test
-
The template is a
TestRecommendationtemplate.
assessment_arn(impl Into<String>)/set_assessment_arn(Option<String>):
required: trueAmazon Resource Name (ARN) of the assessment. The format for this ARN is: arn:
partition:resiliencehub:region:account:app-assessment/app-id. For more information about ARNs, see Amazon Resource Names (ARNs) in the Amazon Web Services General Reference guide.name(impl Into<String>)/set_name(Option<String>):
required: trueThe name for the recommendation template.
client_token(impl Into<String>)/set_client_token(Option<String>):
required: falseUsed for an idempotency token. A client token is a unique, case-sensitive string of up to 64 ASCII characters. You should not reuse the same client token for other API requests.
tags(impl Into<String>, impl Into<String>)/set_tags(Option<HashMap::<String, String>>):
required: falseTags assigned to the resource. A tag is a label that you assign to an Amazon Web Services resource. Each tag consists of a key/value pair.
bucket_name(impl Into<String>)/set_bucket_name(Option<String>):
required: falseThe name of the Amazon S3 bucket that will contain the recommendation template.
- On success, responds with
CreateRecommendationTemplateOutputwith field(s):recommendation_template(Option<RecommendationTemplate>):The newly created recommendation template, returned as an object. This object includes the template’s name, format, status, tags, Amazon S3 bucket location, and more.
- On failure, responds with
SdkError<CreateRecommendationTemplateError>
Source§impl Client
impl Client
Sourcepub fn create_resiliency_policy(&self) -> CreateResiliencyPolicyFluentBuilder
pub fn create_resiliency_policy(&self) -> CreateResiliencyPolicyFluentBuilder
Constructs a fluent builder for the CreateResiliencyPolicy operation.
- The fluent builder is configurable:
policy_name(impl Into<String>)/set_policy_name(Option<String>):
required: trueName of the resiliency policy.
policy_description(impl Into<String>)/set_policy_description(Option<String>):
required: falseDescription of the resiliency policy.
data_location_constraint(DataLocationConstraint)/set_data_location_constraint(Option<DataLocationConstraint>):
required: falseSpecifies a high-level geographical location constraint for where your resilience policy data can be stored.
tier(ResiliencyPolicyTier)/set_tier(Option<ResiliencyPolicyTier>):
required: trueThe tier for this resiliency policy, ranging from the highest severity (
MissionCritical) to lowest (NonCritical).policy(DisruptionType, FailurePolicy)/set_policy(Option<HashMap::<DisruptionType, FailurePolicy>>):
required: trueThe type of resiliency policy to be created, including the recovery time objective (RTO) and recovery point objective (RPO) in seconds.
client_token(impl Into<String>)/set_client_token(Option<String>):
required: falseUsed for an idempotency token. A client token is a unique, case-sensitive string of up to 64 ASCII characters. You should not reuse the same client token for other API requests.
tags(impl Into<String>, impl Into<String>)/set_tags(Option<HashMap::<String, String>>):
required: falseTags assigned to the resource. A tag is a label that you assign to an Amazon Web Services resource. Each tag consists of a key/value pair.
- On success, responds with
CreateResiliencyPolicyOutputwith field(s):policy(Option<ResiliencyPolicy>):The type of resiliency policy that was created, including the recovery time objective (RTO) and recovery point objective (RPO) in seconds.
- On failure, responds with
SdkError<CreateResiliencyPolicyError>
Source§impl Client
impl Client
Sourcepub fn delete_app(&self) -> DeleteAppFluentBuilder
pub fn delete_app(&self) -> DeleteAppFluentBuilder
Constructs a fluent builder for the DeleteApp operation.
- The fluent builder is configurable:
app_arn(impl Into<String>)/set_app_arn(Option<String>):
required: trueAmazon Resource Name (ARN) of the Resilience Hub application. The format for this ARN is: arn:
partition:resiliencehub:region:account:app/app-id. For more information about ARNs, see Amazon Resource Names (ARNs) in the Amazon Web Services General Reference guide.force_delete(bool)/set_force_delete(Option<bool>):
required: falseA boolean option to force the deletion of an Resilience Hub application.
client_token(impl Into<String>)/set_client_token(Option<String>):
required: falseUsed for an idempotency token. A client token is a unique, case-sensitive string of up to 64 ASCII characters. You should not reuse the same client token for other API requests.
- On success, responds with
DeleteAppOutputwith field(s):app_arn(String):Amazon Resource Name (ARN) of the Resilience Hub application. The format for this ARN is: arn:
partition:resiliencehub:region:account:app/app-id. For more information about ARNs, see Amazon Resource Names (ARNs) in the Amazon Web Services General Reference guide.
- On failure, responds with
SdkError<DeleteAppError>
Source§impl Client
impl Client
Sourcepub fn delete_app_assessment(&self) -> DeleteAppAssessmentFluentBuilder
pub fn delete_app_assessment(&self) -> DeleteAppAssessmentFluentBuilder
Constructs a fluent builder for the DeleteAppAssessment operation.
- The fluent builder is configurable:
assessment_arn(impl Into<String>)/set_assessment_arn(Option<String>):
required: trueAmazon Resource Name (ARN) of the assessment. The format for this ARN is: arn:
partition:resiliencehub:region:account:app-assessment/app-id. For more information about ARNs, see Amazon Resource Names (ARNs) in the Amazon Web Services General Reference guide.client_token(impl Into<String>)/set_client_token(Option<String>):
required: falseUsed for an idempotency token. A client token is a unique, case-sensitive string of up to 64 ASCII characters. You should not reuse the same client token for other API requests.
- On success, responds with
DeleteAppAssessmentOutputwith field(s):assessment_arn(String):Amazon Resource Name (ARN) of the assessment. The format for this ARN is: arn:
partition:resiliencehub:region:account:app-assessment/app-id. For more information about ARNs, see Amazon Resource Names (ARNs) in the Amazon Web Services General Reference guide.assessment_status(AssessmentStatus):The current status of the assessment for the resiliency policy.
- On failure, responds with
SdkError<DeleteAppAssessmentError>
Source§impl Client
impl Client
Sourcepub fn delete_app_input_source(&self) -> DeleteAppInputSourceFluentBuilder
pub fn delete_app_input_source(&self) -> DeleteAppInputSourceFluentBuilder
Constructs a fluent builder for the DeleteAppInputSource operation.
- The fluent builder is configurable:
app_arn(impl Into<String>)/set_app_arn(Option<String>):
required: trueAmazon Resource Name (ARN) of the Resilience Hub application. The format for this ARN is: arn:
partition:resiliencehub:region:account:app/app-id. For more information about ARNs, see Amazon Resource Names (ARNs) in the Amazon Web Services General Reference guide.source_arn(impl Into<String>)/set_source_arn(Option<String>):
required: falseThe Amazon Resource Name (ARN) of the imported resource you want to remove from the Resilience Hub application. For more information about ARNs, see Amazon Resource Names (ARNs) in the Amazon Web Services General Reference guide.
terraform_source(TerraformSource)/set_terraform_source(Option<TerraformSource>):
required: falseThe imported Terraform s3 state file you want to remove from the Resilience Hub application.
client_token(impl Into<String>)/set_client_token(Option<String>):
required: falseUsed for an idempotency token. A client token is a unique, case-sensitive string of up to 64 ASCII characters. You should not reuse the same client token for other API requests.
eks_source_cluster_namespace(EksSourceClusterNamespace)/set_eks_source_cluster_namespace(Option<EksSourceClusterNamespace>):
required: falseThe namespace on your Amazon Elastic Kubernetes Service cluster that you want to delete from the Resilience Hub application.
- On success, responds with
DeleteAppInputSourceOutputwith field(s):app_arn(Option<String>):Amazon Resource Name (ARN) of the Resilience Hub application. The format for this ARN is: arn:
partition:resiliencehub:region:account:app/app-id. For more information about ARNs, see Amazon Resource Names (ARNs) in the Amazon Web Services General Reference guide.app_input_source(Option<AppInputSource>):Name of the input source from where the application resource is imported from.
- On failure, responds with
SdkError<DeleteAppInputSourceError>
Source§impl Client
impl Client
Sourcepub fn delete_app_version_app_component(
&self,
) -> DeleteAppVersionAppComponentFluentBuilder
pub fn delete_app_version_app_component( &self, ) -> DeleteAppVersionAppComponentFluentBuilder
Constructs a fluent builder for the DeleteAppVersionAppComponent operation.
- The fluent builder is configurable:
app_arn(impl Into<String>)/set_app_arn(Option<String>):
required: trueAmazon Resource Name (ARN) of the Resilience Hub application. The format for this ARN is: arn:
partition:resiliencehub:region:account:app/app-id. For more information about ARNs, see Amazon Resource Names (ARNs) in the Amazon Web Services General Reference guide.id(impl Into<String>)/set_id(Option<String>):
required: trueIdentifier of the Application Component.
client_token(impl Into<String>)/set_client_token(Option<String>):
required: falseUsed for an idempotency token. A client token is a unique, case-sensitive string of up to 64 ASCII characters. You should not reuse the same client token for other API requests.
- On success, responds with
DeleteAppVersionAppComponentOutputwith field(s):app_arn(String):Amazon Resource Name (ARN) of the Resilience Hub application. The format for this ARN is: arn:
partition:resiliencehub:region:account:app/app-id. For more information about ARNs, see Amazon Resource Names (ARNs) in the Amazon Web Services General Reference guide.app_version(String):Resilience Hub application version.
app_component(Option<AppComponent>):List of Application Components that belong to this resource.
- On failure, responds with
SdkError<DeleteAppVersionAppComponentError>
Source§impl Client
impl Client
Sourcepub fn delete_app_version_resource(
&self,
) -> DeleteAppVersionResourceFluentBuilder
pub fn delete_app_version_resource( &self, ) -> DeleteAppVersionResourceFluentBuilder
Constructs a fluent builder for the DeleteAppVersionResource operation.
- The fluent builder is configurable:
app_arn(impl Into<String>)/set_app_arn(Option<String>):
required: trueAmazon Resource Name (ARN) of the Resilience Hub application. The format for this ARN is: arn:
partition:resiliencehub:region:account:app/app-id. For more information about ARNs, see Amazon Resource Names (ARNs) in the Amazon Web Services General Reference guide.resource_name(impl Into<String>)/set_resource_name(Option<String>):
required: falseName of the resource.
logical_resource_id(LogicalResourceId)/set_logical_resource_id(Option<LogicalResourceId>):
required: falseLogical identifier of the resource.
physical_resource_id(impl Into<String>)/set_physical_resource_id(Option<String>):
required: falsePhysical identifier of the resource.
aws_region(impl Into<String>)/set_aws_region(Option<String>):
required: falseAmazon Web Services region that owns the physical resource.
aws_account_id(impl Into<String>)/set_aws_account_id(Option<String>):
required: falseAmazon Web Services account that owns the physical resource.
client_token(impl Into<String>)/set_client_token(Option<String>):
required: falseUsed for an idempotency token. A client token is a unique, case-sensitive string of up to 64 ASCII characters. You should not reuse the same client token for other API requests.
- On success, responds with
DeleteAppVersionResourceOutputwith field(s):app_arn(String):Amazon Resource Name (ARN) of the Resilience Hub application. The format for this ARN is: arn:
partition:resiliencehub:region:account:app/app-id. For more information about ARNs, see Amazon Resource Names (ARNs) in the Amazon Web Services General Reference guide.app_version(String):Resilience Hub application version.
physical_resource(Option<PhysicalResource>):Defines a physical resource. A physical resource is a resource that exists in your account. It can be identified using an Amazon Resource Name (ARN) or a Resilience Hub-native identifier.
- On failure, responds with
SdkError<DeleteAppVersionResourceError>
Source§impl Client
impl Client
Sourcepub fn delete_recommendation_template(
&self,
) -> DeleteRecommendationTemplateFluentBuilder
pub fn delete_recommendation_template( &self, ) -> DeleteRecommendationTemplateFluentBuilder
Constructs a fluent builder for the DeleteRecommendationTemplate operation.
- The fluent builder is configurable:
recommendation_template_arn(impl Into<String>)/set_recommendation_template_arn(Option<String>):
required: trueThe Amazon Resource Name (ARN) for a recommendation template.
client_token(impl Into<String>)/set_client_token(Option<String>):
required: falseUsed for an idempotency token. A client token is a unique, case-sensitive string of up to 64 ASCII characters. You should not reuse the same client token for other API requests.
- On success, responds with
DeleteRecommendationTemplateOutputwith field(s):recommendation_template_arn(String):The Amazon Resource Name (ARN) for a recommendation template.
status(RecommendationTemplateStatus):Status of the action.
- On failure, responds with
SdkError<DeleteRecommendationTemplateError>
Source§impl Client
impl Client
Sourcepub fn delete_resiliency_policy(&self) -> DeleteResiliencyPolicyFluentBuilder
pub fn delete_resiliency_policy(&self) -> DeleteResiliencyPolicyFluentBuilder
Constructs a fluent builder for the DeleteResiliencyPolicy operation.
- The fluent builder is configurable:
policy_arn(impl Into<String>)/set_policy_arn(Option<String>):
required: trueAmazon Resource Name (ARN) of the resiliency policy. The format for this ARN is: arn:
partition:resiliencehub:region:account:resiliency-policy/policy-id. For more information about ARNs, see Amazon Resource Names (ARNs) in the Amazon Web Services General Reference guide.client_token(impl Into<String>)/set_client_token(Option<String>):
required: falseUsed for an idempotency token. A client token is a unique, case-sensitive string of up to 64 ASCII characters. You should not reuse the same client token for other API requests.
- On success, responds with
DeleteResiliencyPolicyOutputwith field(s):policy_arn(String):Amazon Resource Name (ARN) of the resiliency policy. The format for this ARN is: arn:
partition:resiliencehub:region:account:resiliency-policy/policy-id. For more information about ARNs, see Amazon Resource Names (ARNs) in the Amazon Web Services General Reference guide.
- On failure, responds with
SdkError<DeleteResiliencyPolicyError>
Source§impl Client
impl Client
Sourcepub fn describe_app(&self) -> DescribeAppFluentBuilder
pub fn describe_app(&self) -> DescribeAppFluentBuilder
Constructs a fluent builder for the DescribeApp operation.
- The fluent builder is configurable:
app_arn(impl Into<String>)/set_app_arn(Option<String>):
required: trueAmazon Resource Name (ARN) of the Resilience Hub application. The format for this ARN is: arn:
partition:resiliencehub:region:account:app/app-id. For more information about ARNs, see Amazon Resource Names (ARNs) in the Amazon Web Services General Reference guide.
- On success, responds with
DescribeAppOutputwith field(s):app(Option<App>):The specified application, returned as an object with details including compliance status, creation time, description, resiliency score, and more.
- On failure, responds with
SdkError<DescribeAppError>
Source§impl Client
impl Client
Sourcepub fn describe_app_assessment(&self) -> DescribeAppAssessmentFluentBuilder
pub fn describe_app_assessment(&self) -> DescribeAppAssessmentFluentBuilder
Constructs a fluent builder for the DescribeAppAssessment operation.
- The fluent builder is configurable:
assessment_arn(impl Into<String>)/set_assessment_arn(Option<String>):
required: trueAmazon Resource Name (ARN) of the assessment. The format for this ARN is: arn:
partition:resiliencehub:region:account:app-assessment/app-id. For more information about ARNs, see Amazon Resource Names (ARNs) in the Amazon Web Services General Reference guide.
- On success, responds with
DescribeAppAssessmentOutputwith field(s):assessment(Option<AppAssessment>):The assessment for an Resilience Hub application, returned as an object. This object includes Amazon Resource Names (ARNs), compliance information, compliance status, cost, messages, resiliency scores, and more.
- On failure, responds with
SdkError<DescribeAppAssessmentError>
Source§impl Client
impl Client
Sourcepub fn describe_app_version(&self) -> DescribeAppVersionFluentBuilder
pub fn describe_app_version(&self) -> DescribeAppVersionFluentBuilder
Constructs a fluent builder for the DescribeAppVersion operation.
- The fluent builder is configurable:
app_arn(impl Into<String>)/set_app_arn(Option<String>):
required: trueAmazon Resource Name (ARN) of the Resilience Hub application. The format for this ARN is: arn:
partition:resiliencehub:region:account:app/app-id. For more information about ARNs, see Amazon Resource Names (ARNs) in the Amazon Web Services General Reference guide.app_version(impl Into<String>)/set_app_version(Option<String>):
required: trueResilience Hub application version.
- On success, responds with
DescribeAppVersionOutputwith field(s):app_arn(String):Amazon Resource Name (ARN) of the Resilience Hub application. The format for this ARN is: arn:
partition:resiliencehub:region:account:app/app-id. For more information about ARNs, see Amazon Resource Names (ARNs) in the Amazon Web Services General Reference guide.app_version(String):Resilience Hub application version.
additional_info(Option<HashMap::<String, Vec::<String>>>):Additional configuration parameters for an Resilience Hub application. If you want to implement
additionalInfothrough the Resilience Hub console rather than using an API call, see Configure the application configuration parameters.Currently, this parameter supports only failover region and account.
- On failure, responds with
SdkError<DescribeAppVersionError>
Source§impl Client
impl Client
Sourcepub fn describe_app_version_app_component(
&self,
) -> DescribeAppVersionAppComponentFluentBuilder
pub fn describe_app_version_app_component( &self, ) -> DescribeAppVersionAppComponentFluentBuilder
Constructs a fluent builder for the DescribeAppVersionAppComponent operation.
- The fluent builder is configurable:
app_arn(impl Into<String>)/set_app_arn(Option<String>):
required: trueAmazon Resource Name (ARN) of the Resilience Hub application. The format for this ARN is: arn:
partition:resiliencehub:region:account:app/app-id. For more information about ARNs, see Amazon Resource Names (ARNs) in the Amazon Web Services General Reference guide.app_version(impl Into<String>)/set_app_version(Option<String>):
required: trueResilience Hub application version.
id(impl Into<String>)/set_id(Option<String>):
required: trueIdentifier of the Application Component.
- On success, responds with
DescribeAppVersionAppComponentOutputwith field(s):app_arn(String):Amazon Resource Name (ARN) of the Resilience Hub application. The format for this ARN is: arn:
partition:resiliencehub:region:account:app/app-id. For more information about ARNs, see Amazon Resource Names (ARNs) in the Amazon Web Services General Reference guide.app_version(String):Resilience Hub application version.
app_component(Option<AppComponent>):List of Application Components that belong to this resource.
- On failure, responds with
SdkError<DescribeAppVersionAppComponentError>
Source§impl Client
impl Client
Sourcepub fn describe_app_version_resource(
&self,
) -> DescribeAppVersionResourceFluentBuilder
pub fn describe_app_version_resource( &self, ) -> DescribeAppVersionResourceFluentBuilder
Constructs a fluent builder for the DescribeAppVersionResource operation.
- The fluent builder is configurable:
app_arn(impl Into<String>)/set_app_arn(Option<String>):
required: trueAmazon Resource Name (ARN) of the Resilience Hub application. The format for this ARN is: arn:
partition:resiliencehub:region:account:app/app-id. For more information about ARNs, see Amazon Resource Names (ARNs) in the Amazon Web Services General Reference guide.app_version(impl Into<String>)/set_app_version(Option<String>):
required: trueResilience Hub application version.
resource_name(impl Into<String>)/set_resource_name(Option<String>):
required: falseName of the resource.
logical_resource_id(LogicalResourceId)/set_logical_resource_id(Option<LogicalResourceId>):
required: falseLogical identifier of the resource.
physical_resource_id(impl Into<String>)/set_physical_resource_id(Option<String>):
required: falsePhysical identifier of the resource.
aws_region(impl Into<String>)/set_aws_region(Option<String>):
required: falseAmazon Web Services region that owns the physical resource.
aws_account_id(impl Into<String>)/set_aws_account_id(Option<String>):
required: falseAmazon Web Services account that owns the physical resource.
- On success, responds with
DescribeAppVersionResourceOutputwith field(s):app_arn(String):Amazon Resource Name (ARN) of the Resilience Hub application. The format for this ARN is: arn:
partition:resiliencehub:region:account:app/app-id. For more information about ARNs, see Amazon Resource Names (ARNs) in the Amazon Web Services General Reference guide.app_version(String):Resilience Hub application version.
physical_resource(Option<PhysicalResource>):Defines a physical resource. A physical resource is a resource that exists in your account. It can be identified using an Amazon Resource Name (ARN) or a Resilience Hub-native identifier.
- On failure, responds with
SdkError<DescribeAppVersionResourceError>
Source§impl Client
impl Client
Sourcepub fn describe_app_version_resources_resolution_status(
&self,
) -> DescribeAppVersionResourcesResolutionStatusFluentBuilder
pub fn describe_app_version_resources_resolution_status( &self, ) -> DescribeAppVersionResourcesResolutionStatusFluentBuilder
Constructs a fluent builder for the DescribeAppVersionResourcesResolutionStatus operation.
- The fluent builder is configurable:
app_arn(impl Into<String>)/set_app_arn(Option<String>):
required: trueAmazon Resource Name (ARN) of the Resilience Hub application. The format for this ARN is: arn:
partition:resiliencehub:region:account:app/app-id. For more information about ARNs, see Amazon Resource Names (ARNs) in the Amazon Web Services General Reference guide.app_version(impl Into<String>)/set_app_version(Option<String>):
required: trueThe version of the application.
resolution_id(impl Into<String>)/set_resolution_id(Option<String>):
required: falseThe identifier for a specific resolution.
- On success, responds with
DescribeAppVersionResourcesResolutionStatusOutputwith field(s):app_arn(String):Amazon Resource Name (ARN) of the Resilience Hub application. The format for this ARN is: arn:
partition:resiliencehub:region:account:app/app-id. For more information about ARNs, see Amazon Resource Names (ARNs) in the Amazon Web Services General Reference guide.app_version(String):The version of the application.
resolution_id(String):The identifier for a specific resolution.
status(ResourceResolutionStatusType):Status of the action.
error_message(Option<String>):The returned error message for the request.
- On failure, responds with
SdkError<DescribeAppVersionResourcesResolutionStatusError>
Source§impl Client
impl Client
Sourcepub fn describe_app_version_template(
&self,
) -> DescribeAppVersionTemplateFluentBuilder
pub fn describe_app_version_template( &self, ) -> DescribeAppVersionTemplateFluentBuilder
Constructs a fluent builder for the DescribeAppVersionTemplate operation.
- The fluent builder is configurable:
app_arn(impl Into<String>)/set_app_arn(Option<String>):
required: trueAmazon Resource Name (ARN) of the Resilience Hub application. The format for this ARN is: arn:
partition:resiliencehub:region:account:app/app-id. For more information about ARNs, see Amazon Resource Names (ARNs) in the Amazon Web Services General Reference guide.app_version(impl Into<String>)/set_app_version(Option<String>):
required: trueThe version of the application.
- On success, responds with
DescribeAppVersionTemplateOutputwith field(s):app_arn(String):Amazon Resource Name (ARN) of the Resilience Hub application. The format for this ARN is: arn:
partition:resiliencehub:region:account:app/app-id. For more information about ARNs, see Amazon Resource Names (ARNs) in the Amazon Web Services General Reference guide.app_version(String):The version of the application.
app_template_body(String):A JSON string that provides information about your application structure. To learn more about the
appTemplateBodytemplate, see the sample template provided in the Examples section.The
appTemplateBodyJSON string has the following structure:-
resourcesThe list of logical resources that must be included in the Resilience Hub application.
Type: Array
Don’t add the resources that you want to exclude.
Each
resourcesarray item includes the following fields:-
logicalResourceIdLogical identifier of the resource.
Type: Object
Each
logicalResourceIdobject includes the following fields:-
identifierIdentifier of the resource.
Type: String
-
logicalStackNameThe name of the CloudFormation stack this resource belongs to.
Type: String
-
resourceGroupNameThe name of the resource group this resource belongs to.
Type: String
-
terraformSourceNameThe name of the Terraform S3 state file this resource belongs to.
Type: String
-
eksSourceNameName of the Amazon Elastic Kubernetes Service cluster and namespace this resource belongs to.
This parameter accepts values in “eks-cluster/namespace” format.
Type: String
-
-
typeThe type of resource.
Type: string
-
nameThe name of the resource.
Type: String
-
additionalInfoAdditional configuration parameters for an Resilience Hub application. If you want to implement
additionalInfothrough the Resilience Hub console rather than using an API call, see Configure the application configuration parameters.Currently, this parameter accepts a key-value mapping (in a string format) of only one failover region and one associated account.
Key:
“failover-regions”Value:
“[{“region”:“<REGION>”, “accounts”:[{“id”:“<ACCOUNT_ID>”}]}]“
-
-
appComponentsList of Application Components that this resource belongs to. If an Application Component is not part of the Resilience Hub application, it will be added.
Type: Array
Each
appComponentsarray item includes the following fields:-
nameName of the Application Component.
Type: String
-
typeType of Application Component. For more information about the types of Application Component, see Grouping resources in an AppComponent.
Type: String
-
resourceNamesThe list of included resources that are assigned to the Application Component.
Type: Array of strings
-
additionalInfoAdditional configuration parameters for an Resilience Hub application. If you want to implement
additionalInfothrough the Resilience Hub console rather than using an API call, see Configure the application configuration parameters.Currently, this parameter accepts a key-value mapping (in a string format) of only one failover region and one associated account.
Key:
“failover-regions”Value:
“[{“region”:“<REGION>”, “accounts”:[{“id”:“<ACCOUNT_ID>”}]}]“
-
-
excludedResourcesThe list of logical resource identifiers to be excluded from the application.
Type: Array
Don’t add the resources that you want to include.
Each
excludedResourcesarray item includes the following fields:-
logicalResourceIdsLogical identifier of the resource.
Type: Object
You can configure only one of the following fields:
-
logicalStackName -
resourceGroupName -
terraformSourceName -
eksSourceName
Each
logicalResourceIdsobject includes the following fields:-
identifierIdentifier of the resource.
Type: String
-
logicalStackNameThe name of the CloudFormation stack this resource belongs to.
Type: String
-
resourceGroupNameThe name of the resource group this resource belongs to.
Type: String
-
terraformSourceNameThe name of the Terraform S3 state file this resource belongs to.
Type: String
-
eksSourceNameName of the Amazon Elastic Kubernetes Service cluster and namespace this resource belongs to.
This parameter accepts values in “eks-cluster/namespace” format.
Type: String
-
-
-
versionResilience Hub application version.
-
additionalInfoAdditional configuration parameters for an Resilience Hub application. If you want to implement
additionalInfothrough the Resilience Hub console rather than using an API call, see Configure the application configuration parameters.Currently, this parameter accepts a key-value mapping (in a string format) of only one failover region and one associated account.
Key:
“failover-regions”Value:
“[{“region”:“<REGION>”, “accounts”:[{“id”:“<ACCOUNT_ID>”}]}]“
-
- On failure, responds with
SdkError<DescribeAppVersionTemplateError>
Source§impl Client
impl Client
Sourcepub fn describe_draft_app_version_resources_import_status(
&self,
) -> DescribeDraftAppVersionResourcesImportStatusFluentBuilder
pub fn describe_draft_app_version_resources_import_status( &self, ) -> DescribeDraftAppVersionResourcesImportStatusFluentBuilder
Constructs a fluent builder for the DescribeDraftAppVersionResourcesImportStatus operation.
- The fluent builder is configurable:
app_arn(impl Into<String>)/set_app_arn(Option<String>):
required: trueAmazon Resource Name (ARN) of the Resilience Hub application. The format for this ARN is: arn:
partition:resiliencehub:region:account:app/app-id. For more information about ARNs, see Amazon Resource Names (ARNs) in the Amazon Web Services General Reference guide.
- On success, responds with
DescribeDraftAppVersionResourcesImportStatusOutputwith field(s):app_arn(String):Amazon Resource Name (ARN) of the Resilience Hub application. The format for this ARN is: arn:
partition:resiliencehub:region:account:app/app-id. For more information about ARNs, see Amazon Resource Names (ARNs) in the Amazon Web Services General Reference guide.app_version(String):The version of the application.
status(ResourceImportStatusType):Status of the action.
status_change_time(DateTime):The time when the status last changed.
error_message(Option<String>):The error message returned for the resource request.
error_details(Option<Vec::<ErrorDetail>>):List of errors that were encountered while importing resources.
- On failure, responds with
SdkError<DescribeDraftAppVersionResourcesImportStatusError>
Source§impl Client
impl Client
Sourcepub fn describe_metrics_export(&self) -> DescribeMetricsExportFluentBuilder
pub fn describe_metrics_export(&self) -> DescribeMetricsExportFluentBuilder
Constructs a fluent builder for the DescribeMetricsExport operation.
- The fluent builder is configurable:
metrics_export_id(impl Into<String>)/set_metrics_export_id(Option<String>):
required: trueIdentifier of the metrics export task.
- On success, responds with
DescribeMetricsExportOutputwith field(s):metrics_export_id(String):Identifier for the metrics export task.
status(MetricsExportStatusType):Indicates the status of the metrics export task.
export_location(Option<S3Location>):Specifies the name of the Amazon S3 bucket where the exported metrics is stored.
error_message(Option<String>):Explains the error that occurred while exporting the metrics.
- On failure, responds with
SdkError<DescribeMetricsExportError>
Source§impl Client
impl Client
Sourcepub fn describe_resiliency_policy(
&self,
) -> DescribeResiliencyPolicyFluentBuilder
pub fn describe_resiliency_policy( &self, ) -> DescribeResiliencyPolicyFluentBuilder
Constructs a fluent builder for the DescribeResiliencyPolicy operation.
- The fluent builder is configurable:
policy_arn(impl Into<String>)/set_policy_arn(Option<String>):
required: trueAmazon Resource Name (ARN) of the resiliency policy. The format for this ARN is: arn:
partition:resiliencehub:region:account:resiliency-policy/policy-id. For more information about ARNs, see Amazon Resource Names (ARNs) in the Amazon Web Services General Reference guide.
- On success, responds with
DescribeResiliencyPolicyOutputwith field(s):policy(Option<ResiliencyPolicy>):Information about the specific resiliency policy, returned as an object. This object includes creation time, data location constraints, its name, description, tags, the recovery time objective (RTO) and recovery point objective (RPO) in seconds, and more.
- On failure, responds with
SdkError<DescribeResiliencyPolicyError>
Source§impl Client
impl Client
Sourcepub fn describe_resource_grouping_recommendation_task(
&self,
) -> DescribeResourceGroupingRecommendationTaskFluentBuilder
pub fn describe_resource_grouping_recommendation_task( &self, ) -> DescribeResourceGroupingRecommendationTaskFluentBuilder
Constructs a fluent builder for the DescribeResourceGroupingRecommendationTask operation.
- The fluent builder is configurable:
app_arn(impl Into<String>)/set_app_arn(Option<String>):
required: trueAmazon Resource Name (ARN) of the Resilience Hub application. The format for this ARN is: arn:
partition:resiliencehub:region:account:app/app-id. For more information about ARNs, see Amazon Resource Names (ARNs) in the Amazon Web Services General Reference guide.grouping_id(impl Into<String>)/set_grouping_id(Option<String>):
required: falseIdentifier of the grouping recommendation task.
- On success, responds with
DescribeResourceGroupingRecommendationTaskOutputwith field(s):grouping_id(String):Identifier of the grouping recommendation task.
status(ResourcesGroupingRecGenStatusType):Status of the action.
error_message(Option<String>):Error that occurred while generating a grouping recommendation.
- On failure, responds with
SdkError<DescribeResourceGroupingRecommendationTaskError>
Source§impl Client
impl Client
Sourcepub fn import_resources_to_draft_app_version(
&self,
) -> ImportResourcesToDraftAppVersionFluentBuilder
pub fn import_resources_to_draft_app_version( &self, ) -> ImportResourcesToDraftAppVersionFluentBuilder
Constructs a fluent builder for the ImportResourcesToDraftAppVersion operation.
- The fluent builder is configurable:
app_arn(impl Into<String>)/set_app_arn(Option<String>):
required: trueAmazon Resource Name (ARN) of the Resilience Hub application. The format for this ARN is: arn:
partition:resiliencehub:region:account:app/app-id. For more information about ARNs, see Amazon Resource Names (ARNs) in the Amazon Web Services General Reference guide.source_arns(impl Into<String>)/set_source_arns(Option<Vec::<String>>):
required: falseThe Amazon Resource Names (ARNs) for the resources.
terraform_sources(TerraformSource)/set_terraform_sources(Option<Vec::<TerraformSource>>):
required: falseA list of terraform file s3 URLs you need to import.
import_strategy(ResourceImportStrategyType)/set_import_strategy(Option<ResourceImportStrategyType>):
required: falseThe import strategy you would like to set to import resources into Resilience Hub application.
eks_sources(EksSource)/set_eks_sources(Option<Vec::<EksSource>>):
required: falseThe input sources of the Amazon Elastic Kubernetes Service resources you need to import.
- On success, responds with
ImportResourcesToDraftAppVersionOutputwith field(s):app_arn(String):Amazon Resource Name (ARN) of the Resilience Hub application. The format for this ARN is: arn:
partition:resiliencehub:region:account:app/app-id. For more information about ARNs, see Amazon Resource Names (ARNs) in the Amazon Web Services General Reference guide.app_version(String):The version of the application.
source_arns(Option<Vec::<String>>):The Amazon Resource Names (ARNs) for the resources you have imported.
status(ResourceImportStatusType):Status of the action.
terraform_sources(Option<Vec::<TerraformSource>>):A list of terraform file s3 URLs you have imported.
eks_sources(Option<Vec::<EksSource>>):The input sources of the Amazon Elastic Kubernetes Service resources you have imported.
- On failure, responds with
SdkError<ImportResourcesToDraftAppVersionError>
Source§impl Client
impl Client
Sourcepub fn list_alarm_recommendations(
&self,
) -> ListAlarmRecommendationsFluentBuilder
pub fn list_alarm_recommendations( &self, ) -> ListAlarmRecommendationsFluentBuilder
Constructs a fluent builder for the ListAlarmRecommendations operation.
This operation supports pagination; See into_paginator().
- The fluent builder is configurable:
assessment_arn(impl Into<String>)/set_assessment_arn(Option<String>):
required: trueAmazon Resource Name (ARN) of the assessment. The format for this ARN is: arn:
partition:resiliencehub:region:account:app-assessment/app-id. For more information about ARNs, see Amazon Resource Names (ARNs) in the Amazon Web Services General Reference guide.next_token(impl Into<String>)/set_next_token(Option<String>):
required: falseNull, or the token from a previous call to get the next set of results.
max_results(i32)/set_max_results(Option<i32>):
required: falseMaximum number of results to include in the response. If more results exist than the specified
MaxResultsvalue, a token is included in the response so that the remaining results can be retrieved.
- On success, responds with
ListAlarmRecommendationsOutputwith field(s):alarm_recommendations(Vec::<AlarmRecommendation>):The alarm recommendations for an Resilience Hub application, returned as an object. This object includes Application Component names, descriptions, information about whether a recommendation has already been implemented or not, prerequisites, and more.
next_token(Option<String>):Token for the next set of results, or null if there are no more results.
- On failure, responds with
SdkError<ListAlarmRecommendationsError>
Source§impl Client
impl Client
Sourcepub fn list_app_assessment_compliance_drifts(
&self,
) -> ListAppAssessmentComplianceDriftsFluentBuilder
pub fn list_app_assessment_compliance_drifts( &self, ) -> ListAppAssessmentComplianceDriftsFluentBuilder
Constructs a fluent builder for the ListAppAssessmentComplianceDrifts operation.
This operation supports pagination; See into_paginator().
- The fluent builder is configurable:
assessment_arn(impl Into<String>)/set_assessment_arn(Option<String>):
required: trueAmazon Resource Name (ARN) of the assessment. The format for this ARN is: arn:
partition:resiliencehub:region:account:app-assessment/app-id. For more information about ARNs, see Amazon Resource Names (ARNs) in the Amazon Web Services General Reference guide.next_token(impl Into<String>)/set_next_token(Option<String>):
required: falseNull, or the token from a previous call to get the next set of results.
max_results(i32)/set_max_results(Option<i32>):
required: falseMaximum number of compliance drifts requested.
- On success, responds with
ListAppAssessmentComplianceDriftsOutputwith field(s):compliance_drifts(Vec::<ComplianceDrift>):Indicates compliance drifts (recovery time objective (RTO) and recovery point objective (RPO)) detected for an assessed entity.
next_token(Option<String>):Null, or the token from a previous call to get the next set of results.
- On failure, responds with
SdkError<ListAppAssessmentComplianceDriftsError>
Source§impl Client
impl Client
Sourcepub fn list_app_assessment_resource_drifts(
&self,
) -> ListAppAssessmentResourceDriftsFluentBuilder
pub fn list_app_assessment_resource_drifts( &self, ) -> ListAppAssessmentResourceDriftsFluentBuilder
Constructs a fluent builder for the ListAppAssessmentResourceDrifts operation.
This operation supports pagination; See into_paginator().
- The fluent builder is configurable:
assessment_arn(impl Into<String>)/set_assessment_arn(Option<String>):
required: trueAmazon Resource Name (ARN) of the assessment. The format for this ARN is: arn:
partition:resiliencehub:region:account:app-assessment/app-id. For more information about ARNs, see Amazon Resource Names (ARNs) in the Amazon Web Services General Reference guide.next_token(impl Into<String>)/set_next_token(Option<String>):
required: falseNull, or the token from a previous call to get the next set of results.
max_results(i32)/set_max_results(Option<i32>):
required: falseMaximum number of drift results to include in the response. If more results exist than the specified
MaxResultsvalue, a token is included in the response so that the remaining results can be retrieved.
- On success, responds with
ListAppAssessmentResourceDriftsOutputwith field(s):resource_drifts(Vec::<ResourceDrift>):Indicates all the resource drifts detected for an assessed entity.
next_token(Option<String>):Null, or the token from a previous call to get the next set of results.
- On failure, responds with
SdkError<ListAppAssessmentResourceDriftsError>
Source§impl Client
impl Client
Sourcepub fn list_app_assessments(&self) -> ListAppAssessmentsFluentBuilder
pub fn list_app_assessments(&self) -> ListAppAssessmentsFluentBuilder
Constructs a fluent builder for the ListAppAssessments operation.
This operation supports pagination; See into_paginator().
- The fluent builder is configurable:
app_arn(impl Into<String>)/set_app_arn(Option<String>):
required: falseAmazon Resource Name (ARN) of the Resilience Hub application. The format for this ARN is: arn:
partition:resiliencehub:region:account:app/app-id. For more information about ARNs, see Amazon Resource Names (ARNs) in the Amazon Web Services General Reference guide.assessment_name(impl Into<String>)/set_assessment_name(Option<String>):
required: falseThe name for the assessment.
assessment_status(AssessmentStatus)/set_assessment_status(Option<Vec::<AssessmentStatus>>):
required: falseThe current status of the assessment for the resiliency policy.
compliance_status(ComplianceStatus)/set_compliance_status(Option<ComplianceStatus>):
required: falseThe current status of compliance for the resiliency policy.
invoker(AssessmentInvoker)/set_invoker(Option<AssessmentInvoker>):
required: falseSpecifies the entity that invoked a specific assessment, either a
Useror theSystem.reverse_order(bool)/set_reverse_order(Option<bool>):
required: falseThe default is to sort by ascending startTime. To sort by descending startTime, set reverseOrder to
true.next_token(impl Into<String>)/set_next_token(Option<String>):
required: falseNull, or the token from a previous call to get the next set of results.
max_results(i32)/set_max_results(Option<i32>):
required: falseMaximum number of results to include in the response. If more results exist than the specified
MaxResultsvalue, a token is included in the response so that the remaining results can be retrieved.
- On success, responds with
ListAppAssessmentsOutputwith field(s):next_token(Option<String>):Token for the next set of results, or null if there are no more results.
assessment_summaries(Vec::<AppAssessmentSummary>):The summaries for the specified assessments, returned as an object. This object includes application versions, associated Amazon Resource Numbers (ARNs), cost, messages, resiliency scores, and more.
- On failure, responds with
SdkError<ListAppAssessmentsError>
Source§impl Client
impl Client
Sourcepub fn list_app_component_compliances(
&self,
) -> ListAppComponentCompliancesFluentBuilder
pub fn list_app_component_compliances( &self, ) -> ListAppComponentCompliancesFluentBuilder
Constructs a fluent builder for the ListAppComponentCompliances operation.
This operation supports pagination; See into_paginator().
- The fluent builder is configurable:
next_token(impl Into<String>)/set_next_token(Option<String>):
required: falseNull, or the token from a previous call to get the next set of results.
max_results(i32)/set_max_results(Option<i32>):
required: falseMaximum number of results to include in the response. If more results exist than the specified
MaxResultsvalue, a token is included in the response so that the remaining results can be retrieved.assessment_arn(impl Into<String>)/set_assessment_arn(Option<String>):
required: trueAmazon Resource Name (ARN) of the assessment. The format for this ARN is: arn:
partition:resiliencehub:region:account:app-assessment/app-id. For more information about ARNs, see Amazon Resource Names (ARNs) in the Amazon Web Services General Reference guide.
- On success, responds with
ListAppComponentCompliancesOutputwith field(s):component_compliances(Vec::<AppComponentCompliance>):The compliances for an Resilience Hub Application Component, returned as an object. This object contains the names of the Application Components, compliances, costs, resiliency scores, outage scores, and more.
next_token(Option<String>):Token for the next set of results, or null if there are no more results.
- On failure, responds with
SdkError<ListAppComponentCompliancesError>
Source§impl Client
impl Client
Sourcepub fn list_app_component_recommendations(
&self,
) -> ListAppComponentRecommendationsFluentBuilder
pub fn list_app_component_recommendations( &self, ) -> ListAppComponentRecommendationsFluentBuilder
Constructs a fluent builder for the ListAppComponentRecommendations operation.
This operation supports pagination; See into_paginator().
- The fluent builder is configurable:
assessment_arn(impl Into<String>)/set_assessment_arn(Option<String>):
required: trueAmazon Resource Name (ARN) of the assessment. The format for this ARN is: arn:
partition:resiliencehub:region:account:app-assessment/app-id. For more information about ARNs, see Amazon Resource Names (ARNs) in the Amazon Web Services General Reference guide.next_token(impl Into<String>)/set_next_token(Option<String>):
required: falseNull, or the token from a previous call to get the next set of results.
max_results(i32)/set_max_results(Option<i32>):
required: falseMaximum number of results to include in the response. If more results exist than the specified
MaxResultsvalue, a token is included in the response so that the remaining results can be retrieved.
- On success, responds with
ListAppComponentRecommendationsOutputwith field(s):component_recommendations(Vec::<ComponentRecommendation>):The recommendations for an Resilience Hub Application Component, returned as an object. This object contains the names of the Application Components, configuration recommendations, and recommendation statuses.
next_token(Option<String>):Token for the next set of results, or null if there are no more results.
- On failure, responds with
SdkError<ListAppComponentRecommendationsError>
Source§impl Client
impl Client
Sourcepub fn list_app_input_sources(&self) -> ListAppInputSourcesFluentBuilder
pub fn list_app_input_sources(&self) -> ListAppInputSourcesFluentBuilder
Constructs a fluent builder for the ListAppInputSources operation.
This operation supports pagination; See into_paginator().
- The fluent builder is configurable:
app_arn(impl Into<String>)/set_app_arn(Option<String>):
required: trueAmazon Resource Name (ARN) of the Resilience Hub application. The format for this ARN is: arn:
partition:resiliencehub:region:account:app/app-id. For more information about ARNs, see Amazon Resource Names (ARNs) in the Amazon Web Services General Reference guide.app_version(impl Into<String>)/set_app_version(Option<String>):
required: trueResilience Hub application version.
next_token(impl Into<String>)/set_next_token(Option<String>):
required: falseNull, or the token from a previous call to get the next set of results.
max_results(i32)/set_max_results(Option<i32>):
required: falseMaximum number of input sources to be displayed per Resilience Hub application.
- On success, responds with
ListAppInputSourcesOutputwith field(s):app_input_sources(Vec::<AppInputSource>):The list of Resilience Hub application input sources.
next_token(Option<String>):Token for the next set of results, or null if there are no more results.
- On failure, responds with
SdkError<ListAppInputSourcesError>
Source§impl Client
impl Client
Sourcepub fn list_app_version_app_components(
&self,
) -> ListAppVersionAppComponentsFluentBuilder
pub fn list_app_version_app_components( &self, ) -> ListAppVersionAppComponentsFluentBuilder
Constructs a fluent builder for the ListAppVersionAppComponents operation.
This operation supports pagination; See into_paginator().
- The fluent builder is configurable:
app_arn(impl Into<String>)/set_app_arn(Option<String>):
required: trueAmazon Resource Name (ARN) of the Resilience Hub application. The format for this ARN is: arn:
partition:resiliencehub:region:account:app/app-id. For more information about ARNs, see Amazon Resource Names (ARNs) in the Amazon Web Services General Reference guide.app_version(impl Into<String>)/set_app_version(Option<String>):
required: trueVersion of the Application Component.
next_token(impl Into<String>)/set_next_token(Option<String>):
required: falseNull, or the token from a previous call to get the next set of results.
max_results(i32)/set_max_results(Option<i32>):
required: falseMaximum number of Application Components to be displayed per Resilience Hub application version.
- On success, responds with
ListAppVersionAppComponentsOutputwith field(s):app_arn(String):Amazon Resource Name (ARN) of the Resilience Hub application. The format for this ARN is: arn:
partition:resiliencehub:region:account:app/app-id. For more information about ARNs, see Amazon Resource Names (ARNs) in the Amazon Web Services General Reference guide.app_version(String):Resilience Hub application version.
app_components(Option<Vec::<AppComponent>>):Defines an Application Component.
next_token(Option<String>):Token for the next set of results, or null if there are no more results.
- On failure, responds with
SdkError<ListAppVersionAppComponentsError>
Source§impl Client
impl Client
Sourcepub fn list_app_version_resource_mappings(
&self,
) -> ListAppVersionResourceMappingsFluentBuilder
pub fn list_app_version_resource_mappings( &self, ) -> ListAppVersionResourceMappingsFluentBuilder
Constructs a fluent builder for the ListAppVersionResourceMappings operation.
This operation supports pagination; See into_paginator().
- The fluent builder is configurable:
app_arn(impl Into<String>)/set_app_arn(Option<String>):
required: trueAmazon Resource Name (ARN) of the Resilience Hub application. The format for this ARN is: arn:
partition:resiliencehub:region:account:app/app-id. For more information about ARNs, see Amazon Resource Names (ARNs) in the Amazon Web Services General Reference guide.app_version(impl Into<String>)/set_app_version(Option<String>):
required: trueThe version of the application.
next_token(impl Into<String>)/set_next_token(Option<String>):
required: falseNull, or the token from a previous call to get the next set of results.
max_results(i32)/set_max_results(Option<i32>):
required: falseMaximum number of results to include in the response. If more results exist than the specified
MaxResultsvalue, a token is included in the response so that the remaining results can be retrieved.
- On success, responds with
ListAppVersionResourceMappingsOutputwith field(s):resource_mappings(Vec::<ResourceMapping>):Mappings used to map logical resources from the template to physical resources. You can use the mapping type
CFN_STACKif the application template uses a logical stack name. Or you can map individual resources by using the mapping typeRESOURCE. We recommend using the mapping typeCFN_STACKif the application is backed by a CloudFormation stack.next_token(Option<String>):Token for the next set of results, or null if there are no more results.
- On failure, responds with
SdkError<ListAppVersionResourceMappingsError>
Source§impl Client
impl Client
Sourcepub fn list_app_version_resources(&self) -> ListAppVersionResourcesFluentBuilder
pub fn list_app_version_resources(&self) -> ListAppVersionResourcesFluentBuilder
Constructs a fluent builder for the ListAppVersionResources operation.
This operation supports pagination; See into_paginator().
- The fluent builder is configurable:
app_arn(impl Into<String>)/set_app_arn(Option<String>):
required: trueAmazon Resource Name (ARN) of the Resilience Hub application. The format for this ARN is: arn:
partition:resiliencehub:region:account:app/app-id. For more information about ARNs, see Amazon Resource Names (ARNs) in the Amazon Web Services General Reference guide.app_version(impl Into<String>)/set_app_version(Option<String>):
required: trueThe version of the application.
resolution_id(impl Into<String>)/set_resolution_id(Option<String>):
required: falseThe identifier for a specific resolution.
next_token(impl Into<String>)/set_next_token(Option<String>):
required: falseNull, or the token from a previous call to get the next set of results.
max_results(i32)/set_max_results(Option<i32>):
required: falseMaximum number of results to include in the response. If more results exist than the specified
MaxResultsvalue, a token is included in the response so that the remaining results can be retrieved.
- On success, responds with
ListAppVersionResourcesOutputwith field(s):physical_resources(Vec::<PhysicalResource>):The physical resources in the application version.
resolution_id(String):The ID for a specific resolution.
next_token(Option<String>):Token for the next set of results, or null if there are no more results.
- On failure, responds with
SdkError<ListAppVersionResourcesError>
Source§impl Client
impl Client
Sourcepub fn list_app_versions(&self) -> ListAppVersionsFluentBuilder
pub fn list_app_versions(&self) -> ListAppVersionsFluentBuilder
Constructs a fluent builder for the ListAppVersions operation.
This operation supports pagination; See into_paginator().
- The fluent builder is configurable:
app_arn(impl Into<String>)/set_app_arn(Option<String>):
required: trueAmazon Resource Name (ARN) of the Resilience Hub application. The format for this ARN is: arn:
partition:resiliencehub:region:account:app/app-id. For more information about ARNs, see Amazon Resource Names (ARNs) in the Amazon Web Services General Reference guide.next_token(impl Into<String>)/set_next_token(Option<String>):
required: falseNull, or the token from a previous call to get the next set of results.
max_results(i32)/set_max_results(Option<i32>):
required: falseMaximum number of results to include in the response. If more results exist than the specified
MaxResultsvalue, a token is included in the response so that the remaining results can be retrieved.start_time(DateTime)/set_start_time(Option<DateTime>):
required: falseLower limit of the time range to filter the application versions.
end_time(DateTime)/set_end_time(Option<DateTime>):
required: falseUpper limit of the time range to filter the application versions.
- On success, responds with
ListAppVersionsOutputwith field(s):app_versions(Vec::<AppVersionSummary>):The version of the application.
next_token(Option<String>):Token for the next set of results, or null if there are no more results.
- On failure, responds with
SdkError<ListAppVersionsError>
Source§impl Client
impl Client
Sourcepub fn list_apps(&self) -> ListAppsFluentBuilder
pub fn list_apps(&self) -> ListAppsFluentBuilder
Constructs a fluent builder for the ListApps operation.
This operation supports pagination; See into_paginator().
- The fluent builder is configurable:
next_token(impl Into<String>)/set_next_token(Option<String>):
required: falseNull, or the token from a previous call to get the next set of results.
max_results(i32)/set_max_results(Option<i32>):
required: falseMaximum number of results to include in the response. If more results exist than the specified
MaxResultsvalue, a token is included in the response so that the remaining results can be retrieved.name(impl Into<String>)/set_name(Option<String>):
required: falseThe name for the one of the listed applications.
app_arn(impl Into<String>)/set_app_arn(Option<String>):
required: falseAmazon Resource Name (ARN) of the Resilience Hub application. The format for this ARN is: arn:
partition:resiliencehub:region:account:app/app-id. For more information about ARNs, see Amazon Resource Names (ARNs) in the Amazon Web Services General Reference guide.from_last_assessment_time(DateTime)/set_from_last_assessment_time(Option<DateTime>):
required: falseLower limit of the range that is used to filter applications based on their last assessment times.
to_last_assessment_time(DateTime)/set_to_last_assessment_time(Option<DateTime>):
required: falseUpper limit of the range that is used to filter the applications based on their last assessment times.
reverse_order(bool)/set_reverse_order(Option<bool>):
required: falseThe application list is sorted based on the values of
lastAppComplianceEvaluationTimefield. By default, application list is sorted in ascending order. To sort the application list in descending order, set this field toTrue.aws_application_arn(impl Into<String>)/set_aws_application_arn(Option<String>):
required: falseAmazon Resource Name (ARN) of Resource Groups group that is integrated with an AppRegistry application. For more information about ARNs, see Amazon Resource Names (ARNs) in the Amazon Web Services General Reference guide.
- On success, responds with
ListAppsOutputwith field(s):app_summaries(Vec::<AppSummary>):Summaries for the Resilience Hub application.
next_token(Option<String>):Token for the next set of results, or null if there are no more results.
- On failure, responds with
SdkError<ListAppsError>
Source§impl Client
impl Client
Sourcepub fn list_metrics(&self) -> ListMetricsFluentBuilder
pub fn list_metrics(&self) -> ListMetricsFluentBuilder
Constructs a fluent builder for the ListMetrics operation.
This operation supports pagination; See into_paginator().
- The fluent builder is configurable:
next_token(impl Into<String>)/set_next_token(Option<String>):
required: falseNull, or the token from a previous call to get the next set of results.
max_results(i32)/set_max_results(Option<i32>):
required: falseMaximum number of results to include in the response. If more results exist than the specified
MaxResultsvalue, a token is included in the response so that the remaining results can be retrieved.fields(Field)/set_fields(Option<Vec::<Field>>):
required: falseIndicates the list of fields in the data source.
data_source(impl Into<String>)/set_data_source(Option<String>):
required: falseIndicates the data source of the metrics.
conditions(Condition)/set_conditions(Option<Vec::<Condition>>):
required: falseIndicates the list of all the conditions that were applied on the metrics.
sorts(Sort)/set_sorts(Option<Vec::<Sort>>):
required: false(Optional) Indicates the order in which you want to sort the fields in the metrics. By default, the fields are sorted in the ascending order.
- On success, responds with
ListMetricsOutputwith field(s):rows(Vec::<Vec::<String>>):Specifies all the list of metric values for each row of metrics.
next_token(Option<String>):Token for the next set of results, or null if there are no more results.
- On failure, responds with
SdkError<ListMetricsError>
Source§impl Client
impl Client
Sourcepub fn list_recommendation_templates(
&self,
) -> ListRecommendationTemplatesFluentBuilder
pub fn list_recommendation_templates( &self, ) -> ListRecommendationTemplatesFluentBuilder
Constructs a fluent builder for the ListRecommendationTemplates operation.
This operation supports pagination; See into_paginator().
- The fluent builder is configurable:
assessment_arn(impl Into<String>)/set_assessment_arn(Option<String>):
required: falseAmazon Resource Name (ARN) of the assessment. The format for this ARN is: arn:
partition:resiliencehub:region:account:app-assessment/app-id. For more information about ARNs, see Amazon Resource Names (ARNs) in the Amazon Web Services General Reference guide.reverse_order(bool)/set_reverse_order(Option<bool>):
required: falseThe default is to sort by ascending startTime. To sort by descending startTime, set reverseOrder to
true.status(RecommendationTemplateStatus)/set_status(Option<Vec::<RecommendationTemplateStatus>>):
required: falseStatus of the action.
recommendation_template_arn(impl Into<String>)/set_recommendation_template_arn(Option<String>):
required: falseThe Amazon Resource Name (ARN) for a recommendation template.
name(impl Into<String>)/set_name(Option<String>):
required: falseThe name for one of the listed recommendation templates.
next_token(impl Into<String>)/set_next_token(Option<String>):
required: falseNull, or the token from a previous call to get the next set of results.
max_results(i32)/set_max_results(Option<i32>):
required: falseMaximum number of results to include in the response. If more results exist than the specified
MaxResultsvalue, a token is included in the response so that the remaining results can be retrieved.
- On success, responds with
ListRecommendationTemplatesOutputwith field(s):next_token(Option<String>):Token for the next set of results, or null if there are no more results.
recommendation_templates(Option<Vec::<RecommendationTemplate>>):The recommendation templates for the Resilience Hub applications.
- On failure, responds with
SdkError<ListRecommendationTemplatesError>
Source§impl Client
impl Client
Sourcepub fn list_resiliency_policies(&self) -> ListResiliencyPoliciesFluentBuilder
pub fn list_resiliency_policies(&self) -> ListResiliencyPoliciesFluentBuilder
Constructs a fluent builder for the ListResiliencyPolicies operation.
This operation supports pagination; See into_paginator().
- The fluent builder is configurable:
policy_name(impl Into<String>)/set_policy_name(Option<String>):
required: falseName of the resiliency policy.
next_token(impl Into<String>)/set_next_token(Option<String>):
required: falseNull, or the token from a previous call to get the next set of results.
max_results(i32)/set_max_results(Option<i32>):
required: falseMaximum number of results to include in the response. If more results exist than the specified
MaxResultsvalue, a token is included in the response so that the remaining results can be retrieved.
- On success, responds with
ListResiliencyPoliciesOutputwith field(s):resiliency_policies(Vec::<ResiliencyPolicy>):The resiliency policies for the Resilience Hub applications.
next_token(Option<String>):Token for the next set of results, or null if there are no more results.
- On failure, responds with
SdkError<ListResiliencyPoliciesError>
Source§impl Client
impl Client
Sourcepub fn list_resource_grouping_recommendations(
&self,
) -> ListResourceGroupingRecommendationsFluentBuilder
pub fn list_resource_grouping_recommendations( &self, ) -> ListResourceGroupingRecommendationsFluentBuilder
Constructs a fluent builder for the ListResourceGroupingRecommendations operation.
This operation supports pagination; See into_paginator().
- The fluent builder is configurable:
app_arn(impl Into<String>)/set_app_arn(Option<String>):
required: falseAmazon Resource Name (ARN) of the Resilience Hub application. The format for this ARN is: arn:
partition:resiliencehub:region:account:app/app-id. For more information about ARNs, see Amazon Resource Names (ARNs) in the Amazon Web Services General Reference guide.next_token(impl Into<String>)/set_next_token(Option<String>):
required: falseNull, or the token from a previous call to get the next set of results.
max_results(i32)/set_max_results(Option<i32>):
required: falseMaximum number of grouping recommendations to be displayed per Resilience Hub application.
- On success, responds with
ListResourceGroupingRecommendationsOutputwith field(s):grouping_recommendations(Vec::<GroupingRecommendation>):List of resource grouping recommendations generated by Resilience Hub.
next_token(Option<String>):Null, or the token from a previous call to get the next set of results.
- On failure, responds with
SdkError<ListResourceGroupingRecommendationsError>
Source§impl Client
impl Client
Sourcepub fn list_sop_recommendations(&self) -> ListSopRecommendationsFluentBuilder
pub fn list_sop_recommendations(&self) -> ListSopRecommendationsFluentBuilder
Constructs a fluent builder for the ListSopRecommendations operation.
This operation supports pagination; See into_paginator().
- The fluent builder is configurable:
next_token(impl Into<String>)/set_next_token(Option<String>):
required: falseNull, or the token from a previous call to get the next set of results.
max_results(i32)/set_max_results(Option<i32>):
required: falseMaximum number of results to include in the response. If more results exist than the specified
MaxResultsvalue, a token is included in the response so that the remaining results can be retrieved.assessment_arn(impl Into<String>)/set_assessment_arn(Option<String>):
required: trueAmazon Resource Name (ARN) of the assessment. The format for this ARN is: arn:
partition:resiliencehub:region:account:app-assessment/app-id. For more information about ARNs, see Amazon Resource Names (ARNs) in the Amazon Web Services General Reference guide.
- On success, responds with
ListSopRecommendationsOutputwith field(s):next_token(Option<String>):Token for the next set of results, or null if there are no more results.
sop_recommendations(Vec::<SopRecommendation>):The standard operating procedure (SOP) recommendations for the Resilience Hub applications.
- On failure, responds with
SdkError<ListSopRecommendationsError>
Source§impl Client
impl Client
Sourcepub fn list_suggested_resiliency_policies(
&self,
) -> ListSuggestedResiliencyPoliciesFluentBuilder
pub fn list_suggested_resiliency_policies( &self, ) -> ListSuggestedResiliencyPoliciesFluentBuilder
Constructs a fluent builder for the ListSuggestedResiliencyPolicies operation.
This operation supports pagination; See into_paginator().
- The fluent builder is configurable:
next_token(impl Into<String>)/set_next_token(Option<String>):
required: falseNull, or the token from a previous call to get the next set of results.
max_results(i32)/set_max_results(Option<i32>):
required: falseMaximum number of results to include in the response. If more results exist than the specified
MaxResultsvalue, a token is included in the response so that the remaining results can be retrieved.
- On success, responds with
ListSuggestedResiliencyPoliciesOutputwith field(s):resiliency_policies(Vec::<ResiliencyPolicy>):The suggested resiliency policies for the Resilience Hub applications.
next_token(Option<String>):Token for the next set of results, or null if there are no more results.
- On failure, responds with
SdkError<ListSuggestedResiliencyPoliciesError>
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) for a specific resource in your Resilience Hub application.
- On success, responds with
ListTagsForResourceOutputwith field(s):tags(Option<HashMap::<String, String>>):Tags assigned to the resource. A tag is a label that you assign to an Amazon Web Services resource. Each tag consists of a key/value pair.
- On failure, responds with
SdkError<ListTagsForResourceError>
Source§impl Client
impl Client
Sourcepub fn list_test_recommendations(&self) -> ListTestRecommendationsFluentBuilder
pub fn list_test_recommendations(&self) -> ListTestRecommendationsFluentBuilder
Constructs a fluent builder for the ListTestRecommendations operation.
This operation supports pagination; See into_paginator().
- The fluent builder is configurable:
next_token(impl Into<String>)/set_next_token(Option<String>):
required: falseNull, or the token from a previous call to get the next set of results.
max_results(i32)/set_max_results(Option<i32>):
required: falseMaximum number of results to include in the response. If more results exist than the specified
MaxResultsvalue, a token is included in the response so that the remaining results can be retrieved.assessment_arn(impl Into<String>)/set_assessment_arn(Option<String>):
required: trueAmazon Resource Name (ARN) of the assessment. The format for this ARN is: arn:
partition:resiliencehub:region:account:app-assessment/app-id. For more information about ARNs, see Amazon Resource Names (ARNs) in the Amazon Web Services General Reference guide.
- On success, responds with
ListTestRecommendationsOutputwith field(s):next_token(Option<String>):Token for the next set of results, or null if there are no more results.
test_recommendations(Vec::<TestRecommendation>):The test recommendations for the Resilience Hub application.
- On failure, responds with
SdkError<ListTestRecommendationsError>
Source§impl Client
impl Client
Sourcepub fn list_unsupported_app_version_resources(
&self,
) -> ListUnsupportedAppVersionResourcesFluentBuilder
pub fn list_unsupported_app_version_resources( &self, ) -> ListUnsupportedAppVersionResourcesFluentBuilder
Constructs a fluent builder for the ListUnsupportedAppVersionResources operation.
This operation supports pagination; See into_paginator().
- The fluent builder is configurable:
app_arn(impl Into<String>)/set_app_arn(Option<String>):
required: trueAmazon Resource Name (ARN) of the Resilience Hub application. The format for this ARN is: arn:
partition:resiliencehub:region:account:app/app-id. For more information about ARNs, see Amazon Resource Names (ARNs) in the Amazon Web Services General Reference guide.app_version(impl Into<String>)/set_app_version(Option<String>):
required: trueThe version of the application.
resolution_id(impl Into<String>)/set_resolution_id(Option<String>):
required: falseThe identifier for a specific resolution.
next_token(impl Into<String>)/set_next_token(Option<String>):
required: falseNull, or the token from a previous call to get the next set of results.
max_results(i32)/set_max_results(Option<i32>):
required: falseMaximum number of results to include in the response. If more results exist than the specified
MaxResultsvalue, a token is included in the response so that the remaining results can be retrieved.
- On success, responds with
ListUnsupportedAppVersionResourcesOutputwith field(s):unsupported_resources(Vec::<UnsupportedResource>):The unsupported resources for the application.
resolution_id(String):The identifier for a specific resolution.
next_token(Option<String>):Token for the next set of results, or null if there are no more results.
- On failure, responds with
SdkError<ListUnsupportedAppVersionResourcesError>
Source§impl Client
impl Client
Sourcepub fn publish_app_version(&self) -> PublishAppVersionFluentBuilder
pub fn publish_app_version(&self) -> PublishAppVersionFluentBuilder
Constructs a fluent builder for the PublishAppVersion operation.
- The fluent builder is configurable:
app_arn(impl Into<String>)/set_app_arn(Option<String>):
required: trueAmazon Resource Name (ARN) of the Resilience Hub application. The format for this ARN is: arn:
partition:resiliencehub:region:account:app/app-id. For more information about ARNs, see Amazon Resource Names (ARNs) in the Amazon Web Services General Reference guide.version_name(impl Into<String>)/set_version_name(Option<String>):
required: falseName of the application version.
- On success, responds with
PublishAppVersionOutputwith field(s):app_arn(String):Amazon Resource Name (ARN) of the Resilience Hub application. The format for this ARN is: arn:
partition:resiliencehub:region:account:app/app-id. For more information about ARNs, see Amazon Resource Names (ARNs) in the Amazon Web Services General Reference guide.app_version(Option<String>):The version of the application.
identifier(Option<i64>):Identifier of the application version.
version_name(Option<String>):Name of the application version.
- On failure, responds with
SdkError<PublishAppVersionError>
Source§impl Client
impl Client
Sourcepub fn put_draft_app_version_template(
&self,
) -> PutDraftAppVersionTemplateFluentBuilder
pub fn put_draft_app_version_template( &self, ) -> PutDraftAppVersionTemplateFluentBuilder
Constructs a fluent builder for the PutDraftAppVersionTemplate operation.
- The fluent builder is configurable:
app_arn(impl Into<String>)/set_app_arn(Option<String>):
required: trueAmazon Resource Name (ARN) of the Resilience Hub application. The format for this ARN is: arn:
partition:resiliencehub:region:account:app/app-id. For more information about ARNs, see Amazon Resource Names (ARNs) in the Amazon Web Services General Reference guide.app_template_body(impl Into<String>)/set_app_template_body(Option<String>):
required: trueA JSON string that provides information about your application structure. To learn more about the
appTemplateBodytemplate, see the sample template provided in the Examples section.The
appTemplateBodyJSON string has the following structure:-
resourcesThe list of logical resources that must be included in the Resilience Hub application.
Type: Array
Don’t add the resources that you want to exclude.
Each
resourcesarray item includes the following fields:-
logicalResourceIdLogical identifier of the resource.
Type: Object
Each
logicalResourceIdobject includes the following fields:-
identifierIdentifier of the resource.
Type: String
-
logicalStackNameThe name of the CloudFormation stack this resource belongs to.
Type: String
-
resourceGroupNameThe name of the resource group this resource belongs to.
Type: String
-
terraformSourceNameThe name of the Terraform S3 state file this resource belongs to.
Type: String
-
eksSourceNameName of the Amazon Elastic Kubernetes Service cluster and namespace this resource belongs to.
This parameter accepts values in “eks-cluster/namespace” format.
Type: String
-
-
typeThe type of resource.
Type: string
-
nameThe name of the resource.
Type: String
-
additionalInfoAdditional configuration parameters for an Resilience Hub application. If you want to implement
additionalInfothrough the Resilience Hub console rather than using an API call, see Configure the application configuration parameters.Currently, this parameter accepts a key-value mapping (in a string format) of only one failover region and one associated account.
Key:
“failover-regions”Value:
“[{“region”:“<REGION>”, “accounts”:[{“id”:“<ACCOUNT_ID>”}]}]“
-
-
appComponentsList of Application Components that this resource belongs to. If an Application Component is not part of the Resilience Hub application, it will be added.
Type: Array
Each
appComponentsarray item includes the following fields:-
nameName of the Application Component.
Type: String
-
typeType of Application Component. For more information about the types of Application Component, see Grouping resources in an AppComponent.
Type: String
-
resourceNamesThe list of included resources that are assigned to the Application Component.
Type: Array of strings
-
additionalInfoAdditional configuration parameters for an Resilience Hub application. If you want to implement
additionalInfothrough the Resilience Hub console rather than using an API call, see Configure the application configuration parameters.Currently, this parameter accepts a key-value mapping (in a string format) of only one failover region and one associated account.
Key:
“failover-regions”Value:
“[{“region”:“<REGION>”, “accounts”:[{“id”:“<ACCOUNT_ID>”}]}]“
-
-
excludedResourcesThe list of logical resource identifiers to be excluded from the application.
Type: Array
Don’t add the resources that you want to include.
Each
excludedResourcesarray item includes the following fields:-
logicalResourceIdsLogical identifier of the resource.
Type: Object
You can configure only one of the following fields:
-
logicalStackName -
resourceGroupName -
terraformSourceName -
eksSourceName
Each
logicalResourceIdsobject includes the following fields:-
identifierIdentifier of the resource.
Type: String
-
logicalStackNameThe name of the CloudFormation stack this resource belongs to.
Type: String
-
resourceGroupNameThe name of the resource group this resource belongs to.
Type: String
-
terraformSourceNameThe name of the Terraform S3 state file this resource belongs to.
Type: String
-
eksSourceNameName of the Amazon Elastic Kubernetes Service cluster and namespace this resource belongs to.
This parameter accepts values in “eks-cluster/namespace” format.
Type: String
-
-
-
versionResilience Hub application version.
-
additionalInfoAdditional configuration parameters for an Resilience Hub application. If you want to implement
additionalInfothrough the Resilience Hub console rather than using an API call, see Configure the application configuration parameters.Currently, this parameter accepts a key-value mapping (in a string format) of only one failover region and one associated account.
Key:
“failover-regions”Value:
“[{“region”:“<REGION>”, “accounts”:[{“id”:“<ACCOUNT_ID>”}]}]“
-
- On success, responds with
PutDraftAppVersionTemplateOutputwith field(s):app_arn(Option<String>):Amazon Resource Name (ARN) of the Resilience Hub application. The format for this ARN is: arn:
partition:resiliencehub:region:account:app/app-id. For more information about ARNs, see Amazon Resource Names (ARNs) in the Amazon Web Services General Reference guide.app_version(Option<String>):The version of the application.
- On failure, responds with
SdkError<PutDraftAppVersionTemplateError>
Source§impl Client
impl Client
Sourcepub fn reject_resource_grouping_recommendations(
&self,
) -> RejectResourceGroupingRecommendationsFluentBuilder
pub fn reject_resource_grouping_recommendations( &self, ) -> RejectResourceGroupingRecommendationsFluentBuilder
Constructs a fluent builder for the RejectResourceGroupingRecommendations operation.
- The fluent builder is configurable:
app_arn(impl Into<String>)/set_app_arn(Option<String>):
required: trueAmazon Resource Name (ARN) of the Resilience Hub application. The format for this ARN is: arn:
partition:resiliencehub:region:account:app/app-id. For more information about ARNs, see Amazon Resource Names (ARNs) in the Amazon Web Services General Reference guide.entries(RejectGroupingRecommendationEntry)/set_entries(Option<Vec::<RejectGroupingRecommendationEntry>>):
required: trueList of resource grouping recommendations you have selected to exclude from your application.
- On success, responds with
RejectResourceGroupingRecommendationsOutputwith field(s):app_arn(String):Amazon Resource Name (ARN) of the Resilience Hub application. The format for this ARN is: arn:
partition:resiliencehub:region:account:app/app-id. For more information about ARNs, see Amazon Resource Names (ARNs) in the Amazon Web Services General Reference guide.failed_entries(Vec::<FailedGroupingRecommendationEntry>):List of resource grouping recommendations that failed to get excluded in your application.
- On failure, responds with
SdkError<RejectResourceGroupingRecommendationsError>
Source§impl Client
impl Client
Sourcepub fn remove_draft_app_version_resource_mappings(
&self,
) -> RemoveDraftAppVersionResourceMappingsFluentBuilder
pub fn remove_draft_app_version_resource_mappings( &self, ) -> RemoveDraftAppVersionResourceMappingsFluentBuilder
Constructs a fluent builder for the RemoveDraftAppVersionResourceMappings operation.
- The fluent builder is configurable:
app_arn(impl Into<String>)/set_app_arn(Option<String>):
required: trueAmazon Resource Name (ARN) of the Resilience Hub application. The format for this ARN is: arn:
partition:resiliencehub:region:account:app/app-id. For more information about ARNs, see Amazon Resource Names (ARNs) in the Amazon Web Services General Reference guide.resource_names(impl Into<String>)/set_resource_names(Option<Vec::<String>>):
required: falseThe names of the resources you want to remove from the resource mappings.
logical_stack_names(impl Into<String>)/set_logical_stack_names(Option<Vec::<String>>):
required: falseThe names of the CloudFormation stacks you want to remove from the resource mappings.
app_registry_app_names(impl Into<String>)/set_app_registry_app_names(Option<Vec::<String>>):
required: falseThe names of the registered applications you want to remove from the resource mappings.
resource_group_names(impl Into<String>)/set_resource_group_names(Option<Vec::<String>>):
required: falseThe names of the resource groups you want to remove from the resource mappings.
terraform_source_names(impl Into<String>)/set_terraform_source_names(Option<Vec::<String>>):
required: falseThe names of the Terraform sources you want to remove from the resource mappings.
eks_source_names(impl Into<String>)/set_eks_source_names(Option<Vec::<String>>):
required: falseThe names of the Amazon Elastic Kubernetes Service clusters and namespaces you want to remove from the resource mappings.
This parameter accepts values in “eks-cluster/namespace” format.
- On success, responds with
RemoveDraftAppVersionResourceMappingsOutputwith field(s):app_arn(Option<String>):Amazon Resource Name (ARN) of the Resilience Hub application. The format for this ARN is: arn:
partition:resiliencehub:region:account:app/app-id. For more information about ARNs, see Amazon Resource Names (ARNs) in the Amazon Web Services General Reference guide.app_version(Option<String>):The version of the application.
- On failure, responds with
SdkError<RemoveDraftAppVersionResourceMappingsError>
Source§impl Client
impl Client
Sourcepub fn resolve_app_version_resources(
&self,
) -> ResolveAppVersionResourcesFluentBuilder
pub fn resolve_app_version_resources( &self, ) -> ResolveAppVersionResourcesFluentBuilder
Constructs a fluent builder for the ResolveAppVersionResources operation.
- The fluent builder is configurable:
app_arn(impl Into<String>)/set_app_arn(Option<String>):
required: trueAmazon Resource Name (ARN) of the Resilience Hub application. The format for this ARN is: arn:
partition:resiliencehub:region:account:app/app-id. For more information about ARNs, see Amazon Resource Names (ARNs) in the Amazon Web Services General Reference guide.app_version(impl Into<String>)/set_app_version(Option<String>):
required: trueThe version of the application.
- On success, responds with
ResolveAppVersionResourcesOutputwith field(s):app_arn(String):Amazon Resource Name (ARN) of the Resilience Hub application. The format for this ARN is: arn:
partition:resiliencehub:region:account:app/app-id. For more information about ARNs, see Amazon Resource Names (ARNs) in the Amazon Web Services General Reference guide.app_version(String):The version of the application.
resolution_id(String):The identifier for a specific resolution.
status(ResourceResolutionStatusType):Status of the action.
- On failure, responds with
SdkError<ResolveAppVersionResourcesError>
Source§impl Client
impl Client
Sourcepub fn start_app_assessment(&self) -> StartAppAssessmentFluentBuilder
pub fn start_app_assessment(&self) -> StartAppAssessmentFluentBuilder
Constructs a fluent builder for the StartAppAssessment operation.
- The fluent builder is configurable:
app_arn(impl Into<String>)/set_app_arn(Option<String>):
required: trueAmazon Resource Name (ARN) of the Resilience Hub application. The format for this ARN is: arn:
partition:resiliencehub:region:account:app/app-id. For more information about ARNs, see Amazon Resource Names (ARNs) in the Amazon Web Services General Reference guide.app_version(impl Into<String>)/set_app_version(Option<String>):
required: trueThe version of the application.
assessment_name(impl Into<String>)/set_assessment_name(Option<String>):
required: trueThe name for the assessment.
client_token(impl Into<String>)/set_client_token(Option<String>):
required: falseUsed for an idempotency token. A client token is a unique, case-sensitive string of up to 64 ASCII characters. You should not reuse the same client token for other API requests.
tags(impl Into<String>, impl Into<String>)/set_tags(Option<HashMap::<String, String>>):
required: falseTags assigned to the resource. A tag is a label that you assign to an Amazon Web Services resource. Each tag consists of a key/value pair.
- On success, responds with
StartAppAssessmentOutputwith field(s):assessment(Option<AppAssessment>):The assessment created.
- On failure, responds with
SdkError<StartAppAssessmentError>
Source§impl Client
impl Client
Sourcepub fn start_metrics_export(&self) -> StartMetricsExportFluentBuilder
pub fn start_metrics_export(&self) -> StartMetricsExportFluentBuilder
Constructs a fluent builder for the StartMetricsExport operation.
- The fluent builder is configurable:
bucket_name(impl Into<String>)/set_bucket_name(Option<String>):
required: false(Optional) Specifies the name of the Amazon Simple Storage Service bucket where the exported metrics will be stored.
client_token(impl Into<String>)/set_client_token(Option<String>):
required: falseUsed for an idempotency token. A client token is a unique, case-sensitive string of up to 64 ASCII characters. You should not reuse the same client token for other API requests.
- On success, responds with
StartMetricsExportOutputwith field(s):metrics_export_id(String):Identifier of the metrics export task.
status(MetricsExportStatusType):Indicates the status of the metrics export task.
- On failure, responds with
SdkError<StartMetricsExportError>
Source§impl Client
impl Client
Sourcepub fn start_resource_grouping_recommendation_task(
&self,
) -> StartResourceGroupingRecommendationTaskFluentBuilder
pub fn start_resource_grouping_recommendation_task( &self, ) -> StartResourceGroupingRecommendationTaskFluentBuilder
Constructs a fluent builder for the StartResourceGroupingRecommendationTask operation.
- The fluent builder is configurable:
app_arn(impl Into<String>)/set_app_arn(Option<String>):
required: trueAmazon Resource Name (ARN) of the Resilience Hub application. The format for this ARN is: arn:
partition:resiliencehub:region:account:app/app-id. For more information about ARNs, see Amazon Resource Names (ARNs) in the Amazon Web Services General Reference guide.
- On success, responds with
StartResourceGroupingRecommendationTaskOutputwith field(s):app_arn(String):Amazon Resource Name (ARN) of the Resilience Hub application. The format for this ARN is: arn:
partition:resiliencehub:region:account:app/app-id. For more information about ARNs, see Amazon Resource Names (ARNs) in the Amazon Web Services General Reference guide.grouping_id(String):Identifier of the grouping recommendation task.
status(ResourcesGroupingRecGenStatusType):Status of the action.
error_message(Option<String>):Error that occurred while executing a grouping recommendation task.
- On failure, responds with
SdkError<StartResourceGroupingRecommendationTaskError>
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: trueAmazon Resource Name (ARN) of the resource.
tags(impl Into<String>, impl Into<String>)/set_tags(Option<HashMap::<String, String>>):
required: trueThe tags to assign to the resource. Each tag consists of a key/value pair.
- 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: trueAmazon Resource Name (ARN) of the resource.
tag_keys(impl Into<String>)/set_tag_keys(Option<Vec::<String>>):
required: trueThe keys of the tags you want to remove.
- On success, responds with
UntagResourceOutput - On failure, responds with
SdkError<UntagResourceError>
Source§impl Client
impl Client
Sourcepub fn update_app(&self) -> UpdateAppFluentBuilder
pub fn update_app(&self) -> UpdateAppFluentBuilder
Constructs a fluent builder for the UpdateApp operation.
- The fluent builder is configurable:
app_arn(impl Into<String>)/set_app_arn(Option<String>):
required: trueAmazon Resource Name (ARN) of the Resilience Hub application. The format for this ARN is: arn:
partition:resiliencehub:region:account:app/app-id. For more information about ARNs, see Amazon Resource Names (ARNs) in the Amazon Web Services General Reference guide.description(impl Into<String>)/set_description(Option<String>):
required: falseThe optional description for an app.
policy_arn(impl Into<String>)/set_policy_arn(Option<String>):
required: falseAmazon Resource Name (ARN) of the resiliency policy. The format for this ARN is: arn:
partition:resiliencehub:region:account:resiliency-policy/policy-id. For more information about ARNs, see Amazon Resource Names (ARNs) in the Amazon Web Services General Reference guide.clear_resiliency_policy_arn(bool)/set_clear_resiliency_policy_arn(Option<bool>):
required: falseSpecifies if the resiliency policy ARN should be cleared.
assessment_schedule(AppAssessmentScheduleType)/set_assessment_schedule(Option<AppAssessmentScheduleType>):
required: falseAssessment execution schedule with ‘Daily’ or ‘Disabled’ values.
permission_model(PermissionModel)/set_permission_model(Option<PermissionModel>):
required: falseDefines the roles and credentials that Resilience Hub would use while creating an application, importing its resources, and running an assessment.
event_subscriptions(EventSubscription)/set_event_subscriptions(Option<Vec::<EventSubscription>>):
required: falseThe list of events you would like to subscribe and get notification for. Currently, Resilience Hub supports notifications only for Drift detected and Scheduled assessment failure events.
- On success, responds with
UpdateAppOutputwith field(s):app(Option<App>):The specified application, returned as an object with details including compliance status, creation time, description, resiliency score, and more.
- On failure, responds with
SdkError<UpdateAppError>
Source§impl Client
impl Client
Sourcepub fn update_app_version(&self) -> UpdateAppVersionFluentBuilder
pub fn update_app_version(&self) -> UpdateAppVersionFluentBuilder
Constructs a fluent builder for the UpdateAppVersion operation.
- The fluent builder is configurable:
app_arn(impl Into<String>)/set_app_arn(Option<String>):
required: trueAmazon Resource Name (ARN) of the Resilience Hub application. The format for this ARN is: arn:
partition:resiliencehub:region:account:app/app-id. For more information about ARNs, see Amazon Resource Names (ARNs) in the Amazon Web Services General Reference guide.additional_info(impl Into<String>, Vec::<String>)/set_additional_info(Option<HashMap::<String, Vec::<String>>>):
required: falseAdditional configuration parameters for an Resilience Hub application. If you want to implement
additionalInfothrough the Resilience Hub console rather than using an API call, see Configure the application configuration parameters.Currently, this parameter accepts a key-value mapping (in a string format) of only one failover region and one associated account.
Key:
“failover-regions”Value:
“[{“region”:“<REGION>”, “accounts”:[{“id”:“<ACCOUNT_ID>”}]}]“
- On success, responds with
UpdateAppVersionOutputwith field(s):app_arn(String):Amazon Resource Name (ARN) of the Resilience Hub application. The format for this ARN is: arn:
partition:resiliencehub:region:account:app/app-id. For more information about ARNs, see Amazon Resource Names (ARNs) in the Amazon Web Services General Reference guide.app_version(String):Resilience Hub application version.
additional_info(Option<HashMap::<String, Vec::<String>>>):Additional configuration parameters for an Resilience Hub application. If you want to implement
additionalInfothrough the Resilience Hub console rather than using an API call, see Configure the application configuration parameters.Currently, this parameter supports only failover region and account.
- On failure, responds with
SdkError<UpdateAppVersionError>
Source§impl Client
impl Client
Sourcepub fn update_app_version_app_component(
&self,
) -> UpdateAppVersionAppComponentFluentBuilder
pub fn update_app_version_app_component( &self, ) -> UpdateAppVersionAppComponentFluentBuilder
Constructs a fluent builder for the UpdateAppVersionAppComponent operation.
- The fluent builder is configurable:
app_arn(impl Into<String>)/set_app_arn(Option<String>):
required: trueAmazon Resource Name (ARN) of the Resilience Hub application. The format for this ARN is: arn:
partition:resiliencehub:region:account:app/app-id. For more information about ARNs, see Amazon Resource Names (ARNs) in the Amazon Web Services General Reference guide.id(impl Into<String>)/set_id(Option<String>):
required: trueIdentifier of the Application Component.
name(impl Into<String>)/set_name(Option<String>):
required: falseName of the Application Component.
r#type(impl Into<String>)/set_type(Option<String>):
required: falseType of Application Component. For more information about the types of Application Component, see Grouping resources in an AppComponent.
additional_info(impl Into<String>, Vec::<String>)/set_additional_info(Option<HashMap::<String, Vec::<String>>>):
required: falseCurrently, there is no supported additional information for Application Components.
- On success, responds with
UpdateAppVersionAppComponentOutputwith field(s):app_arn(String):Amazon Resource Name (ARN) of the Resilience Hub application. The format for this ARN is: arn:
partition:resiliencehub:region:account:app/app-id. For more information about ARNs, see Amazon Resource Names (ARNs) in the Amazon Web Services General Reference guide.app_version(String):Resilience Hub application version.
app_component(Option<AppComponent>):List of Application Components that belong to this resource.
- On failure, responds with
SdkError<UpdateAppVersionAppComponentError>
Source§impl Client
impl Client
Sourcepub fn update_app_version_resource(
&self,
) -> UpdateAppVersionResourceFluentBuilder
pub fn update_app_version_resource( &self, ) -> UpdateAppVersionResourceFluentBuilder
Constructs a fluent builder for the UpdateAppVersionResource operation.
- The fluent builder is configurable:
app_arn(impl Into<String>)/set_app_arn(Option<String>):
required: trueAmazon Resource Name (ARN) of the Resilience Hub application. The format for this ARN is: arn:
partition:resiliencehub:region:account:app/app-id. For more information about ARNs, see Amazon Resource Names (ARNs) in the Amazon Web Services General Reference guide.resource_name(impl Into<String>)/set_resource_name(Option<String>):
required: falseName of the resource.
logical_resource_id(LogicalResourceId)/set_logical_resource_id(Option<LogicalResourceId>):
required: falseLogical identifier of the resource.
physical_resource_id(impl Into<String>)/set_physical_resource_id(Option<String>):
required: falsePhysical identifier of the resource.
aws_region(impl Into<String>)/set_aws_region(Option<String>):
required: falseAmazon Web Services region that owns the physical resource.
aws_account_id(impl Into<String>)/set_aws_account_id(Option<String>):
required: falseAmazon Web Services account that owns the physical resource.
resource_type(impl Into<String>)/set_resource_type(Option<String>):
required: falseType of resource.
app_components(impl Into<String>)/set_app_components(Option<Vec::<String>>):
required: falseList of Application Components that this resource belongs to. If an Application Component is not part of the Resilience Hub application, it will be added.
additional_info(impl Into<String>, Vec::<String>)/set_additional_info(Option<HashMap::<String, Vec::<String>>>):
required: falseCurrently, there is no supported additional information for resources.
excluded(bool)/set_excluded(Option<bool>):
required: falseIndicates if a resource is excluded from an Resilience Hub application.
You can exclude only imported resources from an Resilience Hub application.
- On success, responds with
UpdateAppVersionResourceOutputwith field(s):app_arn(String):Amazon Resource Name (ARN) of the Resilience Hub application. The format for this ARN is: arn:
partition:resiliencehub:region:account:app/app-id. For more information about ARNs, see Amazon Resource Names (ARNs) in the Amazon Web Services General Reference guide.app_version(String):Resilience Hub application version.
physical_resource(Option<PhysicalResource>):Defines a physical resource. A physical resource is a resource that exists in your account. It can be identified using an Amazon Resource Name (ARN) or a Resilience Hub-native identifier.
- On failure, responds with
SdkError<UpdateAppVersionResourceError>
Source§impl Client
impl Client
Sourcepub fn update_resiliency_policy(&self) -> UpdateResiliencyPolicyFluentBuilder
pub fn update_resiliency_policy(&self) -> UpdateResiliencyPolicyFluentBuilder
Constructs a fluent builder for the UpdateResiliencyPolicy operation.
- The fluent builder is configurable:
policy_arn(impl Into<String>)/set_policy_arn(Option<String>):
required: trueAmazon Resource Name (ARN) of the resiliency policy. The format for this ARN is: arn:
partition:resiliencehub:region:account:resiliency-policy/policy-id. For more information about ARNs, see Amazon Resource Names (ARNs) in the Amazon Web Services General Reference guide.policy_name(impl Into<String>)/set_policy_name(Option<String>):
required: falseName of the resiliency policy.
policy_description(impl Into<String>)/set_policy_description(Option<String>):
required: falseDescription of the resiliency policy.
data_location_constraint(DataLocationConstraint)/set_data_location_constraint(Option<DataLocationConstraint>):
required: falseSpecifies a high-level geographical location constraint for where your resilience policy data can be stored.
tier(ResiliencyPolicyTier)/set_tier(Option<ResiliencyPolicyTier>):
required: falseThe tier for this resiliency policy, ranging from the highest severity (
MissionCritical) to lowest (NonCritical).policy(DisruptionType, FailurePolicy)/set_policy(Option<HashMap::<DisruptionType, FailurePolicy>>):
required: falseResiliency policy to be created, including the recovery time objective (RTO) and recovery point objective (RPO) in seconds.
- On success, responds with
UpdateResiliencyPolicyOutputwith field(s):policy(Option<ResiliencyPolicy>):The resiliency policy that was updated, including the recovery time objective (RTO) and recovery point objective (RPO) in seconds.
- On failure, responds with
SdkError<UpdateResiliencyPolicyError>
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 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);