Oracle Cloud Infrastructure

v0.5.0 published on Monday, Sep 12, 2022 by Pulumi

AnalyticsCluster

This resource provides the Analytics Cluster resource in Oracle Cloud Infrastructure MySQL Database service.

DEPRECATED – please use HeatWave API instead. Updates the Analytics Cluster.

Example Usage

using System.Collections.Generic;
using Pulumi;
using Oci = Pulumi.Oci;

return await Deployment.RunAsync(() => 
{
    var testAnalyticsCluster = new Oci.Mysql.AnalyticsCluster("testAnalyticsCluster", new()
    {
        DbSystemId = oci_database_db_system.Test_db_system.Id,
        ClusterSize = @var.Analytics_cluster_cluster_size,
        ShapeName = oci_mysql_shape.Test_shape.Name,
    });

});
package main

import (
	"github.com/pulumi/pulumi-oci/sdk/go/oci/Mysql"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := Mysql.NewAnalyticsCluster(ctx, "testAnalyticsCluster", &Mysql.AnalyticsClusterArgs{
			DbSystemId:  pulumi.Any(oci_database_db_system.Test_db_system.Id),
			ClusterSize: pulumi.Any(_var.Analytics_cluster_cluster_size),
			ShapeName:   pulumi.Any(oci_mysql_shape.Test_shape.Name),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.Mysql.AnalyticsCluster;
import com.pulumi.oci.Mysql.AnalyticsClusterArgs;
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 testAnalyticsCluster = new AnalyticsCluster("testAnalyticsCluster", AnalyticsClusterArgs.builder()        
            .dbSystemId(oci_database_db_system.test_db_system().id())
            .clusterSize(var_.analytics_cluster_cluster_size())
            .shapeName(oci_mysql_shape.test_shape().name())
            .build());

    }
}
import pulumi
import pulumi_oci as oci

test_analytics_cluster = oci.mysql.AnalyticsCluster("testAnalyticsCluster",
    db_system_id=oci_database_db_system["test_db_system"]["id"],
    cluster_size=var["analytics_cluster_cluster_size"],
    shape_name=oci_mysql_shape["test_shape"]["name"])
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";

const testAnalyticsCluster = new oci.mysql.AnalyticsCluster("testAnalyticsCluster", {
    dbSystemId: oci_database_db_system.test_db_system.id,
    clusterSize: _var.analytics_cluster_cluster_size,
    shapeName: oci_mysql_shape.test_shape.name,
});
resources:
  testAnalyticsCluster:
    type: oci:Mysql:AnalyticsCluster
    properties:
      #Required
      dbSystemId: ${oci_database_db_system.test_db_system.id}
      clusterSize: ${var.analytics_cluster_cluster_size}
      shapeName: ${oci_mysql_shape.test_shape.name}

Create AnalyticsCluster Resource

new AnalyticsCluster(name: string, args: AnalyticsClusterArgs, opts?: CustomResourceOptions);
@overload
def AnalyticsCluster(resource_name: str,
                     opts: Optional[ResourceOptions] = None,
                     cluster_size: Optional[int] = None,
                     db_system_id: Optional[str] = None,
                     shape_name: Optional[str] = None,
                     state: Optional[str] = None)
@overload
def AnalyticsCluster(resource_name: str,
                     args: AnalyticsClusterArgs,
                     opts: Optional[ResourceOptions] = None)
func NewAnalyticsCluster(ctx *Context, name string, args AnalyticsClusterArgs, opts ...ResourceOption) (*AnalyticsCluster, error)
public AnalyticsCluster(string name, AnalyticsClusterArgs args, CustomResourceOptions? opts = null)
public AnalyticsCluster(String name, AnalyticsClusterArgs args)
public AnalyticsCluster(String name, AnalyticsClusterArgs args, CustomResourceOptions options)
type: oci:Mysql:AnalyticsCluster
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

name string
The unique name of the resource.
args AnalyticsClusterArgs
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 AnalyticsClusterArgs
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 AnalyticsClusterArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args AnalyticsClusterArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name String
The unique name of the resource.
args AnalyticsClusterArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

AnalyticsCluster 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 AnalyticsCluster resource accepts the following input properties:

ClusterSize int

(Updatable) A change to the number of nodes in the Analytics Cluster will result in the entire cluster being torn down and re-created with the new cluster of nodes. This may result in a significant downtime for the analytics capability while the Analytics Cluster is re-provisioned.

DbSystemId string

The DB System OCID.

ShapeName string

(Updatable) A change to the shape of the nodes in the Analytics Cluster will result in the entire cluster being torn down and re-created with Compute instances of the new Shape. This may result in significant downtime for the analytics capability while the Analytics Cluster is re-provisioned.

State string

(Updatable) The target state for the Analytics Cluster. Could be set to ACTIVE or INACTIVE.

ClusterSize int

(Updatable) A change to the number of nodes in the Analytics Cluster will result in the entire cluster being torn down and re-created with the new cluster of nodes. This may result in a significant downtime for the analytics capability while the Analytics Cluster is re-provisioned.

DbSystemId string

The DB System OCID.

ShapeName string

(Updatable) A change to the shape of the nodes in the Analytics Cluster will result in the entire cluster being torn down and re-created with Compute instances of the new Shape. This may result in significant downtime for the analytics capability while the Analytics Cluster is re-provisioned.

State string

(Updatable) The target state for the Analytics Cluster. Could be set to ACTIVE or INACTIVE.

clusterSize Integer

(Updatable) A change to the number of nodes in the Analytics Cluster will result in the entire cluster being torn down and re-created with the new cluster of nodes. This may result in a significant downtime for the analytics capability while the Analytics Cluster is re-provisioned.

dbSystemId String

The DB System OCID.

shapeName String

(Updatable) A change to the shape of the nodes in the Analytics Cluster will result in the entire cluster being torn down and re-created with Compute instances of the new Shape. This may result in significant downtime for the analytics capability while the Analytics Cluster is re-provisioned.

state String

(Updatable) The target state for the Analytics Cluster. Could be set to ACTIVE or INACTIVE.

clusterSize number

(Updatable) A change to the number of nodes in the Analytics Cluster will result in the entire cluster being torn down and re-created with the new cluster of nodes. This may result in a significant downtime for the analytics capability while the Analytics Cluster is re-provisioned.

dbSystemId string

The DB System OCID.

shapeName string

(Updatable) A change to the shape of the nodes in the Analytics Cluster will result in the entire cluster being torn down and re-created with Compute instances of the new Shape. This may result in significant downtime for the analytics capability while the Analytics Cluster is re-provisioned.

state string

(Updatable) The target state for the Analytics Cluster. Could be set to ACTIVE or INACTIVE.

cluster_size int

(Updatable) A change to the number of nodes in the Analytics Cluster will result in the entire cluster being torn down and re-created with the new cluster of nodes. This may result in a significant downtime for the analytics capability while the Analytics Cluster is re-provisioned.

db_system_id str

The DB System OCID.

shape_name str

(Updatable) A change to the shape of the nodes in the Analytics Cluster will result in the entire cluster being torn down and re-created with Compute instances of the new Shape. This may result in significant downtime for the analytics capability while the Analytics Cluster is re-provisioned.

state str

(Updatable) The target state for the Analytics Cluster. Could be set to ACTIVE or INACTIVE.

clusterSize Number

(Updatable) A change to the number of nodes in the Analytics Cluster will result in the entire cluster being torn down and re-created with the new cluster of nodes. This may result in a significant downtime for the analytics capability while the Analytics Cluster is re-provisioned.

dbSystemId String

The DB System OCID.

shapeName String

(Updatable) A change to the shape of the nodes in the Analytics Cluster will result in the entire cluster being torn down and re-created with Compute instances of the new Shape. This may result in significant downtime for the analytics capability while the Analytics Cluster is re-provisioned.

state String

(Updatable) The target state for the Analytics Cluster. Could be set to ACTIVE or INACTIVE.

Outputs

All input properties are implicitly available as output properties. Additionally, the AnalyticsCluster resource produces the following output properties:

ClusterNodes List<AnalyticsClusterClusterNode>

An Analytics Cluster Node is a compute host that is part of an Analytics Cluster.

Id string

The provider-assigned unique ID for this managed resource.

LifecycleDetails string

Additional information about the current lifecycleState.

TimeCreated string

The date and time the Analytics Cluster was created, as described by RFC 3339.

TimeUpdated string

The time the Analytics Cluster was last updated, as described by RFC 3339.

ClusterNodes []AnalyticsClusterClusterNode

An Analytics Cluster Node is a compute host that is part of an Analytics Cluster.

Id string

The provider-assigned unique ID for this managed resource.

LifecycleDetails string

Additional information about the current lifecycleState.

TimeCreated string

The date and time the Analytics Cluster was created, as described by RFC 3339.

TimeUpdated string

The time the Analytics Cluster was last updated, as described by RFC 3339.

clusterNodes List<AnalyticsClusterClusterNode>

An Analytics Cluster Node is a compute host that is part of an Analytics Cluster.

id String

The provider-assigned unique ID for this managed resource.

lifecycleDetails String

Additional information about the current lifecycleState.

timeCreated String

The date and time the Analytics Cluster was created, as described by RFC 3339.

timeUpdated String

The time the Analytics Cluster was last updated, as described by RFC 3339.

clusterNodes AnalyticsClusterClusterNode[]

An Analytics Cluster Node is a compute host that is part of an Analytics Cluster.

id string

The provider-assigned unique ID for this managed resource.

lifecycleDetails string

Additional information about the current lifecycleState.

timeCreated string

The date and time the Analytics Cluster was created, as described by RFC 3339.

timeUpdated string

The time the Analytics Cluster was last updated, as described by RFC 3339.

cluster_nodes AnalyticsClusterClusterNode]

