Oracle Cloud Infrastructure v0.20.0, May 31 23
Oracle Cloud Infrastructure v0.20.0, May 31 23
oci.Mysql.AnalyticsCluster
Explore with Pulumi AI
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 System.Linq;
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:
- 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 stringId The DB System OCID.
- Shape
Name 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
orINACTIVE
.** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- 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 stringId The DB System OCID.
- Shape
Name 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
orINACTIVE
.** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- cluster
Size 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.
- db
System StringId The DB System OCID.
- shape
Name 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
orINACTIVE
.** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- cluster
Size 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.
- db
System stringId The DB System OCID.
- shape
Name 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
orINACTIVE
.** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- 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_ strid 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
orINACTIVE
.** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- cluster
Size 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.
- db
System StringId The DB System OCID.
- shape
Name 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
orINACTIVE
.** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
Outputs
All input properties are implicitly available as output properties. Additionally, the AnalyticsCluster resource produces the following output properties:
- Cluster
Nodes List<AnalyticsCluster Cluster Node> 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.
- Lifecycle
Details string Additional information about the current lifecycleState.
- Time
Created string The date and time the Analytics Cluster was created, as described by RFC 3339.
- Time
Updated string The time the Analytics Cluster was last updated, as described by RFC 3339.
- Cluster
Nodes []AnalyticsCluster Cluster Node 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.
- Lifecycle
Details string Additional information about the current lifecycleState.
- Time
Created string The date and time the Analytics Cluster was created, as described by RFC 3339.
- Time
Updated string The time the Analytics Cluster was last updated, as described by RFC 3339.
- cluster
Nodes List<AnalyticsCluster Cluster Node> 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.
- lifecycle
Details String Additional information about the current lifecycleState.
- time
Created String The date and time the Analytics Cluster was created, as described by RFC 3339.
- time
Updated String The time the Analytics Cluster was last updated, as described by RFC 3339.
- cluster
Nodes AnalyticsCluster Cluster Node[] 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.
- lifecycle
Details string Additional information about the current lifecycleState.
- time
Created string The date and time the Analytics Cluster was created, as described by RFC 3339.
- time
Updated string The time the Analytics Cluster was last updated, as described by RFC 3339.
- cluster_
nodes AnalyticsCluster Cluster Node] 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.
- cluster
Nodes 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.
- lifecycle
Details String Additional information about the current lifecycleState.
- time
Created String The date and time the Analytics Cluster was created, as described by RFC 3339.
- time
Updated 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.
- Cluster
Nodes List<AnalyticsCluster Cluster Node Args> 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 stringId The DB System OCID.
- Lifecycle
Details string Additional information about the current lifecycleState.
- Shape
Name 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
orINACTIVE
.** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- Time
Created string The date and time the Analytics Cluster was created, as described by RFC 3339.
- Time
Updated string The time the Analytics Cluster was last updated, as described by RFC 3339.
- Cluster
Nodes []AnalyticsCluster Cluster Node Args 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 stringId The DB System OCID.
- Lifecycle
Details string Additional information about the current lifecycleState.
- Shape
Name 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
orINACTIVE
.** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- Time
Created string The date and time the Analytics Cluster was created, as described by RFC 3339.
- Time
Updated string The time the Analytics Cluster was last updated, as described by RFC 3339.
- cluster
Nodes List<AnalyticsCluster Cluster Node Args> An Analytics Cluster Node is a compute host that is part of an Analytics Cluster.
- cluster
Size 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.
- db
System StringId The DB System OCID.
- lifecycle
Details String Additional information about the current lifecycleState.
- shape
Name 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
orINACTIVE
.** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- time
Created String The date and time the Analytics Cluster was created, as described by RFC 3339.
- time
Updated String The time the Analytics Cluster was last updated, as described by RFC 3339.
- cluster
Nodes AnalyticsCluster Cluster Node Args[] An Analytics Cluster Node is a compute host that is part of an Analytics Cluster.
- cluster
Size 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.
- db
System stringId The DB System OCID.
- lifecycle
Details string Additional information about the current lifecycleState.
- shape
Name 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
orINACTIVE
.** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- time
Created string The date and time the Analytics Cluster was created, as described by RFC 3339.
- time
Updated string The time the Analytics Cluster was last updated, as described by RFC 3339.
- cluster_
nodes AnalyticsCluster Cluster Node Args] 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_ strid 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
orINACTIVE
.** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- 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.
- cluster
Nodes List<Property Map> An Analytics Cluster Node is a compute host that is part of an Analytics Cluster.
- cluster
Size 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.
- db
System StringId The DB System OCID.
- lifecycle
Details String Additional information about the current lifecycleState.
- shape
Name 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
orINACTIVE
.** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- time
Created String The date and time the Analytics Cluster was created, as described by RFC 3339.
- time
Updated String The time the Analytics Cluster was last updated, as described by RFC 3339.
Supporting Types
AnalyticsClusterClusterNode
- Node
Id 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
orINACTIVE
.** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- Time
Created string The date and time the Analytics Cluster was created, as described by RFC 3339.
- Time
Updated string The time the Analytics Cluster was last updated, as described by RFC 3339.
- Node
Id 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
orINACTIVE
.** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- Time
Created string The date and time the Analytics Cluster was created, as described by RFC 3339.
- Time
Updated string The time the Analytics Cluster was last updated, as described by RFC 3339.
- node
Id 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
orINACTIVE
.** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- time
Created String The date and time the Analytics Cluster was created, as described by RFC 3339.
- time
Updated String The time the Analytics Cluster was last updated, as described by RFC 3339.
- node
Id 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
orINACTIVE
.** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- time
Created string The date and time the Analytics Cluster was created, as described by RFC 3339.
- time
Updated 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
orINACTIVE
.** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- 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.
- node
Id 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
orINACTIVE
.** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- time
Created String The date and time the Analytics Cluster was created, as described by RFC 3339.
- time
Updated 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
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
oci
Terraform Provider.