Class: Aws::Resiliencehubv2::Client
- Inherits:
-
Seahorse::Client::Base
- Object
- Seahorse::Client::Base
- Aws::Resiliencehubv2::Client
- Includes:
- ClientStubs
- Defined in:
- gems/aws-sdk-resiliencehubv2/lib/aws-sdk-resiliencehubv2/client.rb
Overview
An API client for Resiliencehubv2. To construct a client, you need to configure a :region and :credentials.
client = Aws::Resiliencehubv2::Client.new(
region: region_name,
credentials: credentials,
# ...
)
For details on configuring region and credentials see the developer guide.
See #initialize for a full list of supported configuration options.
Instance Attribute Summary
Attributes inherited from Seahorse::Client::Base
API Operations collapse
-
#create_assertion(params = {}) ⇒ Types::CreateAssertionResponse
Creates a resilience assertion for a service.
-
#create_input_source(params = {}) ⇒ Types::CreateInputSourceResponse
Creates an input source for a service.
-
#create_policy(params = {}) ⇒ Types::CreatePolicyResponse
Creates a resilience policy that defines availability and disaster recovery requirements.
-
#create_report(params = {}) ⇒ Types::CreateReportResponse
On-demand report creation.
-
#create_service(params = {}) ⇒ Types::CreateServiceResponse
Creates a service.
-
#create_service_function(params = {}) ⇒ Types::CreateServiceFunctionResponse
Creates a service function within a service.
-
#create_service_function_resources(params = {}) ⇒ Types::CreateServiceFunctionResourcesResponse
Associates resources with a service function.
-
#create_system(params = {}) ⇒ Types::CreateSystemResponse
Creates a system that represents a logical grouping of services.
-
#create_user_journey(params = {}) ⇒ Types::CreateUserJourneyResponse
Creates a user journey within a system.
-
#delete_assertion(params = {}) ⇒ Types::DeleteAssertionResponse
Deletes a resilience assertion from a service.
-
#delete_input_source(params = {}) ⇒ Types::DeleteInputSourceResponse
Deletes an input source.
-
#delete_policy(params = {}) ⇒ Types::DeletePolicyResponse
Deletes a resilience policy.
-
#delete_service(params = {}) ⇒ Types::DeleteServiceResponse
Deletes a service.
-
#delete_service_function(params = {}) ⇒ Types::DeleteServiceFunctionResponse
Deletes a service function.
-
#delete_service_function_resources(params = {}) ⇒ Types::DeleteServiceFunctionResourcesResponse
Removes resources from a service function.
-
#delete_system(params = {}) ⇒ Types::DeleteSystemResponse
Deletes a system.
-
#delete_user_journey(params = {}) ⇒ Types::DeleteUserJourneyResponse
Deletes a user journey.
-
#get_failure_mode_finding(params = {}) ⇒ Types::GetFailureModeFindingResponse
Retrieves a finding by findingId.
-
#get_policy(params = {}) ⇒ Types::GetPolicyResponse
Retrieves a resilience policy by ARN.
-
#get_service(params = {}) ⇒ Types::GetServiceResponse
Retrieves a service by ARN.
-
#get_system(params = {}) ⇒ Types::GetSystemResponse
Retrieves a system by ARN.
-
#get_user_journey(params = {}) ⇒ Types::GetUserJourneyResponse
Retrieves a user journey.
-
#import_app(params = {}) ⇒ Types::ImportAppResponse
Imports a V1 app into the V2 resource model, creating a service with the same name.
-
#import_policy(params = {}) ⇒ Types::ImportPolicyResponse
Imports a V1 policy into V2, mapping RTO/RPO values from V1 scenarios.
-
#list_assertions(params = {}) ⇒ Types::ListAssertionsResponse
Lists resilience assertions for a service.
-
#list_dependencies(params = {}) ⇒ Types::ListDependenciesResponse
Lists dependencies discovered for services.
-
#list_failure_mode_assessments(params = {}) ⇒ Types::ListFailureModeAssessmentsResponse
Lists failure mode assessments.
-
#list_failure_mode_findings(params = {}) ⇒ Types::ListFailureModeFindingsResponse
List findings.
-
#list_input_sources(params = {}) ⇒ Types::ListInputSourcesResponse
Lists input sources for a service.
-
#list_policies(params = {}) ⇒ Types::ListPoliciesResponse
Lists resilience policies.
-
#list_reports(params = {}) ⇒ Types::ListReportsResponse
List reports for a service, or all reports owned by the account if serviceArn is not provided.
-
#list_resources(params = {}) ⇒ Types::ListResourcesResponse
List resources.
-
#list_service_events(params = {}) ⇒ Types::ListServiceEventsResponse
Lists events for a service.
-
#list_service_functions(params = {}) ⇒ Types::ListServiceFunctionsResponse
Lists service functions for a service.
-
#list_service_topology_edges(params = {}) ⇒ Types::ListServiceTopologyEdgesResponse
Lists topology edges for a service.
-
#list_services(params = {}) ⇒ Types::ListServicesResponse
Lists services.
-
#list_system_events(params = {}) ⇒ Types::ListSystemEventsResponse
Lists events for a system.
-
#list_systems(params = {}) ⇒ Types::ListSystemsResponse
Lists systems.
-
#list_tags_for_resource(params = {}) ⇒ Types::ListTagsForResourceResponse
Lists the tags for a resource.
-
#list_user_journeys(params = {}) ⇒ Types::ListUserJourneysResponse
Lists user journeys for a system.
-
#start_failure_mode_assessment(params = {}) ⇒ Types::StartFailureModeAssessmentResponse
Start a failure mode assessment.
-
#tag_resource(params = {}) ⇒ Struct
Adds tags to a resource.
-
#untag_resource(params = {}) ⇒ Struct
Removes tags from a resource.
-
#update_assertion(params = {}) ⇒ Types::UpdateAssertionResponse
Updates a resilience assertion.
-
#update_dependency(params = {}) ⇒ Types::UpdateDependencyResponse
Updates a dependency classification.
-
#update_failure_mode_finding(params = {}) ⇒ Types::UpdateFailureModeFindingResponse
Updates an existing finding.
-
#update_policy(params = {}) ⇒ Types::UpdatePolicyResponse
Updates an existing resilience policy.
-
#update_service(params = {}) ⇒ Types::UpdateServiceResponse
Updates an existing service.
-
#update_service_function(params = {}) ⇒ Types::UpdateServiceFunctionResponse
Updates a service function.
-
#update_system(params = {}) ⇒ Types::UpdateSystemResponse
Updates an existing system.
-
#update_user_journey(params = {}) ⇒ Types::UpdateUserJourneyResponse
Updates an existing user journey.
Instance Method Summary collapse
-
#initialize(options) ⇒ Client
constructor
A new instance of Client.
-
#wait_until(waiter_name, params = {}, options = {}) {|w.waiter| ... } ⇒ Boolean
Polls an API operation until a resource enters a desired state.
Methods included from ClientStubs
#api_requests, #stub_data, #stub_responses
Methods inherited from Seahorse::Client::Base
add_plugin, api, clear_plugins, define, new, #operation_names, plugins, remove_plugin, set_api, set_plugins
Methods included from Seahorse::Client::HandlerBuilder
#handle, #handle_request, #handle_response
Constructor Details
#initialize(options) ⇒ Client
Returns a new instance of Client.
471 472 473 |
# File 'gems/aws-sdk-resiliencehubv2/lib/aws-sdk-resiliencehubv2/client.rb', line 471 def initialize(*args) super end |
Instance Method Details
#create_assertion(params = {}) ⇒ Types::CreateAssertionResponse
Creates a resilience assertion for a service.
516 517 518 519 |
# File 'gems/aws-sdk-resiliencehubv2/lib/aws-sdk-resiliencehubv2/client.rb', line 516 def create_assertion(params = {}, = {}) req = build_request(:create_assertion, params) req.send_request() end |
#create_input_source(params = {}) ⇒ Types::CreateInputSourceResponse
Creates an input source for a service.
571 572 573 574 |
# File 'gems/aws-sdk-resiliencehubv2/lib/aws-sdk-resiliencehubv2/client.rb', line 571 def create_input_source(params = {}, = {}) req = build_request(:create_input_source, params) req.send_request() end |
#create_policy(params = {}) ⇒ Types::CreatePolicyResponse
Creates a resilience policy that defines availability and disaster recovery requirements.
666 667 668 669 |
# File 'gems/aws-sdk-resiliencehubv2/lib/aws-sdk-resiliencehubv2/client.rb', line 666 def create_policy(params = {}, = {}) req = build_request(:create_policy, params) req.send_request() end |
#create_report(params = {}) ⇒ Types::CreateReportResponse
On-demand report creation. Idempotent — duplicate requests with same clientToken return existing result.
713 714 715 716 |
# File 'gems/aws-sdk-resiliencehubv2/lib/aws-sdk-resiliencehubv2/client.rb', line 713 def create_report(params = {}, = {}) req = build_request(:create_report, params) req.send_request() end |
#create_service(params = {}) ⇒ Types::CreateServiceResponse
Creates a service.
875 876 877 878 |
# File 'gems/aws-sdk-resiliencehubv2/lib/aws-sdk-resiliencehubv2/client.rb', line 875 def create_service(params = {}, = {}) req = build_request(:create_service, params) req.send_request() end |
#create_service_function(params = {}) ⇒ Types::CreateServiceFunctionResponse
Creates a service function within a service.
930 931 932 933 |
# File 'gems/aws-sdk-resiliencehubv2/lib/aws-sdk-resiliencehubv2/client.rb', line 930 def create_service_function(params = {}, = {}) req = build_request(:create_service_function, params) req.send_request() end |
#create_service_function_resources(params = {}) ⇒ Types::CreateServiceFunctionResourcesResponse
Associates resources with a service function.
971 972 973 974 |
# File 'gems/aws-sdk-resiliencehubv2/lib/aws-sdk-resiliencehubv2/client.rb', line 971 def create_service_function_resources(params = {}, = {}) req = build_request(:create_service_function_resources, params) req.send_request() end |
#create_system(params = {}) ⇒ Types::CreateSystemResponse
Creates a system that represents a logical grouping of services.
1036 1037 1038 1039 |
# File 'gems/aws-sdk-resiliencehubv2/lib/aws-sdk-resiliencehubv2/client.rb', line 1036 def create_system(params = {}, = {}) req = build_request(:create_system, params) req.send_request() end |
#create_user_journey(params = {}) ⇒ Types::CreateUserJourneyResponse
Creates a user journey within a system.
1088 1089 1090 1091 |
# File 'gems/aws-sdk-resiliencehubv2/lib/aws-sdk-resiliencehubv2/client.rb', line 1088 def create_user_journey(params = {}, = {}) req = build_request(:create_user_journey, params) req.send_request() end |
#delete_assertion(params = {}) ⇒ Types::DeleteAssertionResponse
Deletes a resilience assertion from a service.
1120 1121 1122 1123 |
# File 'gems/aws-sdk-resiliencehubv2/lib/aws-sdk-resiliencehubv2/client.rb', line 1120 def delete_assertion(params = {}, = {}) req = build_request(:delete_assertion, params) req.send_request() end |
#delete_input_source(params = {}) ⇒ Types::DeleteInputSourceResponse
Deletes an input source.
1154 1155 1156 1157 |
# File 'gems/aws-sdk-resiliencehubv2/lib/aws-sdk-resiliencehubv2/client.rb', line 1154 def delete_input_source(params = {}, = {}) req = build_request(:delete_input_source, params) req.send_request() end |
#delete_policy(params = {}) ⇒ Types::DeletePolicyResponse
Deletes a resilience policy.
1182 1183 1184 1185 |
# File 'gems/aws-sdk-resiliencehubv2/lib/aws-sdk-resiliencehubv2/client.rb', line 1182 def delete_policy(params = {}, = {}) req = build_request(:delete_policy, params) req.send_request() end |
#delete_service(params = {}) ⇒ Types::DeleteServiceResponse
Deletes a service.
1210 1211 1212 1213 |
# File 'gems/aws-sdk-resiliencehubv2/lib/aws-sdk-resiliencehubv2/client.rb', line 1210 def delete_service(params = {}, = {}) req = build_request(:delete_service, params) req.send_request() end |
#delete_service_function(params = {}) ⇒ Types::DeleteServiceFunctionResponse
Deletes a service function.
1242 1243 1244 1245 |
# File 'gems/aws-sdk-resiliencehubv2/lib/aws-sdk-resiliencehubv2/client.rb', line 1242 def delete_service_function(params = {}, = {}) req = build_request(:delete_service_function, params) req.send_request() end |
#delete_service_function_resources(params = {}) ⇒ Types::DeleteServiceFunctionResourcesResponse
Removes resources from a service function.
1283 1284 1285 1286 |
# File 'gems/aws-sdk-resiliencehubv2/lib/aws-sdk-resiliencehubv2/client.rb', line 1283 def delete_service_function_resources(params = {}, = {}) req = build_request(:delete_service_function_resources, params) req.send_request() end |
#delete_system(params = {}) ⇒ Types::DeleteSystemResponse
Deletes a system.
1311 1312 1313 1314 |
# File 'gems/aws-sdk-resiliencehubv2/lib/aws-sdk-resiliencehubv2/client.rb', line 1311 def delete_system(params = {}, = {}) req = build_request(:delete_system, params) req.send_request() end |
#delete_user_journey(params = {}) ⇒ Types::DeleteUserJourneyResponse
Deletes a user journey.
1343 1344 1345 1346 |
# File 'gems/aws-sdk-resiliencehubv2/lib/aws-sdk-resiliencehubv2/client.rb', line 1343 def delete_user_journey(params = {}, = {}) req = build_request(:delete_user_journey, params) req.send_request() end |
#get_failure_mode_finding(params = {}) ⇒ Types::GetFailureModeFindingResponse
Retrieves a finding by findingId.
1395 1396 1397 1398 |
# File 'gems/aws-sdk-resiliencehubv2/lib/aws-sdk-resiliencehubv2/client.rb', line 1395 def get_failure_mode_finding(params = {}, = {}) req = build_request(:get_failure_mode_finding, params) req.send_request() end |
#get_policy(params = {}) ⇒ Types::GetPolicyResponse
Retrieves a resilience policy by ARN.
1439 1440 1441 1442 |
# File 'gems/aws-sdk-resiliencehubv2/lib/aws-sdk-resiliencehubv2/client.rb', line 1439 def get_policy(params = {}, = {}) req = build_request(:get_policy, params) req.send_request() end |
#get_service(params = {}) ⇒ Types::GetServiceResponse
Retrieves a service by ARN.
The following waiters are defined for this operation (see #wait_until for detailed usage):
- service_assessment_completed
- service_resource_discovery_completed
1537 1538 1539 1540 |
# File 'gems/aws-sdk-resiliencehubv2/lib/aws-sdk-resiliencehubv2/client.rb', line 1537 def get_service(params = {}, = {}) req = build_request(:get_service, params) req.send_request() end |
#get_system(params = {}) ⇒ Types::GetSystemResponse
Retrieves a system by ARN.
1576 1577 1578 1579 |
# File 'gems/aws-sdk-resiliencehubv2/lib/aws-sdk-resiliencehubv2/client.rb', line 1576 def get_system(params = {}, = {}) req = build_request(:get_system, params) req.send_request() end |
#get_user_journey(params = {}) ⇒ Types::GetUserJourneyResponse
Retrieves a user journey.
1613 1614 1615 1616 |
# File 'gems/aws-sdk-resiliencehubv2/lib/aws-sdk-resiliencehubv2/client.rb', line 1613 def get_user_journey(params = {}, = {}) req = build_request(:get_user_journey, params) req.send_request() end |
#import_app(params = {}) ⇒ Types::ImportAppResponse
Imports a V1 app into the V2 resource model, creating a service with the same name.
1742 1743 1744 1745 |
# File 'gems/aws-sdk-resiliencehubv2/lib/aws-sdk-resiliencehubv2/client.rb', line 1742 def import_app(params = {}, = {}) req = build_request(:import_app, params) req.send_request() end |
#import_policy(params = {}) ⇒ Types::ImportPolicyResponse
Imports a V1 policy into V2, mapping RTO/RPO values from V1 scenarios.
1818 1819 1820 1821 |
# File 'gems/aws-sdk-resiliencehubv2/lib/aws-sdk-resiliencehubv2/client.rb', line 1818 def import_policy(params = {}, = {}) req = build_request(:import_policy, params) req.send_request() end |
#list_assertions(params = {}) ⇒ Types::ListAssertionsResponse
Lists resilience assertions for a service.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
1868 1869 1870 1871 |
# File 'gems/aws-sdk-resiliencehubv2/lib/aws-sdk-resiliencehubv2/client.rb', line 1868 def list_assertions(params = {}, = {}) req = build_request(:list_assertions, params) req.send_request() end |
#list_dependencies(params = {}) ⇒ Types::ListDependenciesResponse
Lists dependencies discovered for services.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
1937 1938 1939 1940 |
# File 'gems/aws-sdk-resiliencehubv2/lib/aws-sdk-resiliencehubv2/client.rb', line 1937 def list_dependencies(params = {}, = {}) req = build_request(:list_dependencies, params) req.send_request() end |
#list_failure_mode_assessments(params = {}) ⇒ Types::ListFailureModeAssessmentsResponse
Lists failure mode assessments.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
The following waiters are defined for this operation (see #wait_until for detailed usage):
- failure_mode_assessment_success
1997 1998 1999 2000 |
# File 'gems/aws-sdk-resiliencehubv2/lib/aws-sdk-resiliencehubv2/client.rb', line 1997 def list_failure_mode_assessments(params = {}, = {}) req = build_request(:list_failure_mode_assessments, params) req.send_request() end |
#list_failure_mode_findings(params = {}) ⇒ Types::ListFailureModeFindingsResponse
List findings.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
2058 2059 2060 2061 |
# File 'gems/aws-sdk-resiliencehubv2/lib/aws-sdk-resiliencehubv2/client.rb', line 2058 def list_failure_mode_findings(params = {}, = {}) req = build_request(:list_failure_mode_findings, params) req.send_request() end |
#list_input_sources(params = {}) ⇒ Types::ListInputSourcesResponse
Lists input sources for a service.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
2115 2116 2117 2118 |
# File 'gems/aws-sdk-resiliencehubv2/lib/aws-sdk-resiliencehubv2/client.rb', line 2115 def list_input_sources(params = {}, = {}) req = build_request(:list_input_sources, params) req.send_request() end |
#list_policies(params = {}) ⇒ Types::ListPoliciesResponse
Lists resilience policies.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
2164 2165 2166 2167 |
# File 'gems/aws-sdk-resiliencehubv2/lib/aws-sdk-resiliencehubv2/client.rb', line 2164 def list_policies(params = {}, = {}) req = build_request(:list_policies, params) req.send_request() end |
#list_reports(params = {}) ⇒ Types::ListReportsResponse
List reports for a service, or all reports owned by the account if serviceArn is not provided.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
The following waiters are defined for this operation (see #wait_until for detailed usage):
- report_succeeded
2222 2223 2224 2225 |
# File 'gems/aws-sdk-resiliencehubv2/lib/aws-sdk-resiliencehubv2/client.rb', line 2222 def list_reports(params = {}, = {}) req = build_request(:list_reports, params) req.send_request() end |
#list_resources(params = {}) ⇒ Types::ListResourcesResponse
List resources.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
2279 2280 2281 2282 |
# File 'gems/aws-sdk-resiliencehubv2/lib/aws-sdk-resiliencehubv2/client.rb', line 2279 def list_resources(params = {}, = {}) req = build_request(:list_resources, params) req.send_request() end |
#list_service_events(params = {}) ⇒ Types::ListServiceEventsResponse
Lists events for a service.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
2386 2387 2388 2389 |
# File 'gems/aws-sdk-resiliencehubv2/lib/aws-sdk-resiliencehubv2/client.rb', line 2386 def list_service_events(params = {}, = {}) req = build_request(:list_service_events, params) req.send_request() end |
#list_service_functions(params = {}) ⇒ Types::ListServiceFunctionsResponse
Lists service functions for a service.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
2435 2436 2437 2438 |
# File 'gems/aws-sdk-resiliencehubv2/lib/aws-sdk-resiliencehubv2/client.rb', line 2435 def list_service_functions(params = {}, = {}) req = build_request(:list_service_functions, params) req.send_request() end |
#list_service_topology_edges(params = {}) ⇒ Types::ListServiceTopologyEdgesResponse
Lists topology edges for a service.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
2480 2481 2482 2483 |
# File 'gems/aws-sdk-resiliencehubv2/lib/aws-sdk-resiliencehubv2/client.rb', line 2480 def list_service_topology_edges(params = {}, = {}) req = build_request(:list_service_topology_edges, params) req.send_request() end |
#list_services(params = {}) ⇒ Types::ListServicesResponse
Lists services.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
2563 2564 2565 2566 |
# File 'gems/aws-sdk-resiliencehubv2/lib/aws-sdk-resiliencehubv2/client.rb', line 2563 def list_services(params = {}, = {}) req = build_request(:list_services, params) req.send_request() end |
#list_system_events(params = {}) ⇒ Types::ListSystemEventsResponse
Lists events for a system.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
2655 2656 2657 2658 |
# File 'gems/aws-sdk-resiliencehubv2/lib/aws-sdk-resiliencehubv2/client.rb', line 2655 def list_system_events(params = {}, = {}) req = build_request(:list_system_events, params) req.send_request() end |
#list_systems(params = {}) ⇒ Types::ListSystemsResponse
Lists systems.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
2704 2705 2706 2707 |
# File 'gems/aws-sdk-resiliencehubv2/lib/aws-sdk-resiliencehubv2/client.rb', line 2704 def list_systems(params = {}, = {}) req = build_request(:list_systems, params) req.send_request() end |
#list_tags_for_resource(params = {}) ⇒ Types::ListTagsForResourceResponse
Lists the tags for a resource.
2733 2734 2735 2736 |
# File 'gems/aws-sdk-resiliencehubv2/lib/aws-sdk-resiliencehubv2/client.rb', line 2733 def (params = {}, = {}) req = build_request(:list_tags_for_resource, params) req.send_request() end |
#list_user_journeys(params = {}) ⇒ Types::ListUserJourneysResponse
Lists user journeys for a system.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
2777 2778 2779 2780 |
# File 'gems/aws-sdk-resiliencehubv2/lib/aws-sdk-resiliencehubv2/client.rb', line 2777 def list_user_journeys(params = {}, = {}) req = build_request(:list_user_journeys, params) req.send_request() end |
#start_failure_mode_assessment(params = {}) ⇒ Types::StartFailureModeAssessmentResponse
Start a failure mode assessment.
2818 2819 2820 2821 |
# File 'gems/aws-sdk-resiliencehubv2/lib/aws-sdk-resiliencehubv2/client.rb', line 2818 def start_failure_mode_assessment(params = {}, = {}) req = build_request(:start_failure_mode_assessment, params) req.send_request() end |
#tag_resource(params = {}) ⇒ Struct
Adds tags to a resource.
2846 2847 2848 2849 |
# File 'gems/aws-sdk-resiliencehubv2/lib/aws-sdk-resiliencehubv2/client.rb', line 2846 def tag_resource(params = {}, = {}) req = build_request(:tag_resource, params) req.send_request() end |
#untag_resource(params = {}) ⇒ Struct
Removes tags from a resource.
2872 2873 2874 2875 |
# File 'gems/aws-sdk-resiliencehubv2/lib/aws-sdk-resiliencehubv2/client.rb', line 2872 def untag_resource(params = {}, = {}) req = build_request(:untag_resource, params) req.send_request() end |
#update_assertion(params = {}) ⇒ Types::UpdateAssertionResponse
Updates a resilience assertion.
2913 2914 2915 2916 |
# File 'gems/aws-sdk-resiliencehubv2/lib/aws-sdk-resiliencehubv2/client.rb', line 2913 def update_assertion(params = {}, = {}) req = build_request(:update_assertion, params) req.send_request() end |
#update_dependency(params = {}) ⇒ Types::UpdateDependencyResponse
Updates a dependency classification.
2965 2966 2967 2968 |
# File 'gems/aws-sdk-resiliencehubv2/lib/aws-sdk-resiliencehubv2/client.rb', line 2965 def update_dependency(params = {}, = {}) req = build_request(:update_dependency, params) req.send_request() end |
#update_failure_mode_finding(params = {}) ⇒ Types::UpdateFailureModeFindingResponse
Updates an existing finding.
3025 3026 3027 3028 |
# File 'gems/aws-sdk-resiliencehubv2/lib/aws-sdk-resiliencehubv2/client.rb', line 3025 def update_failure_mode_finding(params = {}, = {}) req = build_request(:update_failure_mode_finding, params) req.send_request() end |
#update_policy(params = {}) ⇒ Types::UpdatePolicyResponse
Updates an existing resilience policy.
3101 3102 3103 3104 |
# File 'gems/aws-sdk-resiliencehubv2/lib/aws-sdk-resiliencehubv2/client.rb', line 3101 def update_policy(params = {}, = {}) req = build_request(:update_policy, params) req.send_request() end |
#update_service(params = {}) ⇒ Types::UpdateServiceResponse
Updates an existing service.
3245 3246 3247 3248 |
# File 'gems/aws-sdk-resiliencehubv2/lib/aws-sdk-resiliencehubv2/client.rb', line 3245 def update_service(params = {}, = {}) req = build_request(:update_service, params) req.send_request() end |
#update_service_function(params = {}) ⇒ Types::UpdateServiceFunctionResponse
Updates a service function.
3297 3298 3299 3300 |
# File 'gems/aws-sdk-resiliencehubv2/lib/aws-sdk-resiliencehubv2/client.rb', line 3297 def update_service_function(params = {}, = {}) req = build_request(:update_service_function, params) req.send_request() end |
#update_system(params = {}) ⇒ Types::UpdateSystemResponse
Updates an existing system.
3344 3345 3346 3347 |
# File 'gems/aws-sdk-resiliencehubv2/lib/aws-sdk-resiliencehubv2/client.rb', line 3344 def update_system(params = {}, = {}) req = build_request(:update_system, params) req.send_request() end |
#update_user_journey(params = {}) ⇒ Types::UpdateUserJourneyResponse
Updates an existing user journey.
3393 3394 3395 3396 |
# File 'gems/aws-sdk-resiliencehubv2/lib/aws-sdk-resiliencehubv2/client.rb', line 3393 def update_user_journey(params = {}, = {}) req = build_request(:update_user_journey, params) req.send_request() end |
#wait_until(waiter_name, params = {}, options = {}) {|w.waiter| ... } ⇒ Boolean
Polls an API operation until a resource enters a desired state.
Basic Usage
A waiter will call an API operation until:
- It is successful
- It enters a terminal state
- It makes the maximum number of attempts
In between attempts, the waiter will sleep.
# polls in a loop, sleeping between attempts
client.wait_until(waiter_name, params)
Configuration
You can configure the maximum number of polling attempts, and the delay (in seconds) between each polling attempt. You can pass configuration as the final arguments hash.
# poll for ~25 seconds
client.wait_until(waiter_name, params, {
max_attempts: 5,
delay: 5,
})
Callbacks
You can be notified before each polling attempt and before each
delay. If you throw :success or :failure from these callbacks,
it will terminate the waiter.
started_at = Time.now
client.wait_until(waiter_name, params, {
# disable max attempts
max_attempts: nil,
# poll for 1 hour, instead of a number of attempts
before_wait: -> (attempts, response) do
throw :failure if Time.now - started_at > 3600
end
})
Handling Errors
When a waiter is unsuccessful, it will raise an error. All of the failure errors extend from Waiters::Errors::WaiterFailed.
begin
client.wait_until(...)
rescue Aws::Waiters::Errors::WaiterFailed
# resource did not enter the desired state in time
end
Valid Waiters
The following table lists the valid waiter names, the operations they call,
and the default :delay and :max_attempts values.
| waiter_name | params | :delay | :max_attempts |
|---|---|---|---|
| failure_mode_assessment_success | #list_failure_mode_assessments | 30 | 5 |
| report_succeeded | #list_reports | 30 | 5 |
| service_assessment_completed | #get_service | 30 | 5 |
| service_resource_discovery_completed | #get_service | 30 | 5 |
3511 3512 3513 3514 3515 |
# File 'gems/aws-sdk-resiliencehubv2/lib/aws-sdk-resiliencehubv2/client.rb', line 3511 def wait_until(waiter_name, params = {}, = {}) w = waiter(waiter_name, ) yield(w.waiter) if block_given? # deprecated w.wait(params) end |