Class: Aws::FIS::Client
- Inherits:
-
Seahorse::Client::Base
- Object
- Seahorse::Client::Base
- Aws::FIS::Client
- Includes:
- ClientStubs
- Defined in:
- 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](/sdk-for-ruby/v3/developer-guide/setup-config.html).
See #initialize for a full list of supported configuration options.
Class Attribute Summary collapse
- .identifier ⇒ Object readonly private
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.
Class Method Summary collapse
- .errors_module ⇒ Object private
Instance Method Summary collapse
- #build_request(operation_name, params = {}) ⇒ Object private
-
#initialize(options) ⇒ Client
constructor
A new instance of Client.
- #waiter_names ⇒ Object deprecated private Deprecated.
Constructor Details
#initialize(options) ⇒ Client
Returns a new instance of Client.
434 435 436 |
# File 'lib/aws-sdk-fis/client.rb', line 434 def initialize(*args) super end |
Class Attribute Details
.identifier ⇒ Object (readonly)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
1921 1922 1923 |
# File 'lib/aws-sdk-fis/client.rb', line 1921 def identifier @identifier end |
Class Method Details
.errors_module ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
1924 1925 1926 |
# File 'lib/aws-sdk-fis/client.rb', line 1924 def errors_module Errors end |
Instance Method Details
#build_request(operation_name, params = {}) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
1894 1895 1896 1897 1898 1899 1900 1901 1902 1903 1904 1905 1906 1907 1908 1909 1910 |
# File 'lib/aws-sdk-fis/client.rb', line 1894 def build_request(operation_name, params = {}) handlers = @handlers.for(operation_name) tracer = config.telemetry_provider.tracer_provider.tracer( Aws::Telemetry.module_to_tracer_name('Aws::FIS') ) context = Seahorse::Client::RequestContext.new( operation_name: operation_name, operation: config.api.operation(operation_name), client: self, params: params, config: config, tracer: tracer ) context[:gem_name] = 'aws-sdk-fis' context[:gem_version] = '1.37.0' Seahorse::Client::Request.new(handlers, context) end |
#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*.
[1]: docs.aws.amazon.com/fis/latest/userguide/experiment-templates.html
609 610 611 612 |
# File 'lib/aws-sdk-fis/client.rb', line 609 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*.
[1]: docs.aws.amazon.com/fis/latest/userguide/experiment-options.html
667 668 669 670 |
# File 'lib/aws-sdk-fis/client.rb', line 667 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.
734 735 736 737 |
# File 'lib/aws-sdk-fis/client.rb', line 734 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.
769 770 771 772 |
# File 'lib/aws-sdk-fis/client.rb', line 769 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.
806 807 808 809 |
# File 'lib/aws-sdk-fis/client.rb', line 806 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.
884 885 886 887 |
# File 'lib/aws-sdk-fis/client.rb', line 884 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.
919 920 921 922 |
# File 'lib/aws-sdk-fis/client.rb', line 919 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.
986 987 988 989 |
# File 'lib/aws-sdk-fis/client.rb', line 986 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.
1017 1018 1019 1020 |
# File 'lib/aws-sdk-fis/client.rb', line 1017 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.
1052 1053 1054 1055 |
# File 'lib/aws-sdk-fis/client.rb', line 1052 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.
1084 1085 1086 1087 |
# File 'lib/aws-sdk-fis/client.rb', line 1084 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.
1129 1130 1131 1132 |
# File 'lib/aws-sdk-fis/client.rb', line 1129 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.
1179 1180 1181 1182 |
# File 'lib/aws-sdk-fis/client.rb', line 1179 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.
1216 1217 1218 1219 |
# File 'lib/aws-sdk-fis/client.rb', line 1216 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.
1261 1262 1263 1264 |
# File 'lib/aws-sdk-fis/client.rb', line 1261 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.
1317 1318 1319 1320 |
# File 'lib/aws-sdk-fis/client.rb', line 1317 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.
1346 1347 1348 1349 |
# File 'lib/aws-sdk-fis/client.rb', line 1346 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.
1392 1393 1394 1395 |
# File 'lib/aws-sdk-fis/client.rb', line 1392 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.
1432 1433 1434 1435 |
# File 'lib/aws-sdk-fis/client.rb', line 1432 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.
1530 1531 1532 1533 |
# File 'lib/aws-sdk-fis/client.rb', line 1530 def start_experiment(params = {}, = {}) req = build_request(:start_experiment, params) req.send_request() end |
#stop_experiment(params = {}) ⇒ Types::StopExperimentResponse
Stops the specified experiment.
1608 1609 1610 1611 |
# File 'lib/aws-sdk-fis/client.rb', line 1608 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.
1636 1637 1638 1639 |
# File 'lib/aws-sdk-fis/client.rb', line 1636 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.
1662 1663 1664 1665 |
# File 'lib/aws-sdk-fis/client.rb', line 1662 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.
1804 1805 1806 1807 |
# File 'lib/aws-sdk-fis/client.rb', line 1804 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.
1842 1843 1844 1845 |
# File 'lib/aws-sdk-fis/client.rb', line 1842 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.
1885 1886 1887 1888 |
# File 'lib/aws-sdk-fis/client.rb', line 1885 def update_target_account_configuration(params = {}, = {}) req = build_request(:update_target_account_configuration, params) req.send_request() end |
#waiter_names ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
1914 1915 1916 |
# File 'lib/aws-sdk-fis/client.rb', line 1914 def waiter_names [] end |