1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. Opsi
  5. AwrHubSourceAwrhubsourcesManagement
Oracle Cloud Infrastructure v1.32.0 published on Thursday, Apr 18, 2024 by Pulumi

oci.Opsi.AwrHubSourceAwrhubsourcesManagement

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v1.32.0 published on Thursday, Apr 18, 2024 by Pulumi

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

    Enables a Awr Hub source database in Operations Insights. This will resume the Awr data flow for the given Awr Hub source if it was stopped earlier.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testAwrHubSourceAwrhubsourcesManagement = new oci.opsi.AwrHubSourceAwrhubsourcesManagement("testAwrHubSourceAwrhubsourcesManagement", {
        awrHubSourceId: oci_opsi_awr_hub_source.test_awr_hub_source.id,
        enableAwrhubsource: _var.enable_awrhubsource,
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_awr_hub_source_awrhubsources_management = oci.opsi.AwrHubSourceAwrhubsourcesManagement("testAwrHubSourceAwrhubsourcesManagement",
        awr_hub_source_id=oci_opsi_awr_hub_source["test_awr_hub_source"]["id"],
        enable_awrhubsource=var["enable_awrhubsource"])
    
    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.NewAwrHubSourceAwrhubsourcesManagement(ctx, "testAwrHubSourceAwrhubsourcesManagement", &Opsi.AwrHubSourceAwrhubsourcesManagementArgs{
    			AwrHubSourceId:     pulumi.Any(oci_opsi_awr_hub_source.Test_awr_hub_source.Id),
    			EnableAwrhubsource: pulumi.Any(_var.Enable_awrhubsource),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Oci = Pulumi.Oci;
    
    return await Deployment.RunAsync(() => 
    {
        var testAwrHubSourceAwrhubsourcesManagement = new Oci.Opsi.AwrHubSourceAwrhubsourcesManagement("testAwrHubSourceAwrhubsourcesManagement", new()
        {
            AwrHubSourceId = oci_opsi_awr_hub_source.Test_awr_hub_source.Id,
            EnableAwrhubsource = @var.Enable_awrhubsource,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.oci.Opsi.AwrHubSourceAwrhubsourcesManagement;
    import com.pulumi.oci.Opsi.AwrHubSourceAwrhubsourcesManagementArgs;
    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 testAwrHubSourceAwrhubsourcesManagement = new AwrHubSourceAwrhubsourcesManagement("testAwrHubSourceAwrhubsourcesManagement", AwrHubSourceAwrhubsourcesManagementArgs.builder()        
                .awrHubSourceId(oci_opsi_awr_hub_source.test_awr_hub_source().id())
                .enableAwrhubsource(var_.enable_awrhubsource())
                .build());
    
        }
    }
    
    resources:
      testAwrHubSourceAwrhubsourcesManagement:
        type: oci:Opsi:AwrHubSourceAwrhubsourcesManagement
        properties:
          #Required
          awrHubSourceId: ${oci_opsi_awr_hub_source.test_awr_hub_source.id}
          enableAwrhubsource: ${var.enable_awrhubsource}
    

    Create AwrHubSourceAwrhubsourcesManagement Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new AwrHubSourceAwrhubsourcesManagement(name: string, args: AwrHubSourceAwrhubsourcesManagementArgs, opts?: CustomResourceOptions);
    @overload
    def AwrHubSourceAwrhubsourcesManagement(resource_name: str,
                                            args: AwrHubSourceAwrhubsourcesManagementArgs,
                                            opts: Optional[ResourceOptions] = None)
    
    @overload
    def AwrHubSourceAwrhubsourcesManagement(resource_name: str,
                                            opts: Optional[ResourceOptions] = None,
                                            awr_hub_source_id: Optional[str] = None,
                                            enable_awrhubsource: Optional[bool] = None)
    func NewAwrHubSourceAwrhubsourcesManagement(ctx *Context, name string, args AwrHubSourceAwrhubsourcesManagementArgs, opts ...ResourceOption) (*AwrHubSourceAwrhubsourcesManagement, error)
    public AwrHubSourceAwrhubsourcesManagement(string name, AwrHubSourceAwrhubsourcesManagementArgs args, CustomResourceOptions? opts = null)
    public AwrHubSourceAwrhubsourcesManagement(String name, AwrHubSourceAwrhubsourcesManagementArgs args)
    public AwrHubSourceAwrhubsourcesManagement(String name, AwrHubSourceAwrhubsourcesManagementArgs args, CustomResourceOptions options)
    
    type: oci:Opsi:AwrHubSourceAwrhubsourcesManagement
    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 AwrHubSourceAwrhubsourcesManagementArgs
    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 AwrHubSourceAwrhubsourcesManagementArgs
    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 AwrHubSourceAwrhubsourcesManagementArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args AwrHubSourceAwrhubsourcesManagementArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args AwrHubSourceAwrhubsourcesManagementArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Example

    The following reference example uses placeholder values for all input properties.

    var awrHubSourceAwrhubsourcesManagementResource = new Oci.Opsi.AwrHubSourceAwrhubsourcesManagement("awrHubSourceAwrhubsourcesManagementResource", new()
    {
        AwrHubSourceId = "string",
        EnableAwrhubsource = false,
    });
    
    example, err := Opsi.NewAwrHubSourceAwrhubsourcesManagement(ctx, "awrHubSourceAwrhubsourcesManagementResource", &Opsi.AwrHubSourceAwrhubsourcesManagementArgs{
    	AwrHubSourceId:     pulumi.String("string"),
    	EnableAwrhubsource: pulumi.Bool(false),
    })
    
    var awrHubSourceAwrhubsourcesManagementResource = new AwrHubSourceAwrhubsourcesManagement("awrHubSourceAwrhubsourcesManagementResource", AwrHubSourceAwrhubsourcesManagementArgs.builder()        
        .awrHubSourceId("string")
        .enableAwrhubsource(false)
        .build());
    
    awr_hub_source_awrhubsources_management_resource = oci.opsi.AwrHubSourceAwrhubsourcesManagement("awrHubSourceAwrhubsourcesManagementResource",
        awr_hub_source_id="string",
        enable_awrhubsource=False)
    
    const awrHubSourceAwrhubsourcesManagementResource = new oci.opsi.AwrHubSourceAwrhubsourcesManagement("awrHubSourceAwrhubsourcesManagementResource", {
        awrHubSourceId: "string",
        enableAwrhubsource: false,
    });
    
    type: oci:Opsi:AwrHubSourceAwrhubsourcesManagement
    properties:
        awrHubSourceId: string
        enableAwrhubsource: false
    

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

    AwrHubSourceId string
    Unique Awr Hub Source identifier
    EnableAwrhubsource bool

    (Updatable) A required field when set to true calls enable action and when set to false calls disable action.

    ** 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

    AwrHubSourceId string
    Unique Awr Hub Source identifier
    EnableAwrhubsource bool

    (Updatable) A required field when set to true calls enable action and when set to false calls disable action.

    ** 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

    awrHubSourceId String
    Unique Awr Hub Source identifier
    enableAwrhubsource Boolean

    (Updatable) A required field when set to true calls enable action and when set to false calls disable action.

    ** 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

    awrHubSourceId string
    Unique Awr Hub Source identifier
    enableAwrhubsource boolean

    (Updatable) A required field when set to true calls enable action and when set to false calls disable action.

    ** 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

    awr_hub_source_id str
    Unique Awr Hub Source identifier
    enable_awrhubsource bool

    (Updatable) A required field when set to true calls enable action and when set to false calls disable action.

    ** 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

    awrHubSourceId String
    Unique Awr Hub Source identifier
    enableAwrhubsource Boolean

    (Updatable) A required field when set to true calls enable action and when set to false calls disable action.

    ** 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 AwrHubSourceAwrhubsourcesManagement 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 AwrHubSourceAwrhubsourcesManagement Resource

    Get an existing AwrHubSourceAwrhubsourcesManagement 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?: AwrHubSourceAwrhubsourcesManagementState, opts?: CustomResourceOptions): AwrHubSourceAwrhubsourcesManagement
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            awr_hub_source_id: Optional[str] = None,
            enable_awrhubsource: Optional[bool] = None) -> AwrHubSourceAwrhubsourcesManagement
    func GetAwrHubSourceAwrhubsourcesManagement(ctx *Context, name string, id IDInput, state *AwrHubSourceAwrhubsourcesManagementState, opts ...ResourceOption) (*AwrHubSourceAwrhubsourcesManagement, error)
    public static AwrHubSourceAwrhubsourcesManagement Get(string name, Input<string> id, AwrHubSourceAwrhubsourcesManagementState? state, CustomResourceOptions? opts = null)
    public static AwrHubSourceAwrhubsourcesManagement get(String name, Output<String> id, AwrHubSourceAwrhubsourcesManagementState 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:
    AwrHubSourceId string
    Unique Awr Hub Source identifier
    EnableAwrhubsource bool

    (Updatable) A required field when set to true calls enable action and when set to false calls disable action.

    ** 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

    AwrHubSourceId string
    Unique Awr Hub Source identifier
    EnableAwrhubsource bool

    (Updatable) A required field when set to true calls enable action and when set to false calls disable action.

    ** 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

    awrHubSourceId String
    Unique Awr Hub Source identifier
    enableAwrhubsource Boolean

    (Updatable) A required field when set to true calls enable action and when set to false calls disable action.

    ** 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

    awrHubSourceId string
    Unique Awr Hub Source identifier
    enableAwrhubsource boolean

    (Updatable) A required field when set to true calls enable action and when set to false calls disable action.

    ** 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

    awr_hub_source_id str
    Unique Awr Hub Source identifier
    enable_awrhubsource bool

    (Updatable) A required field when set to true calls enable action and when set to false calls disable action.

    ** 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

    awrHubSourceId String
    Unique Awr Hub Source identifier
    enableAwrhubsource Boolean

    (Updatable) A required field when set to true calls enable action and when set to false calls disable action.

    ** 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

    Package Details

    Repository
    oci pulumi/pulumi-oci
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the oci Terraform Provider.
    oci logo
    Oracle Cloud Infrastructure v1.32.0 published on Thursday, Apr 18, 2024 by Pulumi