An Analytics Cluster Node is a compute host that is part of an Analytics Cluster.

id str

The provider-assigned unique ID for this managed resource.

lifecycle_details str

Additional information about the current lifecycleState.

time_created str

The date and time the Analytics Cluster was created, as described by RFC 3339.

time_updated str

The time the Analytics Cluster was last updated, as described by RFC 3339.

clusterNodes List<Property Map>

An Analytics Cluster Node is a compute host that is part of an Analytics Cluster.

id String

The provider-assigned unique ID for this managed resource.

lifecycleDetails String

Additional information about the current lifecycleState.

timeCreated String

The date and time the Analytics Cluster was created, as described by RFC 3339.

timeUpdated String

The time the Analytics Cluster was last updated, as described by RFC 3339.

Look up Existing AnalyticsCluster Resource

Get an existing AnalyticsCluster 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?: AnalyticsClusterState, opts?: CustomResourceOptions): AnalyticsCluster
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        cluster_nodes: Optional[Sequence[_mysql.AnalyticsClusterClusterNodeArgs]] = None,
        cluster_size: Optional[int] = None,
        db_system_id: Optional[str] = None,
        lifecycle_details: Optional[str] = None,
        shape_name: Optional[str] = None,
        state: Optional[str] = None,
        time_created: Optional[str] = None,
        time_updated: Optional[str] = None) -> AnalyticsCluster
