Packages
aws
0.9.2
1.0.14
1.0.13
1.0.12
1.0.11
1.0.10
1.0.9
1.0.8
1.0.7
1.0.6
1.0.5
1.0.4
1.0.3
1.0.2
1.0.1
1.0.0
0.14.1
0.14.0
0.13.3
0.13.2
0.13.1
0.13.0
0.12.0
0.11.0
0.10.1
0.10.0
0.9.2
0.9.1
0.9.0
0.8.0
0.7.0
0.6.0
0.5.0
0.4.0
0.3.0
0.2.0
0.1.0
0.0.12
0.0.11
0.0.10
0.0.9
0.0.8
0.0.7
0.0.6
0.0.5
0.0.4
0.0.3
0.0.2
0.0.1
AWS clients for Elixir
Current section
Files
Jump to
Current section
Files
lib/aws/generated/savingsplans.ex
# WARNING: DO NOT EDIT, AUTO-GENERATED CODE!
# See https://github.com/aws-beam/aws-codegen for more details.
defmodule AWS.Savingsplans do
@moduledoc """
Savings Plans are a pricing model that offer significant savings on AWS usage
(for example, on Amazon EC2 instances).
You commit to a consistent amount of usage, in USD per hour, for a term of 1 or
3 years, and receive a lower price for that usage. For more information, see the
[AWS Savings Plans User Guide](https://docs.aws.amazon.com/savingsplans/latest/userguide/).
"""
alias AWS.Client
alias AWS.Request
def metadata do
%AWS.ServiceMetadata{
abbreviation: nil,
api_version: "2019-06-28",
content_type: "application/x-amz-json-1.1",
credential_scope: "us-east-1",
endpoint_prefix: "savingsplans",
global?: true,
protocol: "rest-json",
service_id: "savingsplans",
signature_version: "v4",
signing_name: "savingsplans",
target_prefix: nil
}
end
@doc """
Creates a Savings Plan.
"""
def create_savings_plan(%Client{} = client, input, options \\ []) do
url_path = "/CreateSavingsPlan"
headers = []
query_params = []
Request.request_rest(
client,
metadata(),
:post,
url_path,
query_params,
headers,
input,
options,
nil
)
end
@doc """
Deletes the queued purchase for the specified Savings Plan.
"""
def delete_queued_savings_plan(%Client{} = client, input, options \\ []) do
url_path = "/DeleteQueuedSavingsPlan"
headers = []
query_params = []
Request.request_rest(
client,
metadata(),
:post,
url_path,
query_params,
headers,
input,
options,
nil
)
end
@doc """
Describes the specified Savings Plans rates.
"""
def describe_savings_plan_rates(%Client{} = client, input, options \\ []) do
url_path = "/DescribeSavingsPlanRates"
headers = []
query_params = []
Request.request_rest(
client,
metadata(),
:post,
url_path,
query_params,
headers,
input,
options,
nil
)
end
@doc """
Describes the specified Savings Plans.
"""
def describe_savings_plans(%Client{} = client, input, options \\ []) do
url_path = "/DescribeSavingsPlans"
headers = []
query_params = []
Request.request_rest(
client,
metadata(),
:post,
url_path,
query_params,
headers,
input,
options,
nil
)
end
@doc """
Describes the specified Savings Plans offering rates.
"""
def describe_savings_plans_offering_rates(%Client{} = client, input, options \\ []) do
url_path = "/DescribeSavingsPlansOfferingRates"
headers = []
query_params = []
Request.request_rest(
client,
metadata(),
:post,
url_path,
query_params,
headers,
input,
options,
nil
)
end
@doc """
Describes the specified Savings Plans offerings.
"""
def describe_savings_plans_offerings(%Client{} = client, input, options \\ []) do
url_path = "/DescribeSavingsPlansOfferings"
headers = []
query_params = []
Request.request_rest(
client,
metadata(),
:post,
url_path,
query_params,
headers,
input,
options,
nil
)
end
@doc """
Lists the tags for the specified resource.
"""
def list_tags_for_resource(%Client{} = client, input, options \\ []) do
url_path = "/ListTagsForResource"
headers = []
query_params = []
Request.request_rest(
client,
metadata(),
:post,
url_path,
query_params,
headers,
input,
options,
nil
)
end
@doc """
Adds the specified tags to the specified resource.
"""
def tag_resource(%Client{} = client, input, options \\ []) do
url_path = "/TagResource"
headers = []
query_params = []
Request.request_rest(
client,
metadata(),
:post,
url_path,
query_params,
headers,
input,
options,
nil
)
end
@doc """
Removes the specified tags from the specified resource.
"""
def untag_resource(%Client{} = client, input, options \\ []) do
url_path = "/UntagResource"
headers = []
query_params = []
Request.request_rest(
client,
metadata(),
:post,
url_path,
query_params,
headers,
input,
options,
nil
)
end
end