Oracle Cloud Infrastructure

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

AwrHub

This resource provides the Awr Hub resource in Oracle Cloud Infrastructure Opsi service.

Create a AWR hub resource for the tenant in Operations Insights. This resource will be created in root compartment.

Example Usage

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

return await Deployment.RunAsync(() => 
{
    var testAwrHub = new Oci.Opsi.AwrHub("testAwrHub", new()
    {
        CompartmentId = @var.Compartment_id,
        DisplayName = @var.Awr_hub_display_name,
        ObjectStorageBucketName = oci_objectstorage_bucket.Test_bucket.Name,
        OperationsInsightsWarehouseId = oci_opsi_operations_insights_warehouse.Test_operations_insights_warehouse.Id,
        DefinedTags = 
        {
            { "foo-namespace.bar-key", "value" },
        },
        FreeformTags = 
        {
            { "bar-key", "value" },
        },
    });

});
package main

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

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := Opsi.NewAwrHub(ctx, "testAwrHub", &Opsi.AwrHubArgs{
			CompartmentId:                 pulumi.Any(_var.Compartment_id),
			DisplayName:                   pulumi.Any(_var.Awr_hub_display_name),
			ObjectStorageBucketName:       pulumi.Any(oci_objectstorage_bucket.Test_bucket.Name),
			OperationsInsightsWarehouseId: pulumi.Any(oci_opsi_operations_insights_warehouse.Test_operations_insights_warehouse.Id),
			DefinedTags: pulumi.AnyMap{
				"foo-namespace.bar-key": pulumi.Any("value"),
			},
			FreeformTags: pulumi.AnyMap{
				"bar-key": pulumi.Any("value"),
			},
		})
		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.Opsi.AwrHub;
import com.pulumi.oci.Opsi.AwrHubArgs;
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 testAwrHub = new AwrHub("testAwrHub", AwrHubArgs.builder()        
            .compartmentId(var_.compartment_id())
            .displayName(var_.awr_hub_display_name())
            .objectStorageBucketName(oci_objectstorage_bucket.test_bucket().name())
            .operationsInsightsWarehouseId(oci_opsi_operations_insights_warehouse.test_operations_insights_warehouse().id())
            .definedTags(Map.of("foo-namespace.bar-key", "value"))
            .freeformTags(Map.of("bar-key", "value"))
            .build());

    }
}
import pulumi
import pulumi_oci as oci

test_awr_hub = oci.opsi.AwrHub("testAwrHub",
    compartment_id=var["compartment_id"],
    display_name=var["awr_hub_display_name"],
    object_storage_bucket_name=oci_objectstorage_bucket["test_bucket"]["name"],
    operations_insights_warehouse_id=oci_opsi_operations_insights_warehouse["test_operations_insights_warehouse"]["id"],
    defined_tags={
        "foo-namespace.bar-key": "value",
    },
    freeform_tags={
        "bar-key": "value",
    })
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";

const testAwrHub = new oci.opsi.AwrHub("testAwrHub", {
    compartmentId: _var.compartment_id,
    displayName: _var.awr_hub_display_name,
    objectStorageBucketName: oci_objectstorage_bucket.test_bucket.name,
    operationsInsightsWarehouseId: oci_opsi_operations_insights_warehouse.test_operations_insights_warehouse.id,
    definedTags: {
        "foo-namespace.bar-key": "value",
    },
    freeformTags: {
        "bar-key": "value",
    },
});
resources:
  testAwrHub:
    type: oci:Opsi:AwrHub
    properties:
      #Required
      compartmentId: ${var.compartment_id}
      displayName: ${var.awr_hub_display_name}
      objectStorageBucketName: ${oci_objectstorage_bucket.test_bucket.name}
      operationsInsightsWarehouseId: ${oci_opsi_operations_insights_warehouse.test_operations_insights_warehouse.id}
      #Optional
      definedTags:
        foo-namespace.bar-key: value
      freeformTags:
        bar-key: value

