import * as pulumi from "@pulumi/pulumi"; /** * Use this data source to get information on an existing AWS Savings Plan. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as aws from "@pulumi/aws"; * * const example = aws.savingsplans.getSavingsPlan({ * savingsPlanId: "sp-12345678901234567", * }); * export const savingsPlanState = example.then(example => example.state); * ``` */ export declare function getSavingsPlan(args: GetSavingsPlanArgs, opts?: pulumi.InvokeOptions): Promise; /** * A collection of arguments for invoking getSavingsPlan. */ export interface GetSavingsPlanArgs { /** * The ID of the Savings Plan. */ savingsPlanId: string; } /** * A collection of values returned by getSavingsPlan. */ export interface GetSavingsPlanResult { /** * The hourly commitment amount. */ readonly commitment: string; /** * The currency of the Savings Plan. */ readonly currency: string; readonly description: string; /** * The EC2 instance family for the Savings Plan. */ readonly ec2InstanceFamily: string; /** * The end time of the Savings Plan. */ readonly end: string; /** * The ID of the offering. * * @deprecated offering_id is deprecated. Use savingsPlanOfferingId instead. */ readonly offeringId: string; /** * The payment option for the Savings Plan. */ readonly paymentOption: string; readonly productTypes: string[]; readonly purchaseTime: string; /** * The recurring payment amount. */ readonly recurringPaymentAmount: string; /** * The AWS Region. */ readonly region: string; readonly returnableUntil: string; /** * The ARN of the Savings Plan. */ readonly savingsPlanArn: string; readonly savingsPlanId: string; readonly savingsPlanOfferingId: string; /** * The type of Savings Plan. */ readonly savingsPlanType: string; /** * The start time of the Savings Plan. */ readonly start: string; /** * The current state of the Savings Plan. */ readonly state: string; /** * A map of tags assigned to the resource. */ readonly tags: { [key: string]: string; }; /** * The duration of the term, in seconds. */ readonly termDurationInSeconds: number; /** * The up-front payment amount. */ readonly upfrontPaymentAmount: string; } /** * Use this data source to get information on an existing AWS Savings Plan. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as aws from "@pulumi/aws"; * * const example = aws.savingsplans.getSavingsPlan({ * savingsPlanId: "sp-12345678901234567", * }); * export const savingsPlanState = example.then(example => example.state); * ``` */ export declare function getSavingsPlanOutput(args: GetSavingsPlanOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output; /** * A collection of arguments for invoking getSavingsPlan. */ export interface GetSavingsPlanOutputArgs { /** * The ID of the Savings Plan. */ savingsPlanId: pulumi.Input; } //# sourceMappingURL=getSavingsPlan.d.ts.map