CloudAMQP v3.20.2 published on Tuesday, Oct 29, 2024 by Pulumi
cloudamqp.getUpgradableVersions
Explore with Pulumi AI
Use this data source to retrieve information about possible upgradable versions for RabbitMQ and Erlang.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as cloudamqp from "@pulumi/cloudamqp";
const versions = cloudamqp.getUpgradableVersions({
instanceId: instance.id,
});
import pulumi
import pulumi_cloudamqp as cloudamqp
versions = cloudamqp.get_upgradable_versions(instance_id=instance["id"])
package main
import (
"github.com/pulumi/pulumi-cloudamqp/sdk/v3/go/cloudamqp"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := cloudamqp.GetUpgradableVersions(ctx, &cloudamqp.GetUpgradableVersionsArgs{
InstanceId: instance.Id,
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using CloudAmqp = Pulumi.CloudAmqp;
return await Deployment.RunAsync(() =>
{
var versions = CloudAmqp.GetUpgradableVersions.Invoke(new()
{
InstanceId = instance.Id,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.cloudamqp.CloudamqpFunctions;
import com.pulumi.cloudamqp.inputs.GetUpgradableVersionsArgs;
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 versions = CloudamqpFunctions.getUpgradableVersions(GetUpgradableVersionsArgs.builder()
.instanceId(instance.id())
.build());
}
}
variables:
versions:
fn::invoke:
Function: cloudamqp:getUpgradableVersions
Arguments:
instanceId: ${instance.id}
Attributes reference
All attributes reference are computed
new_rabbitmq_version
- Possible upgradable version for RabbitMQ.new_erlang_version
- Possible upgradable version for Erlang.
Dependency
This data source depends on CloudAMQP instance identifier, cloudamqp_instance.instance.id
.
Using getUpgradableVersions
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 getUpgradableVersions(args: GetUpgradableVersionsArgs, opts?: InvokeOptions): Promise<GetUpgradableVersionsResult>
function getUpgradableVersionsOutput(args: GetUpgradableVersionsOutputArgs, opts?: InvokeOptions): Output<GetUpgradableVersionsResult>
def get_upgradable_versions(instance_id: Optional[int] = None,
opts: Optional[InvokeOptions] = None) -> GetUpgradableVersionsResult
def get_upgradable_versions_output(instance_id: Optional[pulumi.Input[int]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetUpgradableVersionsResult]
func GetUpgradableVersions(ctx *Context, args *GetUpgradableVersionsArgs, opts ...InvokeOption) (*GetUpgradableVersionsResult, error)
func GetUpgradableVersionsOutput(ctx *Context, args *GetUpgradableVersionsOutputArgs, opts ...InvokeOption) GetUpgradableVersionsResultOutput
> Note: This function is named GetUpgradableVersions
in the Go SDK.
public static class GetUpgradableVersions
{
public static Task<GetUpgradableVersionsResult> InvokeAsync(GetUpgradableVersionsArgs args, InvokeOptions? opts = null)
public static Output<GetUpgradableVersionsResult> Invoke(GetUpgradableVersionsInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetUpgradableVersionsResult> getUpgradableVersions(GetUpgradableVersionsArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: cloudamqp:index/getUpgradableVersions:getUpgradableVersions
arguments:
# arguments dictionary
The following arguments are supported:
- Instance
Id int - The CloudAMQP instance identifier.
- Instance
Id int - The CloudAMQP instance identifier.
- instance
Id Integer - The CloudAMQP instance identifier.
- instance
Id number - The CloudAMQP instance identifier.
- instance_
id int - The CloudAMQP instance identifier.
- instance
Id Number - The CloudAMQP instance identifier.
getUpgradableVersions Result
The following output properties are available:
- Id string
- The provider-assigned unique ID for this managed resource.
- Instance
Id int - New
Erlang stringVersion - New
Rabbitmq stringVersion
- Id string
- The provider-assigned unique ID for this managed resource.
- Instance
Id int - New
Erlang stringVersion - New
Rabbitmq stringVersion
- id String
- The provider-assigned unique ID for this managed resource.
- instance
Id Integer - new
Erlang StringVersion - new
Rabbitmq StringVersion
- id string
- The provider-assigned unique ID for this managed resource.
- instance
Id number - new
Erlang stringVersion - new
Rabbitmq stringVersion
- id str
- The provider-assigned unique ID for this managed resource.
- instance_
id int - new_
erlang_ strversion - new_
rabbitmq_ strversion
- id String
- The provider-assigned unique ID for this managed resource.
- instance
Id Number - new
Erlang StringVersion - new
Rabbitmq StringVersion
Package Details
- Repository
- CloudAMQP pulumi/pulumi-cloudamqp
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
cloudamqp
Terraform Provider.