Try AWS Native preview for resources not in the classic version.
AWS Classic v6.42.1 published on Friday, Jun 28, 2024 by Pulumi
aws.rds.getReservedInstanceOffering
Explore with Pulumi AI
Try AWS Native preview for resources not in the classic version.
AWS Classic v6.42.1 published on Friday, Jun 28, 2024 by Pulumi
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)
// Output-based functions aren't available in Java yet
fn::invoke:
function: aws:rds/getReservedInstanceOffering:getReservedInstanceOffering
arguments:
# arguments dictionary
The following arguments are supported:
- Db
Instance 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
- Multi
Az bool - Whether the reservation applies to Multi-AZ deployments.
- Offering
Type string - Offering type of this reserved DB instance. Valid values are
No Upfront
,Partial Upfront
,All Upfront
. - Product
Description string - Description of the reserved DB instance.
- Db
Instance 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
- Multi
Az bool - Whether the reservation applies to Multi-AZ deployments.
- Offering
Type string - Offering type of this reserved DB instance. Valid values are
No Upfront
,Partial Upfront
,All Upfront
. - Product
Description string - Description of the reserved DB instance.
- db
Instance 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
- multi
Az Boolean - Whether the reservation applies to Multi-AZ deployments.
- offering
Type String - Offering type of this reserved DB instance. Valid values are
No Upfront
,Partial Upfront
,All Upfront
. - product
Description String - Description of the reserved DB instance.
- db
Instance 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
- multi
Az boolean - Whether the reservation applies to Multi-AZ deployments.
- offering
Type string - Offering type of this reserved DB instance. Valid values are
No Upfront
,Partial Upfront
,All Upfront
. - product
Description 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.
- db
Instance 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
- multi
Az Boolean - Whether the reservation applies to Multi-AZ deployments.
- offering
Type String - Offering type of this reserved DB instance. Valid values are
No Upfront
,Partial Upfront
,All Upfront
. - product
Description String - Description of the reserved DB instance.
getReservedInstanceOffering Result
The following output properties are available:
- Currency
Code string - Currency code for the reserved DB instance.
- Db
Instance stringClass - Duration int
- Fixed
Price double - Fixed price charged for this reserved DB instance.
- Id string
- The provider-assigned unique ID for this managed resource.
- Multi
Az bool - Offering
Id string - Unique identifier for the reservation.
- Offering
Type string - Product
Description string
- Currency
Code string - Currency code for the reserved DB instance.
- Db
Instance stringClass - Duration int
- Fixed
Price float64 - Fixed price charged for this reserved DB instance.
- Id string
- The provider-assigned unique ID for this managed resource.
- Multi
Az bool - Offering
Id string - Unique identifier for the reservation.
- Offering
Type string - Product
Description string
- currency
Code String - Currency code for the reserved DB instance.
- db
Instance StringClass - duration Integer
- fixed
Price Double - Fixed price charged for this reserved DB instance.
- id String
- The provider-assigned unique ID for this managed resource.
- multi
Az Boolean - offering
Id String - Unique identifier for the reservation.
- offering
Type String - product
Description String
- currency
Code string - Currency code for the reserved DB instance.
- db
Instance stringClass - duration number
- fixed
Price number - Fixed price charged for this reserved DB instance.
- id string
- The provider-assigned unique ID for this managed resource.
- multi
Az boolean - offering
Id string - Unique identifier for the reservation.
- offering
Type string - product
Description 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
- currency
Code String - Currency code for the reserved DB instance.
- db
Instance StringClass - duration Number
- fixed
Price Number - Fixed price charged for this reserved DB instance.
- id String
- The provider-assigned unique ID for this managed resource.
- multi
Az Boolean - offering
Id String - Unique identifier for the reservation.
- offering
Type String - product
Description String
Package Details
- Repository
- AWS Classic pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
aws
Terraform Provider.
Try AWS Native preview for resources not in the classic version.
AWS Classic v6.42.1 published on Friday, Jun 28, 2024 by Pulumi