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
Describes the locations in which a given accelerator type or set of types is present in a given region.
-
#describe_accelerator_types(params = {}) ⇒ Types::DescribeAcceleratorTypesResponse
Describes the accelerator types available in a given region, as well as their characteristics, such as memory and throughput.
-
#describe_accelerators(params = {}) ⇒ Types::DescribeAcceleratorsResponse
Describes information over a provided set of accelerators belonging to an account.
-
#list_tags_for_resource(params = {}) ⇒ Types::ListTagsForResourceResult
Returns all tags of an Elastic Inference Accelerator.
-
#tag_resource(params = {}) ⇒ Struct
Adds the specified tags to an Elastic Inference Accelerator.
-
#untag_resource(params = {}) ⇒ Struct
Removes the specified tags from an Elastic Inference Accelerator.
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-elasticinference/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.
738 739 740 |
# File 'lib/aws-sdk-elasticinference/client.rb', line 738 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.
741 742 743 |
# File 'lib/aws-sdk-elasticinference/client.rb', line 741 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.
711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 |
# File 'lib/aws-sdk-elasticinference/client.rb', line 711 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.42.0' Seahorse::Client::Request.new(handlers, context) end |
#describe_accelerator_offerings(params = {}) ⇒ Types::DescribeAcceleratorOfferingsResponse
Describes the locations in which a given accelerator type or set of types is present in a given region.
February 15, 2023: Starting April 15, 2023, AWS will not onboard new customers to Amazon Elastic Inference (EI), and will help current customers migrate their workloads to options that offer better price and performance. After April 15, 2023, new customers will not be able to launch instances with Amazon EI accelerators in Amazon SageMaker, Amazon ECS, or Amazon EC2. However, customers who have used Amazon EI at least once during the past 30-day period are considered current customers and will be able to continue using the service.
485 486 487 488 |
# File 'lib/aws-sdk-elasticinference/client.rb', line 485 def describe_accelerator_offerings(params = {}, = {}) req = build_request(:describe_accelerator_offerings, params) req.send_request() end |
#describe_accelerator_types(params = {}) ⇒ Types::DescribeAcceleratorTypesResponse
Describes the accelerator types available in a given region, as well as their characteristics, such as memory and throughput.
February 15, 2023: Starting April 15, 2023, AWS will not onboard new customers to Amazon Elastic Inference (EI), and will help current customers migrate their workloads to options that offer better price and performance. After April 15, 2023, new customers will not be able to launch instances with Amazon EI accelerators in Amazon SageMaker, Amazon ECS, or Amazon EC2. However, customers who have used Amazon EI at least once during the past 30-day period are considered current customers and will be able to continue using the service.
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
Describes information over a provided set of accelerators belonging to an account.
February 15, 2023: Starting April 15, 2023, AWS will not onboard new customers to Amazon Elastic Inference (EI), and will help current customers migrate their workloads to options that offer better price and performance. After April 15, 2023, new customers will not be able to launch instances with Amazon EI accelerators in Amazon SageMaker, Amazon ECS, or Amazon EC2. However, customers who have used Amazon EI at least once during the past 30-day period are considered current customers and will be able to continue using the service.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
592 593 594 595 |
# File 'lib/aws-sdk-elasticinference/client.rb', line 592 def describe_accelerators(params = {}, = {}) req = build_request(:describe_accelerators, params) req.send_request() end |
#list_tags_for_resource(params = {}) ⇒ Types::ListTagsForResourceResult
Returns all tags of an Elastic Inference Accelerator.
February 15, 2023: Starting April 15, 2023, AWS will not onboard new customers to Amazon Elastic Inference (EI), and will help current customers migrate their workloads to options that offer better price and performance. After April 15, 2023, new customers will not be able to launch instances with Amazon EI accelerators in Amazon SageMaker, Amazon ECS, or Amazon EC2. However, customers who have used Amazon EI at least once during the past 30-day period are considered current customers and will be able to continue using the service.
630 631 632 633 |
# File 'lib/aws-sdk-elasticinference/client.rb', line 630 def (params = {}, = {}) req = build_request(:list_tags_for_resource, params) req.send_request() end |
#tag_resource(params = {}) ⇒ Struct
Adds the specified tags to an Elastic Inference Accelerator.
February 15, 2023: Starting April 15, 2023, AWS will not onboard new customers to Amazon Elastic Inference (EI), and will help current customers migrate their workloads to options that offer better price and performance. After April 15, 2023, new customers will not be able to launch instances with Amazon EI accelerators in Amazon SageMaker, Amazon ECS, or Amazon EC2. However, customers who have used Amazon EI at least once during the past 30-day period are considered current customers and will be able to continue using the service.
667 668 669 670 |
# File 'lib/aws-sdk-elasticinference/client.rb', line 667 def tag_resource(params = {}, = {}) req = build_request(:tag_resource, params) req.send_request() end |
#untag_resource(params = {}) ⇒ Struct
Removes the specified tags from an Elastic Inference Accelerator.
February 15, 2023: Starting April 15, 2023, AWS will not onboard new customers to Amazon Elastic Inference (EI), and will help current customers migrate their workloads to options that offer better price and performance. After April 15, 2023, new customers will not be able to launch instances with Amazon EI accelerators in Amazon SageMaker, Amazon ECS, or Amazon EC2. However, customers who have used Amazon EI at least once during the past 30-day period are considered current customers and will be able to continue using the service.
702 703 704 705 |
# File 'lib/aws-sdk-elasticinference/client.rb', line 702 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.
731 732 733 |
# File 'lib/aws-sdk-elasticinference/client.rb', line 731 def waiter_names [] end |