Class: Aws::FIS::Client
- Inherits:
-
Seahorse::Client::Base
- Object
- Seahorse::Client::Base
- Aws::FIS::Client
- Includes:
- ClientStubs
- Defined in:
- gems/aws-sdk-fis/lib/aws-sdk-fis/client.rb
Overview
An API client for FIS. To construct a client, you need to configure a :region
and :credentials
.
client = Aws::FIS::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_experiment_template(params = {}) ⇒ Types::CreateExperimentTemplateResponse
Creates an experiment template.
-
#create_target_account_configuration(params = {}) ⇒ Types::CreateTargetAccountConfigurationResponse
Creates a target account configuration for the experiment template.
-
#delete_experiment_template(params = {}) ⇒ Types::DeleteExperimentTemplateResponse
Deletes the specified experiment template.
-
#delete_target_account_configuration(params = {}) ⇒ Types::DeleteTargetAccountConfigurationResponse
Deletes the specified target account configuration of the experiment template.
-
#get_action(params = {}) ⇒ Types::GetActionResponse
Gets information about the specified FIS action.
-
#get_experiment(params = {}) ⇒ Types::GetExperimentResponse
Gets information about the specified experiment.
-
#get_experiment_target_account_configuration(params = {}) ⇒ Types::GetExperimentTargetAccountConfigurationResponse
Gets information about the specified target account configuration of the experiment.
-
#get_experiment_template(params = {}) ⇒ Types::GetExperimentTemplateResponse
Gets information about the specified experiment template.
-
#get_safety_lever(params = {}) ⇒ Types::GetSafetyLeverResponse
Gets information about the specified safety lever.
-
#get_target_account_configuration(params = {}) ⇒ Types::GetTargetAccountConfigurationResponse
Gets information about the specified target account configuration of the experiment template.
-
#get_target_resource_type(params = {}) ⇒ Types::GetTargetResourceTypeResponse
Gets information about the specified resource type.
-
#list_actions(params = {}) ⇒ Types::ListActionsResponse
Lists the available FIS actions.
-
#list_experiment_resolved_targets(params = {}) ⇒ Types::ListExperimentResolvedTargetsResponse
Lists the resolved targets information of the specified experiment.
-
#list_experiment_target_account_configurations(params = {}) ⇒ Types::ListExperimentTargetAccountConfigurationsResponse
Lists the target account configurations of the specified experiment.
-
#list_experiment_templates(params = {}) ⇒ Types::ListExperimentTemplatesResponse
Lists your experiment templates.
-
#list_experiments(params = {}) ⇒ Types::ListExperimentsResponse
Lists your experiments.
-
#list_tags_for_resource(params = {}) ⇒ Types::ListTagsForResourceResponse
Lists the tags for the specified resource.
-
#list_target_account_configurations(params = {}) ⇒ Types::ListTargetAccountConfigurationsResponse
Lists the target account configurations of the specified experiment template.
-
#list_target_resource_types(params = {}) ⇒ Types::ListTargetResourceTypesResponse
Lists the target resource types.
-
#start_experiment(params = {}) ⇒ Types::StartExperimentResponse
Starts running an experiment from the specified experiment template.
-
#stop_experiment(params = {}) ⇒ Types::StopExperimentResponse
Stops the specified experiment.
-
#tag_resource(params = {}) ⇒ Struct
Applies the specified tags to the specified resource.
-
#untag_resource(params = {}) ⇒ Struct
Removes the specified tags from the specified resource.
-
#update_experiment_template(params = {}) ⇒ Types::UpdateExperimentTemplateResponse
Updates the specified experiment template.
-
#update_safety_lever_state(params = {}) ⇒ Types::UpdateSafetyLeverStateResponse
Updates the specified safety lever state.
-
#update_target_account_configuration(params = {}) ⇒ Types::UpdateTargetAccountConfigurationResponse
Updates the target account configuration for the specified experiment template.
Instance Method Summary collapse
-
#initialize(options) ⇒ Client
constructor
A new instance of Client.
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.
444 445 446 |
# File 'gems/aws-sdk-fis/lib/aws-sdk-fis/client.rb', line 444 def initialize(*args) super end |
Instance Method Details
#create_experiment_template(params = {}) ⇒ Types::CreateExperimentTemplateResponse
Creates an experiment template.
An experiment template includes the following components:
Targets: A target can be a specific resource in your Amazon Web Services environment, or one or more resources that match criteria that you specify, for example, resources that have specific tags.
Actions: The actions to carry out on the target. You can specify multiple actions, the duration of each action, and when to start each action during an experiment.
Stop conditions: If a stop condition is triggered while an experiment is running, the experiment is automatically stopped. You can define a stop condition as a CloudWatch alarm.
For more information, see experiment templates in the Fault Injection Service User Guide.
645 646 647 648 |
# File 'gems/aws-sdk-fis/lib/aws-sdk-fis/client.rb', line 645 def create_experiment_template(params = {}, = {}) req = build_request(:create_experiment_template, params) req.send_request() end |
#create_target_account_configuration(params = {}) ⇒ Types::CreateTargetAccountConfigurationResponse
Creates a target account configuration for the experiment template. A
target account configuration is required when accountTargeting
of
experimentOptions
is set to multi-account
. For more information,
see experiment options in the Fault Injection Service User
Guide.
703 704 705 706 |
# File 'gems/aws-sdk-fis/lib/aws-sdk-fis/client.rb', line 703 def create_target_account_configuration(params = {}, = {}) req = build_request(:create_target_account_configuration, params) req.send_request() end |
#delete_experiment_template(params = {}) ⇒ Types::DeleteExperimentTemplateResponse
Deletes the specified experiment template.
776 777 778 779 |
# File 'gems/aws-sdk-fis/lib/aws-sdk-fis/client.rb', line 776 def delete_experiment_template(params = {}, = {}) req = build_request(:delete_experiment_template, params) req.send_request() end |
#delete_target_account_configuration(params = {}) ⇒ Types::DeleteTargetAccountConfigurationResponse
Deletes the specified target account configuration of the experiment template.
811 812 813 814 |
# File 'gems/aws-sdk-fis/lib/aws-sdk-fis/client.rb', line 811 def delete_target_account_configuration(params = {}, = {}) req = build_request(:delete_target_account_configuration, params) req.send_request() end |
#get_action(params = {}) ⇒ Types::GetActionResponse
Gets information about the specified FIS action.
848 849 850 851 |
# File 'gems/aws-sdk-fis/lib/aws-sdk-fis/client.rb', line 848 def get_action(params = {}, = {}) req = build_request(:get_action, params) req.send_request() end |
#get_experiment(params = {}) ⇒ Types::GetExperimentResponse
Gets information about the specified experiment.
938 939 940 941 |
# File 'gems/aws-sdk-fis/lib/aws-sdk-fis/client.rb', line 938 def get_experiment(params = {}, = {}) req = build_request(:get_experiment, params) req.send_request() end |
#get_experiment_target_account_configuration(params = {}) ⇒ Types::GetExperimentTargetAccountConfigurationResponse
Gets information about the specified target account configuration of the experiment.
973 974 975 976 |
# File 'gems/aws-sdk-fis/lib/aws-sdk-fis/client.rb', line 973 def get_experiment_target_account_configuration(params = {}, = {}) req = build_request(:get_experiment_target_account_configuration, params) req.send_request() end |
#get_experiment_template(params = {}) ⇒ Types::GetExperimentTemplateResponse
Gets information about the specified experiment template.
1046 1047 1048 1049 |
# File 'gems/aws-sdk-fis/lib/aws-sdk-fis/client.rb', line 1046 def get_experiment_template(params = {}, = {}) req = build_request(:get_experiment_template, params) req.send_request() end |
#get_safety_lever(params = {}) ⇒ Types::GetSafetyLeverResponse
Gets information about the specified safety lever.
1077 1078 1079 1080 |
# File 'gems/aws-sdk-fis/lib/aws-sdk-fis/client.rb', line 1077 def get_safety_lever(params = {}, = {}) req = build_request(:get_safety_lever, params) req.send_request() end |
#get_target_account_configuration(params = {}) ⇒ Types::GetTargetAccountConfigurationResponse
Gets information about the specified target account configuration of the experiment template.
1112 1113 1114 1115 |
# File 'gems/aws-sdk-fis/lib/aws-sdk-fis/client.rb', line 1112 def get_target_account_configuration(params = {}, = {}) req = build_request(:get_target_account_configuration, params) req.send_request() end |
#get_target_resource_type(params = {}) ⇒ Types::GetTargetResourceTypeResponse
Gets information about the specified resource type.
1144 1145 1146 1147 |
# File 'gems/aws-sdk-fis/lib/aws-sdk-fis/client.rb', line 1144 def get_target_resource_type(params = {}, = {}) req = build_request(:get_target_resource_type, params) req.send_request() end |
#list_actions(params = {}) ⇒ Types::ListActionsResponse
Lists the available FIS actions.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
1189 1190 1191 1192 |
# File 'gems/aws-sdk-fis/lib/aws-sdk-fis/client.rb', line 1189 def list_actions(params = {}, = {}) req = build_request(:list_actions, params) req.send_request() end |
#list_experiment_resolved_targets(params = {}) ⇒ Types::ListExperimentResolvedTargetsResponse
Lists the resolved targets information of the specified experiment.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
1239 1240 1241 1242 |
# File 'gems/aws-sdk-fis/lib/aws-sdk-fis/client.rb', line 1239 def list_experiment_resolved_targets(params = {}, = {}) req = build_request(:list_experiment_resolved_targets, params) req.send_request() end |
#list_experiment_target_account_configurations(params = {}) ⇒ Types::ListExperimentTargetAccountConfigurationsResponse
Lists the target account configurations of the specified experiment.
1276 1277 1278 1279 |
# File 'gems/aws-sdk-fis/lib/aws-sdk-fis/client.rb', line 1276 def list_experiment_target_account_configurations(params = {}, = {}) req = build_request(:list_experiment_target_account_configurations, params) req.send_request() end |
#list_experiment_templates(params = {}) ⇒ Types::ListExperimentTemplatesResponse
Lists your experiment templates.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
1321 1322 1323 1324 |
# File 'gems/aws-sdk-fis/lib/aws-sdk-fis/client.rb', line 1321 def list_experiment_templates(params = {}, = {}) req = build_request(:list_experiment_templates, params) req.send_request() end |
#list_experiments(params = {}) ⇒ Types::ListExperimentsResponse
Lists your experiments.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
1377 1378 1379 1380 |
# File 'gems/aws-sdk-fis/lib/aws-sdk-fis/client.rb', line 1377 def list_experiments(params = {}, = {}) req = build_request(:list_experiments, params) req.send_request() end |
#list_tags_for_resource(params = {}) ⇒ Types::ListTagsForResourceResponse
Lists the tags for the specified resource.
1406 1407 1408 1409 |
# File 'gems/aws-sdk-fis/lib/aws-sdk-fis/client.rb', line 1406 def (params = {}, = {}) req = build_request(:list_tags_for_resource, params) req.send_request() end |
#list_target_account_configurations(params = {}) ⇒ Types::ListTargetAccountConfigurationsResponse
Lists the target account configurations of the specified experiment template.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
1452 1453 1454 1455 |
# File 'gems/aws-sdk-fis/lib/aws-sdk-fis/client.rb', line 1452 def list_target_account_configurations(params = {}, = {}) req = build_request(:list_target_account_configurations, params) req.send_request() end |
#list_target_resource_types(params = {}) ⇒ Types::ListTargetResourceTypesResponse
Lists the target resource types.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
1492 1493 1494 1495 |
# File 'gems/aws-sdk-fis/lib/aws-sdk-fis/client.rb', line 1492 def list_target_resource_types(params = {}, = {}) req = build_request(:list_target_resource_types, params) req.send_request() end |
#start_experiment(params = {}) ⇒ Types::StartExperimentResponse
Starts running an experiment from the specified experiment template.
1602 1603 1604 1605 |
# File 'gems/aws-sdk-fis/lib/aws-sdk-fis/client.rb', line 1602 def start_experiment(params = {}, = {}) req = build_request(:start_experiment, params) req.send_request() end |
#stop_experiment(params = {}) ⇒ Types::StopExperimentResponse
Stops the specified experiment.
1692 1693 1694 1695 |
# File 'gems/aws-sdk-fis/lib/aws-sdk-fis/client.rb', line 1692 def stop_experiment(params = {}, = {}) req = build_request(:stop_experiment, params) req.send_request() end |
#tag_resource(params = {}) ⇒ Struct
Applies the specified tags to the specified resource.
1720 1721 1722 1723 |
# File 'gems/aws-sdk-fis/lib/aws-sdk-fis/client.rb', line 1720 def tag_resource(params = {}, = {}) req = build_request(:tag_resource, params) req.send_request() end |
#untag_resource(params = {}) ⇒ Struct
Removes the specified tags from the specified resource.
1746 1747 1748 1749 |
# File 'gems/aws-sdk-fis/lib/aws-sdk-fis/client.rb', line 1746 def untag_resource(params = {}, = {}) req = build_request(:untag_resource, params) req.send_request() end |
#update_experiment_template(params = {}) ⇒ Types::UpdateExperimentTemplateResponse
Updates the specified experiment template.
1914 1915 1916 1917 |
# File 'gems/aws-sdk-fis/lib/aws-sdk-fis/client.rb', line 1914 def update_experiment_template(params = {}, = {}) req = build_request(:update_experiment_template, params) req.send_request() end |
#update_safety_lever_state(params = {}) ⇒ Types::UpdateSafetyLeverStateResponse
Updates the specified safety lever state.
1952 1953 1954 1955 |
# File 'gems/aws-sdk-fis/lib/aws-sdk-fis/client.rb', line 1952 def update_safety_lever_state(params = {}, = {}) req = build_request(:update_safety_lever_state, params) req.send_request() end |
#update_target_account_configuration(params = {}) ⇒ Types::UpdateTargetAccountConfigurationResponse
Updates the target account configuration for the specified experiment template.
1995 1996 1997 1998 |
# File 'gems/aws-sdk-fis/lib/aws-sdk-fis/client.rb', line 1995 def update_target_account_configuration(params = {}, = {}) req = build_request(:update_target_account_configuration, params) req.send_request() end |