Current section

Files

Jump to
aws lib aws generated elastic_inference.ex
Raw

lib/aws/generated/elastic_inference.ex

# WARNING: DO NOT EDIT, AUTO-GENERATED CODE!
# See https://github.com/aws-beam/aws-codegen for more details.
defmodule AWS.ElasticInference do
@moduledoc """
Elastic Inference public APIs.
"""
alias AWS.Client
alias AWS.Request
def metadata do
%AWS.ServiceMetadata{
abbreviation: nil,
api_version: "2017-07-25",
content_type: "application/x-amz-json-1.1",
credential_scope: nil,
endpoint_prefix: "api.elastic-inference",
global?: false,
protocol: "rest-json",
service_id: "Elastic Inference",
signature_version: "v4",
signing_name: "elastic-inference",
target_prefix: nil
}
end
@doc """
Describes the locations in which a given accelerator type or set of types is
present in a given region.
"""
def describe_accelerator_offerings(%Client{} = client, input, options \\ []) do
url_path = "/describe-accelerator-offerings"
headers = []
query_params = []
Request.request_rest(
client,
metadata(),
:post,
url_path,
query_params,
headers,
input,
options,
nil
)
end
@doc """
Describes the accelerator types available in a given region, as well as their
characteristics, such as memory and throughput.
"""
def describe_accelerator_types(%Client{} = client, options \\ []) do
url_path = "/describe-accelerator-types"
headers = []
query_params = []
Request.request_rest(
client,
metadata(),
:get,
url_path,
query_params,
headers,
nil,
options,
nil
)
end
@doc """
Describes information over a provided set of accelerators belonging to an
account.
"""
def describe_accelerators(%Client{} = client, input, options \\ []) do
url_path = "/describe-accelerators"
headers = []
query_params = []
Request.request_rest(
client,
metadata(),
:post,
url_path,
query_params,
headers,
input,
options,
nil
)
end
@doc """
Returns all tags of an Elastic Inference Accelerator.
"""
def list_tags_for_resource(%Client{} = client, resource_arn, options \\ []) do
url_path = "/tags/#{AWS.Util.encode_uri(resource_arn)}"
headers = []
query_params = []
Request.request_rest(
client,
metadata(),
:get,
url_path,
query_params,
headers,
nil,
options,
nil
)
end
@doc """
Adds the specified tags to an Elastic Inference Accelerator.
"""
def tag_resource(%Client{} = client, resource_arn, input, options \\ []) do
url_path = "/tags/#{AWS.Util.encode_uri(resource_arn)}"
headers = []
query_params = []
Request.request_rest(
client,
metadata(),
:post,
url_path,
query_params,
headers,
input,
options,
nil
)
end
@doc """
Removes the specified tags from an Elastic Inference Accelerator.
"""
def untag_resource(%Client{} = client, resource_arn, input, options \\ []) do
url_path = "/tags/#{AWS.Util.encode_uri(resource_arn)}"
headers = []
{query_params, input} =
[
{"tagKeys", "tagKeys"}
]
|> Request.build_params(input)
Request.request_rest(
client,
metadata(),
:delete,
url_path,
query_params,
headers,
input,
options,
nil
)
end
end