AWS v6.71.0 published on Friday, Mar 7, 2025 by Pulumi
aws.rds.getReservedInstanceOffering
Explore with Pulumi AI
Information about a single RDS Reserved Instance Offering.
Example Usage
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",
});
import pulumi
import pulumi_aws as aws
test = aws.rds.get_reserved_instance_offering(db_instance_class="db.t2.micro",
    duration=31536000,
    multi_az=False,
    offering_type="All Upfront",
    product_description="mysql")
package main
import (
	"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/rds"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := rds.GetReservedInstanceOffering(ctx, &rds.GetReservedInstanceOfferingArgs{
			DbInstanceClass:    "db.t2.micro",
			Duration:           31536000,
			MultiAz:            false,
			OfferingType:       "All Upfront",
			ProductDescription: "mysql",
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() => 
{
    var test = Aws.Rds.GetReservedInstanceOffering.Invoke(new()
    {
        DbInstanceClass = "db.t2.micro",
        Duration = 31536000,
        MultiAz = false,
        OfferingType = "All Upfront",
        ProductDescription = "mysql",
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.rds.RdsFunctions;
import com.pulumi.aws.rds.inputs.GetReservedInstanceOfferingArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }
    public static void stack(Context ctx) {
        final var test = RdsFunctions.getReservedInstanceOffering(GetReservedInstanceOfferingArgs.builder()
            .dbInstanceClass("db.t2.micro")
            .duration(31536000)
            .multiAz(false)
            .offeringType("All Upfront")
            .productDescription("mysql")
            .build());
    }
}
variables:
  test:
    fn::invoke:
      function: aws:rds:getReservedInstanceOffering
      arguments:
        dbInstanceClass: db.t2.micro
        duration: 3.1536e+07
        multiAz: false
        offeringType: All Upfront
        productDescription: mysql
Using getReservedInstanceOffering
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getReservedInstanceOffering(args: GetReservedInstanceOfferingArgs, opts?: InvokeOptions): Promise<GetReservedInstanceOfferingResult>
function getReservedInstanceOfferingOutput(args: GetReservedInstanceOfferingOutputArgs, opts?: InvokeOptions): Output<GetReservedInstanceOfferingResult>def get_reserved_instance_offering(db_instance_class: Optional[str] = None,
                                   duration: Optional[int] = None,
                                   multi_az: Optional[bool] = None,
                                   offering_type: Optional[str] = None,
                                   product_description: Optional[str] = None,
                                   opts: Optional[InvokeOptions] = None) -> GetReservedInstanceOfferingResult
def get_reserved_instance_offering_output(db_instance_class: Optional[pulumi.Input[str]] = None,
                                   duration: Optional[pulumi.Input[int]] = None,
                                   multi_az: Optional[pulumi.Input[bool]] = None,
                                   offering_type: Optional[pulumi.Input[str]] = None,
                                   product_description: Optional[pulumi.Input[str]] = None,
                                   opts: Optional[InvokeOptions] = None) -> Output[GetReservedInstanceOfferingResult]func GetReservedInstanceOffering(ctx *Context, args *GetReservedInstanceOfferingArgs, opts ...InvokeOption) (*GetReservedInstanceOfferingResult, error)
func GetReservedInstanceOfferingOutput(ctx *Context, args *GetReservedInstanceOfferingOutputArgs, opts ...InvokeOption) GetReservedInstanceOfferingResultOutput> Note: This function is named GetReservedInstanceOffering in the Go SDK.
public static class GetReservedInstanceOffering 
{
    public static Task<GetReservedInstanceOfferingResult> InvokeAsync(GetReservedInstanceOfferingArgs args, InvokeOptions? opts = null)
    public static Output<GetReservedInstanceOfferingResult> Invoke(GetReservedInstanceOfferingInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetReservedInstanceOfferingResult> getReservedInstanceOffering(GetReservedInstanceOfferingArgs args, InvokeOptions options)
public static Output<GetReservedInstanceOfferingResult> getReservedInstanceOffering(GetReservedInstanceOfferingArgs args, InvokeOptions options)
fn::invoke:
  function: aws:rds/getReservedInstanceOffering:getReservedInstanceOffering
  arguments:
    # arguments dictionaryThe following arguments are supported:
- DbInstance stringClass 
- DB instance class for the reserved DB instance.
- Duration int
- Duration of the reservation in years or seconds. Valid values are 1,3,31536000,94608000
- MultiAz bool
- Whether the reservation applies to Multi-AZ deployments.
- OfferingType string
- Offering type of this reserved DB instance. Valid values are No Upfront,Partial Upfront,All Upfront.
- ProductDescription string
- Description of the reserved DB instance.
- DbInstance stringClass 
- DB instance class for the reserved DB instance.
- Duration int
- Duration of the reservation in years or seconds. Valid values are 1,3,31536000,94608000
- MultiAz bool
- Whether the reservation applies to Multi-AZ deployments.
- OfferingType string
- Offering type of this reserved DB instance. Valid values are No Upfront,Partial Upfront,All Upfront.
- ProductDescription string
- Description of the reserved DB instance.
- dbInstance StringClass 
- DB instance class for the reserved DB instance.
- duration Integer
- Duration of the reservation in years or seconds. Valid values are 1,3,31536000,94608000
- multiAz Boolean
- Whether the reservation applies to Multi-AZ deployments.
- offeringType String
- Offering type of this reserved DB instance. Valid values are No Upfront,Partial Upfront,All Upfront.
- productDescription String
- Description of the reserved DB instance.
- dbInstance stringClass 
- DB instance class for the reserved DB instance.
- duration number
- Duration of the reservation in years or seconds. Valid values are 1,3,31536000,94608000
- multiAz boolean
- Whether the reservation applies to Multi-AZ deployments.
- offeringType string
- Offering type of this reserved DB instance. Valid values are No Upfront,Partial Upfront,All Upfront.
- productDescription string
- Description of the reserved DB instance.
- db_instance_ strclass 
- DB instance class for the reserved DB instance.
- duration int
- Duration of the reservation in years or seconds. Valid values are 1,3,31536000,94608000
- multi_az bool
- Whether the reservation applies to Multi-AZ deployments.
- offering_type str
- Offering type of this reserved DB instance. Valid values are No Upfront,Partial Upfront,All Upfront.
- product_description str
- Description of the reserved DB instance.
- dbInstance StringClass 
- DB instance class for the reserved DB instance.
- duration Number
- Duration of the reservation in years or seconds. Valid values are 1,3,31536000,94608000
- multiAz Boolean
- Whether the reservation applies to Multi-AZ deployments.
- offeringType String
- Offering type of this reserved DB instance. Valid values are No Upfront,Partial Upfront,All Upfront.
- productDescription String
- Description of the reserved DB instance.
getReservedInstanceOffering Result
The following output properties are available:
- CurrencyCode string
- Currency code for the reserved DB instance.
- DbInstance stringClass 
- Duration int
- FixedPrice double
- Fixed price charged for this reserved DB instance.
- Id string
- The provider-assigned unique ID for this managed resource.
- MultiAz bool
- OfferingId string
- Unique identifier for the reservation.
- OfferingType string
- ProductDescription string
- CurrencyCode string
- Currency code for the reserved DB instance.
- DbInstance stringClass 
- Duration int
- FixedPrice float64
- Fixed price charged for this reserved DB instance.
- Id string
- The provider-assigned unique ID for this managed resource.
- MultiAz bool
- OfferingId string
- Unique identifier for the reservation.
- OfferingType string
- ProductDescription string
- currencyCode String
- Currency code for the reserved DB instance.
- dbInstance StringClass 
- duration Integer
- fixedPrice Double
- Fixed price charged for this reserved DB instance.
- id String
- The provider-assigned unique ID for this managed resource.
- multiAz Boolean
- offeringId String
- Unique identifier for the reservation.
- offeringType String
- productDescription String
- currencyCode string
- Currency code for the reserved DB instance.
- dbInstance stringClass 
- duration number
- fixedPrice number
- Fixed price charged for this reserved DB instance.
- id string
- The provider-assigned unique ID for this managed resource.
- multiAz boolean
- offeringId string
- Unique identifier for the reservation.
- offeringType string
- productDescription string
- currency_code str
- Currency code for the reserved DB instance.
- db_instance_ strclass 
- duration int
- fixed_price float
- Fixed price charged for this reserved DB instance.
- id str
- The provider-assigned unique ID for this managed resource.
- multi_az bool
- offering_id str
- Unique identifier for the reservation.
- offering_type str
- product_description str
- currencyCode String
- Currency code for the reserved DB instance.
- dbInstance StringClass 
- duration Number
- fixedPrice Number
- Fixed price charged for this reserved DB instance.
- id String
- The provider-assigned unique ID for this managed resource.
- multiAz Boolean
- offeringId String
- Unique identifier for the reservation.
- offeringType String
- productDescription String
Package Details
- Repository
- AWS Classic pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the awsTerraform Provider.