Create AwrHub Resource

new AwrHub(name: string, args: AwrHubArgs, opts?: CustomResourceOptions);
@overload
def AwrHub(resource_name: str,
           opts: Optional[ResourceOptions] = None,
           compartment_id: Optional[str] = None,
           defined_tags: Optional[Mapping[str, Any]] = None,
           display_name: Optional[str] = None,
           freeform_tags: Optional[Mapping[str, Any]] = None,
           object_storage_bucket_name: Optional[str] = None,
           operations_insights_warehouse_id: Optional[str] = None)
@overload
def AwrHub(resource_name: str,
           args: AwrHubArgs,
           opts: Optional[ResourceOptions] = None)
func NewAwrHub(ctx *Context, name string, args AwrHubArgs, opts ...ResourceOption) (*AwrHub, error)
public AwrHub(string name, AwrHubArgs args, CustomResourceOptions? opts = null)
public AwrHub(String name, AwrHubArgs args)
public AwrHub(String name, AwrHubArgs args, CustomResourceOptions options)
type: oci:Opsi:AwrHub
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

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

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

CompartmentId string

The OCID of the compartment.

DisplayName string

(Updatable) User-friedly name of AWR Hub that does not have to be unique.

ObjectStorageBucketName string

Object Storage Bucket Name

OperationsInsightsWarehouseId string

OPSI Warehouse OCID

DefinedTags Dictionary<string, object>

(Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}

FreeformTags Dictionary<string, object>

(Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}

CompartmentId string

The OCID of the compartment.

DisplayName string

(Updatable) User-friedly name of AWR Hub that does not have to be unique.

ObjectStorageBucketName string

Object Storage Bucket Name

OperationsInsightsWarehouseId string

OPSI Warehouse OCID

DefinedTags map[string]interface{}

(Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}

FreeformTags map[string]interface{}

(Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}

compartmentId String

The OCID of the compartment.

displayName String

(Updatable) User-friedly name of AWR Hub that does not have to be unique.

objectStorageBucketName String

Object Storage Bucket Name

operationsInsightsWarehouseId String

OPSI Warehouse OCID

definedTags Map<String,Object>

(Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}

freeformTags Map<String,Object>

(Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}

compartmentId string

The OCID of the compartment.

displayName string

(Updatable) User-friedly name of AWR Hub that does not have to be unique.

objectStorageBucketName string

Object Storage Bucket Name

operationsInsightsWarehouseId string

OPSI Warehouse OCID

definedTags {[key: string]: any}

(Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}

freeformTags {[key: string]: any}

(Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}

compartment_id str

The OCID of the compartment.

display_name str

(Updatable) User-friedly name of AWR Hub that does not have to be unique.

object_storage_bucket_name str

Object Storage Bucket Name

operations_insights_warehouse_id str

OPSI Warehouse OCID

defined_tags Mapping[str, Any]

(Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}

freeform_tags Mapping[str, Any]

(Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}

compartmentId String

The OCID of the compartment.

displayName String

(Updatable) User-friedly name of AWR Hub that does not have to be unique.

objectStorageBucketName String

Object Storage Bucket Name

operationsInsightsWarehouseId String

OPSI Warehouse OCID

definedTags Map<Any>

(Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}

freeformTags Map<Any>

(Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}

Outputs

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

AwrMailboxUrl string

Mailbox URL required for AWR hub and AWR source setup.

Id string

The provider-assigned unique ID for this managed resource.

LifecycleDetails string

A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state.

State string

Possible lifecycle states

SystemTags Dictionary<string, object>

System tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}

TimeCreated string

The time at which the resource was first created. An RFC3339 formatted datetime string

TimeUpdated string

The time at which the resource was last updated. An RFC3339 formatted datetime string

AwrMailboxUrl string

Mailbox URL required for AWR hub and AWR source setup.