func GetAnalyticsCluster(ctx *Context, name string, id IDInput, state *AnalyticsClusterState, opts ...ResourceOption) (*AnalyticsCluster, error)
public static AnalyticsCluster Get(string name, Input<string> id, AnalyticsClusterState? state, CustomResourceOptions? opts = null)
public static AnalyticsCluster get(String name, Output<String> id, AnalyticsClusterState 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.
The following state arguments are supported:
ClusterNodes List<AnalyticsClusterClusterNodeArgs>

An Analytics Cluster Node is a compute host that is part of an Analytics Cluster.

ClusterSize int

(Updatable) A change to the number of nodes in the Analytics Cluster will result in the entire cluster being torn down and re-created with the new cluster of nodes. This may result in a significant downtime for the analytics capability while the Analytics Cluster is re-provisioned.

DbSystemId string

The DB System OCID.

LifecycleDetails string

Additional information about the current lifecycleState.

ShapeName string

(Updatable) A change to the shape of the nodes in the Analytics Cluster will result in the entire cluster being torn down and re-created with Compute instances of the new Shape. This may result in significant downtime for the analytics capability while the Analytics Cluster is re-provisioned.

State string

(Updatable) The target state for the Analytics Cluster. Could be set to ACTIVE or INACTIVE.

TimeCreated string

The date and time the Analytics Cluster was created, as described by RFC 3339.

TimeUpdated string

The time the Analytics Cluster was last updated, as described by RFC 3339.

ClusterNodes []AnalyticsClusterClusterNodeArgs

An Analytics Cluster Node is a compute host that is part of an Analytics Cluster.

ClusterSize int

(Updatable) A change to the number of nodes in the Analytics Cluster will result in the entire cluster being torn down and re-created with the new cluster of nodes. This may result in a significant downtime for the analytics capability while the Analytics Cluster is re-provisioned.

DbSystemId string

The DB System OCID.

LifecycleDetails string

Additional information about the current lifecycleState.

ShapeName string

(Updatable) A change to the shape of the nodes in the Analytics Cluster will result in the entire cluster being torn down and re-created with Compute instances of the new Shape. This may result in significant downtime for the analytics capability while the Analytics Cluster is re-provisioned.

State string

(Updatable) The target state for the Analytics Cluster. Could be set to ACTIVE or INACTIVE.

TimeCreated string

The date and time the Analytics Cluster was created, as described by RFC 3339.

TimeUpdated string

The time the Analytics Cluster was last updated, as described by RFC 3339.

clusterNodes List<AnalyticsClusterClusterNodeArgs>

An Analytics Cluster Node is a compute host that is part of an Analytics Cluster.

clusterSize Integer

(Updatable) A change to the number of nodes in the Analytics Cluster will result in the entire cluster being torn down and re-created with the new cluster of nodes. This may result in a significant downtime for the analytics capability while the Analytics Cluster is re-provisioned.

dbSystemId String

The DB System OCID.

lifecycleDetails String

Additional information about the current lifecycleState.

shapeName String

(Updatable) A change to the shape of the nodes in the Analytics Cluster will result in the entire cluster being torn down and re-created with Compute instances of the new Shape. This may result in significant downtime for the analytics capability while the Analytics Cluster is re-provisioned.

state String

(Updatable) The target state for the Analytics Cluster. Could be set to ACTIVE or INACTIVE.

timeCreated String

The date and time the Analytics Cluster was created, as described by RFC 3339.

timeUpdated String

The time the Analytics Cluster was last updated, as described by RFC 3339.

clusterNodes AnalyticsClusterClusterNodeArgs[]

An Analytics Cluster Node is a compute host that is part of an Analytics Cluster.

clusterSize number

(Updatable) A change to the number of nodes in the Analytics Cluster will result in the entire cluster being torn down and re-created with the new cluster of nodes. This may result in a significant downtime for the analytics capability while the Analytics Cluster is re-provisioned.

dbSystemId string

The DB System OCID.

lifecycleDetails string

Additional information about the current lifecycleState.

shapeName string

(Updatable) A change to the shape of the nodes in the Analytics Cluster will result in the entire cluster being torn down and re-created with Compute instances of the new Shape. This may result in significant downtime for the analytics capability while the Analytics Cluster is re-provisioned.

state string

(Updatable) The target state for the Analytics Cluster. Could be set to ACTIVE or INACTIVE.

timeCreated string

The date and time the Analytics Cluster was created, as described by RFC 3339.

timeUpdated string

The time the Analytics Cluster was last updated, as described by RFC 3339.

cluster_nodes AnalyticsClusterClusterNodeArgs]

