Class: Aws::ElasticInference::Client
- Inherits:
-
Seahorse::Client::Base
- Object
- Seahorse::Client::Base
- Aws::ElasticInference::Client
- Includes:
- ClientStubs
- Defined in:
- lib/aws-sdk-elasticinference/client.rb
Overview
An API client for ElasticInference. To construct a client, you need to configure a ‘:region` and `:credentials`.
client = Aws::ElasticInference::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
-
#describe_accelerator_offerings(params = {}) ⇒ Types::DescribeAcceleratorOfferingsResponse
<note markdown=“1”> Amazon Elastic Inference is no longer available.
-
#describe_accelerator_types(params = {}) ⇒ Types::DescribeAcceleratorTypesResponse
<note markdown=“1”> Amazon Elastic Inference is no longer available.
-
#describe_accelerators(params = {}) ⇒ Types::DescribeAcceleratorsResponse
<note markdown=“1”> Amazon Elastic Inference is no longer available.
-
#list_tags_for_resource(params = {}) ⇒ Types::ListTagsForResourceResult
<note markdown=“1”> Amazon Elastic Inference is no longer available.
-
#tag_resource(params = {}) ⇒ Struct
<note markdown=“1”> Amazon Elastic Inference is no longer available.
-
#untag_resource(params = {}) ⇒ Struct
<note markdown=“1”> Amazon Elastic Inference is no longer available.
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.
444 445 446 |
# File 'lib/aws-sdk-elasticinference/client.rb', line 444 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.
718 719 720 |
# File 'lib/aws-sdk-elasticinference/client.rb', line 718 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.
721 722 723 |
# File 'lib/aws-sdk-elasticinference/client.rb', line 721 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.
691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 |
# File 'lib/aws-sdk-elasticinference/client.rb', line 691 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::ElasticInference') ) 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-elasticinference' context[:gem_version] = '1.49.0' Seahorse::Client::Request.new(handlers, context) end |
#describe_accelerator_offerings(params = {}) ⇒ Types::DescribeAcceleratorOfferingsResponse
<note markdown=“1”> Amazon Elastic Inference is no longer available.
</note>
Describes the locations in which a given accelerator type or set of types is present in a given region.
490 491 492 493 |
# File 'lib/aws-sdk-elasticinference/client.rb', line 490 def describe_accelerator_offerings(params = {}, = {}) req = build_request(:describe_accelerator_offerings, params) req.send_request() end |
#describe_accelerator_types(params = {}) ⇒ Types::DescribeAcceleratorTypesResponse
<note markdown=“1”> Amazon Elastic Inference is no longer available.
</note>
Describes the accelerator types available in a given region, as well as their characteristics, such as memory and throughput.
519 520 521 522 |
# File 'lib/aws-sdk-elasticinference/client.rb', line 519 def describe_accelerator_types(params = {}, = {}) req = build_request(:describe_accelerator_types, params) req.send_request() end |
#describe_accelerators(params = {}) ⇒ Types::DescribeAcceleratorsResponse
<note markdown=“1”> Amazon Elastic Inference is no longer available.
</note>
Describes information over a provided set of accelerators belonging to an account.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
587 588 589 590 |
# File 'lib/aws-sdk-elasticinference/client.rb', line 587 def describe_accelerators(params = {}, = {}) req = build_request(:describe_accelerators, params) req.send_request() end |
#list_tags_for_resource(params = {}) ⇒ Types::ListTagsForResourceResult
<note markdown=“1”> Amazon Elastic Inference is no longer available.
</note>
Returns all tags of an Elastic Inference Accelerator.
620 621 622 623 |
# File 'lib/aws-sdk-elasticinference/client.rb', line 620 def (params = {}, = {}) req = build_request(:list_tags_for_resource, params) req.send_request() end |
#tag_resource(params = {}) ⇒ Struct
<note markdown=“1”> Amazon Elastic Inference is no longer available.
</note>
Adds the specified tags to an Elastic Inference Accelerator.
652 653 654 655 |
# File 'lib/aws-sdk-elasticinference/client.rb', line 652 def tag_resource(params = {}, = {}) req = build_request(:tag_resource, params) req.send_request() end |
#untag_resource(params = {}) ⇒ Struct
<note markdown=“1”> Amazon Elastic Inference is no longer available.
</note>
Removes the specified tags from an Elastic Inference Accelerator.
682 683 684 685 |
# File 'lib/aws-sdk-elasticinference/client.rb', line 682 def untag_resource(params = {}, = {}) req = build_request(:untag_resource, 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.
711 712 713 |
# File 'lib/aws-sdk-elasticinference/client.rb', line 711 def waiter_names [] end |