Id string

The provider-assigned unique ID for this managed resource.

LifecycleDetails string

A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state.

State string

Possible lifecycle states

SystemTags map[string]interface{}

System tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}

TimeCreated string

The time at which the resource was first created. An RFC3339 formatted datetime string

TimeUpdated string

The time at which the resource was last updated. An RFC3339 formatted datetime string

awrMailboxUrl String

Mailbox URL required for AWR hub and AWR source setup.

id String

The provider-assigned unique ID for this managed resource.

lifecycleDetails String

A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state.

state String

Possible lifecycle states

systemTags Map<String,Object>

System tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}

timeCreated String

The time at which the resource was first created. An RFC3339 formatted datetime string

timeUpdated String

The time at which the resource was last updated. An RFC3339 formatted datetime string

awrMailboxUrl string

Mailbox URL required for AWR hub and AWR source setup.

id string

The provider-assigned unique ID for this managed resource.

lifecycleDetails string

A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state.

state string

Possible lifecycle states

systemTags {[key: string]: any}

System tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}

timeCreated string

The time at which the resource was first created. An RFC3339 formatted datetime string

timeUpdated string

The time at which the resource was last updated. An RFC3339 formatted datetime string

awr_mailbox_url str

Mailbox URL required for AWR hub and AWR source setup.

id str

The provider-assigned unique ID for this managed resource.

lifecycle_details str

A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state.

state str

Possible lifecycle states

system_tags Mapping[str, Any]

System tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}

time_created str

The time at which the resource was first created. An RFC3339 formatted datetime string

time_updated str

The time at which the resource was last updated. An RFC3339 formatted datetime string

awrMailboxUrl String

Mailbox URL required for AWR hub and AWR source setup.

id String

The provider-assigned unique ID for this managed resource.

lifecycleDetails String

A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state.

state String

Possible lifecycle states

systemTags Map<Any>

System tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}

timeCreated String

The time at which the resource was first created. An RFC3339 formatted datetime string

timeUpdated String

The time at which the resource was last updated. An RFC3339 formatted datetime string

Look up Existing AwrHub Resource

Get an existing AwrHub 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?: AwrHubState, opts?: CustomResourceOptions): AwrHub
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        awr_mailbox_url: Optional[str] = None,
        compartment_id: Optional[str] = None,
        defined_tags: Optional[Mapping[str, Any]] = None,
        display_name: Optional[str] = None,
        freeform_tags: Optional[Mapping[str, Any]] = None,
        lifecycle_details: Optional[str] = None,
        object_storage_bucket_name: Optional[str] = None,
        operations_insights_warehouse_id: Optional[str] = None,
        state: Optional[str] = None,
        system_tags: Optional[Mapping[str, Any]] = None,
        time_created: Optional[str] = None,
        time_updated: Optional[str] = None) -> AwrHub
func GetAwrHub(ctx *Context, name string, id IDInput, state *AwrHubState, opts ...ResourceOption) (*AwrHub, error)
public static AwrHub Get(string name, Input<string> id, AwrHubState? state, CustomResourceOptions? opts = null)
public static AwrHub get(String name, Output<String> id, AwrHubState 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:
AwrMailboxUrl string

Mailbox URL required for AWR hub and AWR source setup.

CompartmentId string

The OCID of the compartment.

DefinedTags Dictionary<string, object>

(Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}

DisplayName string

(Updatable) User-friedly name of AWR Hub that does not have to be unique.

FreeformTags Dictionary<string, object>

(Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}

LifecycleDetails string

A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state.

ObjectStorageBucketName string

Object Storage Bucket Name

OperationsInsightsWarehouseId string

OPSI Warehouse OCID

State string

Possible lifecycle states

SystemTags Dictionary<string, object>

System tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}

TimeCreated string

The time at which the resource was first created. An RFC3339 formatted datetime string

TimeUpdated string