An Analytics Cluster Node is a compute host that is part of an Analytics Cluster.

cluster_size int

(Updatable) A change to the number of nodes in the Analytics Cluster will result in the entire cluster being torn down and re-created with the new cluster of nodes. This may result in a significant downtime for the analytics capability while the Analytics Cluster is re-provisioned.

db_system_id str

The DB System OCID.

lifecycle_details str

Additional information about the current lifecycleState.

shape_name str

(Updatable) A change to the shape of the nodes in the Analytics Cluster will result in the entire cluster being torn down and re-created with Compute instances of the new Shape. This may result in significant downtime for the analytics capability while the Analytics Cluster is re-provisioned.

state str

(Updatable) The target state for the Analytics Cluster. Could be set to ACTIVE or INACTIVE.

time_created str

The date and time the Analytics Cluster was created, as described by RFC 3339.

time_updated str

The time the Analytics Cluster was last updated, as described by RFC 3339.

clusterNodes List<Property Map>

An Analytics Cluster Node is a compute host that is part of an Analytics Cluster.

clusterSize Number

(Updatable) A change to the number of nodes in the Analytics Cluster will result in the entire cluster being torn down and re-created with the new cluster of nodes. This may result in a significant downtime for the analytics capability while the Analytics Cluster is re-provisioned.

