Skip to content

Data Source: awsRdsReservedInstanceOffering

Information about a single RDS Reserved Instance Offering.

Example Usage

/*Provider bindings are generated by running cdktf get.
See https://cdk.tf/provider-generation for more details.*/
import * as aws from "./.gen/providers/aws";
new aws.dataAwsRdsReservedInstanceOffering.DataAwsRdsReservedInstanceOffering(
  this,
  "test",
  {
    dbInstanceClass: "db.t2.micro",
    duration: 31536000,
    multiAz: false,
    offeringType: "All Upfront",
    productDescription: "mysql",
  }
);

Argument Reference

The following arguments are supported:

  • dbInstanceClass - (Required) DB instance class for the reserved DB instance.
  • duration - (Required) Duration of the reservation in years or seconds. Valid values are 1, 3, 31536000, 94608000
  • multiAz - (Required) Whether the reservation applies to Multi-AZ deployments.
  • offeringType - (Required) Offering type of this reserved DB instance. Valid values are noUpfront, partialUpfront, allUpfront.
  • productDescription - (Required) Description of the reserved DB instance.

Attribute Reference

In addition to all arguments above, the following attributes are exported:

  • id - Unique identifier for the reservation. Same as offeringId.
  • currencyCode - Currency code for the reserved DB instance.
  • fixedPrice - Fixed price charged for this reserved DB instance.
  • offeringId - Unique identifier for the reservation.