The time at which the resource was last updated. An RFC3339 formatted datetime string

AwrMailboxUrl string

Mailbox URL required for AWR hub and AWR source setup.

CompartmentId string

The OCID of the compartment.

DefinedTags map[string]interface{}

(Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}

DisplayName string

(Updatable) User-friedly name of AWR Hub that does not have to be unique.

FreeformTags map[string]interface{}

(Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}

LifecycleDetails string

A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state.

ObjectStorageBucketName string

Object Storage Bucket Name

OperationsInsightsWarehouseId string

OPSI Warehouse OCID

State string

Possible lifecycle states

SystemTags map[string]interface{}

System tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}

TimeCreated string

The time at which the resource was first created. An RFC3339 formatted datetime string

TimeUpdated string

The time at which the resource was last updated. An RFC3339 formatted datetime string

awrMailboxUrl String

Mailbox URL required for AWR hub and AWR source setup.

compartmentId String

The OCID of the compartment.

definedTags Map<String,Object>

(Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}

displayName String

(Updatable) User-friedly name of AWR Hub that does not have to be unique.

freeformTags Map<String,Object>

(Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}

lifecycleDetails String

A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state.

objectStorageBucketName String

Object Storage Bucket Name

operationsInsightsWarehouseId String

OPSI Warehouse OCID

state String

Possible lifecycle states

systemTags Map<String,Object>

System tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}

timeCreated String

The time at which the resource was first created. An RFC3339 formatted datetime string

timeUpdated String

The time at which the resource was last updated. An RFC3339 formatted datetime string

awrMailboxUrl string

Mailbox URL required for AWR hub and AWR source setup.

compartmentId string

The OCID of the compartment.

definedTags {[key: string]: any}

(Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}

displayName string

(Updatable) User-friedly name of AWR Hub that does not have to be unique.

freeformTags {[key: string]: any}

(Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}

lifecycleDetails string

A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state.

objectStorageBucketName string

Object Storage Bucket Name

operationsInsightsWarehouseId string

OPSI Warehouse OCID

state string

Possible lifecycle states

systemTags {[key: string]: any}

System tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}

timeCreated string

The time at which the resource was first created. An RFC3339 formatted datetime string

timeUpdated string

The time at which the resource was last updated. An RFC3339 formatted datetime string

awr_mailbox_url str

Mailbox URL required for AWR hub and AWR source setup.

compartment_id str

The OCID of the compartment.

defined_tags Mapping[str, Any]

(Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}

display_name str

(Updatable) User-friedly name of AWR Hub that does not have to be unique.

freeform_tags Mapping[str, Any]

(Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}

lifecycle_details str

A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state.

object_storage_bucket_name str

Object Storage Bucket Name

operations_insights_warehouse_id str

OPSI Warehouse OCID

state str

Possible lifecycle states

system_tags Mapping[str, Any]

System tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}

time_created str

The time at which the resource was first created. An RFC3339 formatted datetime string

time_updated str

The time at which the resource was last updated. An RFC3339 formatted datetime string

awrMailboxUrl String

Mailbox URL required for AWR hub and AWR source setup.

compartmentId String

The OCID of the compartment.

definedTags Map<Any>

(Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}

displayName String

(Updatable) User-friedly name of AWR Hub that does not have to be unique.

freeformTags Map<Any>

(Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}

lifecycleDetails String

A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state.

objectStorageBucketName String

Object Storage Bucket Name

operationsInsightsWarehouseId String

OPSI Warehouse OCID

state String

Possible lifecycle states

systemTags Map<Any>

System tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}

timeCreated String

The time at which the resource was first created. An RFC3339 formatted datetime string

timeUpdated String

The time at which the resource was last updated. An RFC3339 formatted datetime string

Import

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

 $ pulumi import oci:Opsi/awrHub:AwrHub test_awr_hub "id"

Package Details

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

This Pulumi package is based on the oci Terraform Provider.