dbSystemId String

The DB System OCID.

lifecycleDetails String

Additional information about the current lifecycleState.

shapeName String

(Updatable) A change to the shape of the nodes in the Analytics Cluster will result in the entire cluster being torn down and re-created with Compute instances of the new Shape. This may result in significant downtime for the analytics capability while the Analytics Cluster is re-provisioned.

state String

(Updatable) The target state for the Analytics Cluster. Could be set to ACTIVE or INACTIVE.

timeCreated String

The date and time the Analytics Cluster was created, as described by RFC 3339.

timeUpdated String

The time the Analytics Cluster was last updated, as described by RFC 3339.

Supporting Types

AnalyticsClusterClusterNode

NodeId string

The ID of the node within MySQL Analytics Cluster.

State string

(Updatable) The target state for the Analytics Cluster. Could be set to ACTIVE or INACTIVE.

TimeCreated string

The date and time the Analytics Cluster was created, as described by RFC 3339.

TimeUpdated string

The time the Analytics Cluster was last updated, as described by RFC 3339.

NodeId string

The ID of the node within MySQL Analytics Cluster.

State string

(Updatable) The target state for the Analytics Cluster. Could be set to ACTIVE or INACTIVE.

TimeCreated string

The date and time the Analytics Cluster was created, as described by RFC 3339.

TimeUpdated string

The time the Analytics Cluster was last updated, as described by RFC 3339.

nodeId String

The ID of the node within MySQL Analytics Cluster.

state String

(Updatable) The target state for the Analytics Cluster. Could be set to ACTIVE or INACTIVE.

timeCreated String

The date and time the Analytics Cluster was created, as described by RFC 3339.

timeUpdated String

The time the Analytics Cluster was last updated, as described by RFC 3339.

nodeId string

The ID of the node within MySQL Analytics Cluster.

state string

(Updatable) The target state for the Analytics Cluster. Could be set to ACTIVE or INACTIVE.

timeCreated string

The date and time the Analytics Cluster was created, as described by RFC 3339.

timeUpdated string

The time the Analytics Cluster was last updated, as described by RFC 3339.

node_id str

The ID of the node within MySQL Analytics Cluster.

state str

(Updatable) The target state for the Analytics Cluster. Could be set to ACTIVE or INACTIVE.

time_created str

The date and time the Analytics Cluster was created, as described by RFC 3339.

time_updated str

The time the Analytics Cluster was last updated, as described by RFC 3339.

nodeId String

The ID of the node within MySQL Analytics Cluster.

state String

(Updatable) The target state for the Analytics Cluster. Could be set to ACTIVE or INACTIVE.

timeCreated String

The date and time the Analytics Cluster was created, as described by RFC 3339.

timeUpdated String

The time the Analytics Cluster was last updated, as described by RFC 3339.

Import

AnalyticsCluster can be imported using the id, e.g.

 $ pulumi import oci:Mysql/analyticsCluster:AnalyticsCluster test_analytics_cluster "dbSystems/{dbSystemId}/analyticsCluster"

Package Details

Repository
https://github.com/pulumi/pulumi-oci
License
Apache-2.0
Notes

This Pulumi package is based on the oci Terraform Provider.