cloudamqp.UpgradeLavinmq
Explore with Pulumi AI
This resource allows you to upgrade LavinMQ version.
See below example usage.
Only available for dedicated subscription plans running LavinMQ.
Example Usage
Upgrade LavinMQ, specify which version to upgrade to, from v1.32.0
Specify the version to upgrade to. List available upgradable versions, use CloudAMQP API.
import * as pulumi from "@pulumi/pulumi";
import * as cloudamqp from "@pulumi/cloudamqp";
const instance = new cloudamqp.Instance("instance", {
name: "lavinmq-version-upgrade-test",
plan: "lynx-1",
region: "amazon-web-services::us-west-1",
});
const upgrade = new cloudamqp.UpgradeLavinmq("upgrade", {
instanceId: instance.id,
newVersion: "1.3.1",
});
import pulumi
import pulumi_cloudamqp as cloudamqp
instance = cloudamqp.Instance("instance",
name="lavinmq-version-upgrade-test",
plan="lynx-1",
region="amazon-web-services::us-west-1")
upgrade = cloudamqp.UpgradeLavinmq("upgrade",
instance_id=instance.id,
new_version="1.3.1")
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 {
instance, err := cloudamqp.NewInstance(ctx, "instance", &cloudamqp.InstanceArgs{
Name: pulumi.String("lavinmq-version-upgrade-test"),
Plan: pulumi.String("lynx-1"),
Region: pulumi.String("amazon-web-services::us-west-1"),
})
if err != nil {
return err
}
_, err = cloudamqp.NewUpgradeLavinmq(ctx, "upgrade", &cloudamqp.UpgradeLavinmqArgs{
InstanceId: instance.ID(),
NewVersion: pulumi.String("1.3.1"),
})
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 instance = new CloudAmqp.Instance("instance", new()
{
Name = "lavinmq-version-upgrade-test",
Plan = "lynx-1",
Region = "amazon-web-services::us-west-1",
});
var upgrade = new CloudAmqp.UpgradeLavinmq("upgrade", new()
{
InstanceId = instance.Id,
NewVersion = "1.3.1",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.cloudamqp.Instance;
import com.pulumi.cloudamqp.InstanceArgs;
import com.pulumi.cloudamqp.UpgradeLavinmq;
import com.pulumi.cloudamqp.UpgradeLavinmqArgs;
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) {
var instance = new Instance("instance", InstanceArgs.builder()
.name("lavinmq-version-upgrade-test")
.plan("lynx-1")
.region("amazon-web-services::us-west-1")
.build());
var upgrade = new UpgradeLavinmq("upgrade", UpgradeLavinmqArgs.builder()
.instanceId(instance.id())
.newVersion("1.3.1")
.build());
}
}
resources:
instance:
type: cloudamqp:Instance
properties:
name: lavinmq-version-upgrade-test
plan: lynx-1
region: amazon-web-services::us-west-1
upgrade:
type: cloudamqp:UpgradeLavinmq
properties:
instanceId: ${instance.id}
newVersion: 1.3.1
Create UpgradeLavinmq Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new UpgradeLavinmq(name: string, args: UpgradeLavinmqArgs, opts?: CustomResourceOptions);
@overload
def UpgradeLavinmq(resource_name: str,
args: UpgradeLavinmqArgs,
opts: Optional[ResourceOptions] = None)
@overload
def UpgradeLavinmq(resource_name: str,
opts: Optional[ResourceOptions] = None,
instance_id: Optional[int] = None,
new_version: Optional[str] = None)
func NewUpgradeLavinmq(ctx *Context, name string, args UpgradeLavinmqArgs, opts ...ResourceOption) (*UpgradeLavinmq, error)
public UpgradeLavinmq(string name, UpgradeLavinmqArgs args, CustomResourceOptions? opts = null)
public UpgradeLavinmq(String name, UpgradeLavinmqArgs args)
public UpgradeLavinmq(String name, UpgradeLavinmqArgs args, CustomResourceOptions options)
type: cloudamqp:UpgradeLavinmq
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args UpgradeLavinmqArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args UpgradeLavinmqArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args UpgradeLavinmqArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args UpgradeLavinmqArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args UpgradeLavinmqArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var upgradeLavinmqResource = new CloudAmqp.UpgradeLavinmq("upgradeLavinmqResource", new()
{
InstanceId = 0,
NewVersion = "string",
});
example, err := cloudamqp.NewUpgradeLavinmq(ctx, "upgradeLavinmqResource", &cloudamqp.UpgradeLavinmqArgs{
InstanceId: pulumi.Int(0),
NewVersion: pulumi.String("string"),
})
var upgradeLavinmqResource = new UpgradeLavinmq("upgradeLavinmqResource", UpgradeLavinmqArgs.builder()
.instanceId(0)
.newVersion("string")
.build());
upgrade_lavinmq_resource = cloudamqp.UpgradeLavinmq("upgradeLavinmqResource",
instance_id=0,
new_version="string")
const upgradeLavinmqResource = new cloudamqp.UpgradeLavinmq("upgradeLavinmqResource", {
instanceId: 0,
newVersion: "string",
});
type: cloudamqp:UpgradeLavinmq
properties:
instanceId: 0
newVersion: string
UpgradeLavinmq Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The UpgradeLavinmq resource accepts the following input properties:
- Instance
Id int - The CloudAMQP instance identifier
- New
Version string - The new version to upgrade to
- Instance
Id int - The CloudAMQP instance identifier
- New
Version string - The new version to upgrade to
- instance
Id Integer - The CloudAMQP instance identifier
- new
Version String - The new version to upgrade to
- instance
Id number - The CloudAMQP instance identifier
- new
Version string - The new version to upgrade to
- instance_
id int - The CloudAMQP instance identifier
- new_
version str - The new version to upgrade to
- instance
Id Number - The CloudAMQP instance identifier
- new
Version String - The new version to upgrade to
Outputs
All input properties are implicitly available as output properties. Additionally, the UpgradeLavinmq resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing UpgradeLavinmq Resource
Get an existing UpgradeLavinmq resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: UpgradeLavinmqState, opts?: CustomResourceOptions): UpgradeLavinmq
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
instance_id: Optional[int] = None,
new_version: Optional[str] = None) -> UpgradeLavinmq
func GetUpgradeLavinmq(ctx *Context, name string, id IDInput, state *UpgradeLavinmqState, opts ...ResourceOption) (*UpgradeLavinmq, error)
public static UpgradeLavinmq Get(string name, Input<string> id, UpgradeLavinmqState? state, CustomResourceOptions? opts = null)
public static UpgradeLavinmq get(String name, Output<String> id, UpgradeLavinmqState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Instance
Id int - The CloudAMQP instance identifier
- New
Version string - The new version to upgrade to
- Instance
Id int - The CloudAMQP instance identifier
- New
Version string - The new version to upgrade to
- instance
Id Integer - The CloudAMQP instance identifier
- new
Version String - The new version to upgrade to
- instance
Id number - The CloudAMQP instance identifier
- new
Version string - The new version to upgrade to
- instance_
id int - The CloudAMQP instance identifier
- new_
version str - The new version to upgrade to
- instance
Id Number - The CloudAMQP instance identifier
- new
Version String - The new version to upgrade to
Import
ant Upgrade Information
- All single node upgrades will require some downtime since LavinMQ needs a restart.
- Auto delete queues (queues that are marked AD) will be deleted during the update.
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- CloudAMQP pulumi/pulumi-cloudamqp
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
cloudamqp
Terraform Provider.