UNPKG

@pulumi/aws

Version:

A Pulumi package for creating and managing Amazon Web Services (AWS) cloud resources.

125 lines (124 loc) 4.18 kB
import * as pulumi from "@pulumi/pulumi"; /** * Information about a single RDS Reserved Instance Offering. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as aws from "@pulumi/aws"; * * const test = aws.rds.getReservedInstanceOffering({ * dbInstanceClass: "db.t2.micro", * duration: 31536000, * multiAz: false, * offeringType: "All Upfront", * productDescription: "mysql", * }); * ``` */ export declare function getReservedInstanceOffering(args: GetReservedInstanceOfferingArgs, opts?: pulumi.InvokeOptions): Promise<GetReservedInstanceOfferingResult>; /** * A collection of arguments for invoking getReservedInstanceOffering. */ export interface GetReservedInstanceOfferingArgs { /** * DB instance class for the reserved DB instance. */ dbInstanceClass: string; /** * Duration of the reservation in years or seconds. Valid values are `1`, `3`, `31536000`, `94608000` */ duration: number; /** * Whether the reservation applies to Multi-AZ deployments. */ multiAz: boolean; /** * Offering type of this reserved DB instance. Valid values are `No Upfront`, `Partial Upfront`, `All Upfront`. */ offeringType: string; /** * Description of the reserved DB instance. Example values are `postgresql`, `aurora-postgresql`, `mysql`, `aurora-mysql`, `mariadb`. */ productDescription: string; /** * Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration. */ region?: string; } /** * A collection of values returned by getReservedInstanceOffering. */ export interface GetReservedInstanceOfferingResult { /** * Currency code for the reserved DB instance. */ readonly currencyCode: string; readonly dbInstanceClass: string; readonly duration: number; /** * Fixed price charged for this reserved DB instance. */ readonly fixedPrice: number; /** * The provider-assigned unique ID for this managed resource. */ readonly id: string; readonly multiAz: boolean; /** * Unique identifier for the reservation. */ readonly offeringId: string; readonly offeringType: string; readonly productDescription: string; readonly region: string; } /** * Information about a single RDS Reserved Instance Offering. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as aws from "@pulumi/aws"; * * const test = aws.rds.getReservedInstanceOffering({ * dbInstanceClass: "db.t2.micro", * duration: 31536000, * multiAz: false, * offeringType: "All Upfront", * productDescription: "mysql", * }); * ``` */ export declare function getReservedInstanceOfferingOutput(args: GetReservedInstanceOfferingOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetReservedInstanceOfferingResult>; /** * A collection of arguments for invoking getReservedInstanceOffering. */ export interface GetReservedInstanceOfferingOutputArgs { /** * DB instance class for the reserved DB instance. */ dbInstanceClass: pulumi.Input<string>; /** * Duration of the reservation in years or seconds. Valid values are `1`, `3`, `31536000`, `94608000` */ duration: pulumi.Input<number>; /** * Whether the reservation applies to Multi-AZ deployments. */ multiAz: pulumi.Input<boolean>; /** * Offering type of this reserved DB instance. Valid values are `No Upfront`, `Partial Upfront`, `All Upfront`. */ offeringType: pulumi.Input<string>; /** * Description of the reserved DB instance. Example values are `postgresql`, `aurora-postgresql`, `mysql`, `aurora-mysql`, `mariadb`. */ productDescription: pulumi.Input<string>; /** * Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration. */ region?: pulumi.Input<string>; }