SavingsPlans
public struct SavingsPlans
Client object for interacting with AWS SavingsPlans service.
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.
-
Undocumented
Declaration
Swift
public let client: AWSClient
-
Initialize the SavingsPlans client
Declaration
Swift
public init(accessKeyId: String? = nil, secretAccessKey: String? = nil, sessionToken: String? = nil, region: AWSSDKSwiftCore.Region? = nil, endpoint: String? = nil, middlewares: [AWSServiceMiddleware] = [], eventLoopGroupProvider: AWSClient.EventLoopGroupProvider = .useAWSClientShared)
Parameters
accessKeyId
Public access key provided by AWS
secretAccessKey
Private access key provided by AWS
sessionToken
Token provided by STS.AssumeRole() which allows access to another AWS account
region
Region of server you want to communicate with
endpoint
Custom endpoint URL to use instead of standard AWS servers
middlewares
Array of middlewares to apply to requests and responses
eventLoopGroupProvider
EventLoopGroup to use. Use
useAWSClientShared
if the client shall manage its own EventLoopGroup.
-
Creates a Savings Plan.
Declaration
Swift
public func createSavingsPlan(_ input: CreateSavingsPlanRequest) -> EventLoopFuture<CreateSavingsPlanResponse>
-
Describes the specified Savings Plans rates.
Declaration
Swift
public func describeSavingsPlanRates(_ input: DescribeSavingsPlanRatesRequest) -> EventLoopFuture<DescribeSavingsPlanRatesResponse>
-
Describes the specified Savings Plans.
Declaration
Swift
public func describeSavingsPlans(_ input: DescribeSavingsPlansRequest) -> EventLoopFuture<DescribeSavingsPlansResponse>
-
Describes the specified Savings Plans offering rates.
Declaration
Swift
public func describeSavingsPlansOfferingRates(_ input: DescribeSavingsPlansOfferingRatesRequest) -> EventLoopFuture<DescribeSavingsPlansOfferingRatesResponse>
-
Describes the specified Savings Plans offerings.
Declaration
Swift
public func describeSavingsPlansOfferings(_ input: DescribeSavingsPlansOfferingsRequest) -> EventLoopFuture<DescribeSavingsPlansOfferingsResponse>
-
Lists the tags for the specified resource.
Declaration
Swift
public func listTagsForResource(_ input: ListTagsForResourceRequest) -> EventLoopFuture<ListTagsForResourceResponse>
-
Adds the specified tags to the specified resource.
Declaration
Swift
public func tagResource(_ input: TagResourceRequest) -> EventLoopFuture<TagResourceResponse>
-
Removes the specified tags from the specified resource.
Declaration
Swift
public func untagResource(_ input: UntagResourceRequest) -> EventLoopFuture<UntagResourceResponse>
-
Undocumented
See moreDeclaration
Swift
public enum CurrencyCode : String, CustomStringConvertible, Codable
-
Undocumented
See moreDeclaration
Swift
public enum SavingsPlanOfferingFilterAttribute : String, CustomStringConvertible, Codable
-
Undocumented
See moreDeclaration
Swift
public enum SavingsPlanOfferingPropertyKey : String, CustomStringConvertible, Codable
-
Undocumented
See moreDeclaration
Swift
public enum SavingsPlanPaymentOption : String, CustomStringConvertible, Codable
-
Undocumented
See moreDeclaration
Swift
public enum SavingsPlanProductType : String, CustomStringConvertible, Codable
-
Undocumented
See moreDeclaration
Swift
public enum SavingsPlanRateFilterAttribute : String, CustomStringConvertible, Codable
-
Undocumented
See moreDeclaration
Swift
public enum SavingsPlanRateFilterName : String, CustomStringConvertible, Codable
-
Undocumented
See moreDeclaration
Swift
public enum SavingsPlanRatePropertyKey : String, CustomStringConvertible, Codable
-
Undocumented
See moreDeclaration
Swift
public enum SavingsPlanRateServiceCode : String, CustomStringConvertible, Codable
-
Undocumented
See moreDeclaration
Swift
public enum SavingsPlanRateUnit : String, CustomStringConvertible, Codable
-
Undocumented
See moreDeclaration
Swift
public enum SavingsPlanState : String, CustomStringConvertible, Codable
-
Undocumented
See moreDeclaration
Swift
public enum SavingsPlanType : String, CustomStringConvertible, Codable
-
Undocumented
See moreDeclaration
Swift
public enum SavingsPlansFilterName : String, CustomStringConvertible, Codable