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

oci.CloudGuard.CloudGuardConfiguration

Explore with Pulumi AI

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

    This resource provides the Cloud Guard Configuration resource in Oracle Cloud Infrastructure Cloud Guard service.

    Update configuration details for a Cloud Guard tenancy, identified by root compartment OCID. The reporting region cannot be updated once created.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testCloudGuardConfiguration = new oci.cloudguard.CloudGuardConfiguration("testCloudGuardConfiguration", {
        compartmentId: _var.compartment_id,
        reportingRegion: _var.cloud_guard_configuration_reporting_region,
        status: _var.cloud_guard_configuration_status,
        selfManageResources: _var.cloud_guard_configuration_self_manage_resources,
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_cloud_guard_configuration = oci.cloud_guard.CloudGuardConfiguration("testCloudGuardConfiguration",
        compartment_id=var["compartment_id"],
        reporting_region=var["cloud_guard_configuration_reporting_region"],
        status=var["cloud_guard_configuration_status"],
        self_manage_resources=var["cloud_guard_configuration_self_manage_resources"])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-oci/sdk/go/oci/CloudGuard"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := CloudGuard.NewCloudGuardConfiguration(ctx, "testCloudGuardConfiguration", &CloudGuard.CloudGuardConfigurationArgs{
    			CompartmentId:       pulumi.Any(_var.Compartment_id),
    			ReportingRegion:     pulumi.Any(_var.Cloud_guard_configuration_reporting_region),
    			Status:              pulumi.Any(_var.Cloud_guard_configuration_status),
    			SelfManageResources: pulumi.Any(_var.Cloud_guard_configuration_self_manage_resources),
    		})
    		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 testCloudGuardConfiguration = new Oci.CloudGuard.CloudGuardConfiguration("testCloudGuardConfiguration", new()
        {
            CompartmentId = @var.Compartment_id,
            ReportingRegion = @var.Cloud_guard_configuration_reporting_region,
            Status = @var.Cloud_guard_configuration_status,
            SelfManageResources = @var.Cloud_guard_configuration_self_manage_resources,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.oci.CloudGuard.CloudGuardConfiguration;
    import com.pulumi.oci.CloudGuard.CloudGuardConfigurationArgs;
    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 testCloudGuardConfiguration = new CloudGuardConfiguration("testCloudGuardConfiguration", CloudGuardConfigurationArgs.builder()        
                .compartmentId(var_.compartment_id())
                .reportingRegion(var_.cloud_guard_configuration_reporting_region())
                .status(var_.cloud_guard_configuration_status())
                .selfManageResources(var_.cloud_guard_configuration_self_manage_resources())
                .build());
    
        }
    }
    
    resources:
      testCloudGuardConfiguration:
        type: oci:CloudGuard:CloudGuardConfiguration
        properties:
          #Required
          compartmentId: ${var.compartment_id}
          reportingRegion: ${var.cloud_guard_configuration_reporting_region}
          status: ${var.cloud_guard_configuration_status}
          #Optional
          selfManageResources: ${var.cloud_guard_configuration_self_manage_resources}
    

    Create CloudGuardConfiguration Resource

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

    Constructor syntax

    new CloudGuardConfiguration(name: string, args: CloudGuardConfigurationArgs, opts?: CustomResourceOptions);
    @overload
    def CloudGuardConfiguration(resource_name: str,
                                args: CloudGuardConfigurationArgs,
                                opts: Optional[ResourceOptions] = None)
    
    @overload
    def CloudGuardConfiguration(resource_name: str,
                                opts: Optional[ResourceOptions] = None,
                                compartment_id: Optional[str] = None,
                                reporting_region: Optional[str] = None,
                                status: Optional[str] = None,
                                self_manage_resources: Optional[bool] = None)
    func NewCloudGuardConfiguration(ctx *Context, name string, args CloudGuardConfigurationArgs, opts ...ResourceOption) (*CloudGuardConfiguration, error)
    public CloudGuardConfiguration(string name, CloudGuardConfigurationArgs args, CustomResourceOptions? opts = null)
    public CloudGuardConfiguration(String name, CloudGuardConfigurationArgs args)
    public CloudGuardConfiguration(String name, CloudGuardConfigurationArgs args, CustomResourceOptions options)
    
    type: oci:CloudGuard:CloudGuardConfiguration
    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 CloudGuardConfigurationArgs
    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 CloudGuardConfigurationArgs
    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 CloudGuardConfigurationArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args CloudGuardConfigurationArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args CloudGuardConfigurationArgs
    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 cloudGuardConfigurationResource = new Oci.CloudGuard.CloudGuardConfiguration("cloudGuardConfigurationResource", new()
    {
        CompartmentId = "string",
        ReportingRegion = "string",
        Status = "string",
        SelfManageResources = false,
    });
    
    example, err := CloudGuard.NewCloudGuardConfiguration(ctx, "cloudGuardConfigurationResource", &CloudGuard.CloudGuardConfigurationArgs{
    	CompartmentId:       pulumi.String("string"),
    	ReportingRegion:     pulumi.String("string"),
    	Status:              pulumi.String("string"),
    	SelfManageResources: pulumi.Bool(false),
    })
    
    var cloudGuardConfigurationResource = new CloudGuardConfiguration("cloudGuardConfigurationResource", CloudGuardConfigurationArgs.builder()        
        .compartmentId("string")
        .reportingRegion("string")
        .status("string")
        .selfManageResources(false)
        .build());
    
    cloud_guard_configuration_resource = oci.cloud_guard.CloudGuardConfiguration("cloudGuardConfigurationResource",
        compartment_id="string",
        reporting_region="string",
        status="string",
        self_manage_resources=False)
    
    const cloudGuardConfigurationResource = new oci.cloudguard.CloudGuardConfiguration("cloudGuardConfigurationResource", {
        compartmentId: "string",
        reportingRegion: "string",
        status: "string",
        selfManageResources: false,
    });
    
    type: oci:CloudGuard:CloudGuardConfiguration
    properties:
        compartmentId: string
        reportingRegion: string
        selfManageResources: false
        status: string
    

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

    CompartmentId string
    (Updatable) The ID of the compartment in which to list resources.
    ReportingRegion string
    (Updatable) The reporting region value
    Status string

    (Updatable) Status of Cloud Guard Tenant

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

    SelfManageResources bool
    (Updatable) Identifies if Oracle managed resources will be created by customers. If no value is specified false is the default.
    CompartmentId string
    (Updatable) The ID of the compartment in which to list resources.
    ReportingRegion string
    (Updatable) The reporting region value
    Status string

    (Updatable) Status of Cloud Guard Tenant

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

    SelfManageResources bool
    (Updatable) Identifies if Oracle managed resources will be created by customers. If no value is specified false is the default.
    compartmentId String
    (Updatable) The ID of the compartment in which to list resources.
    reportingRegion String
    (Updatable) The reporting region value
    status String

    (Updatable) Status of Cloud Guard Tenant

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

    selfManageResources Boolean
    (Updatable) Identifies if Oracle managed resources will be created by customers. If no value is specified false is the default.
    compartmentId string
    (Updatable) The ID of the compartment in which to list resources.
    reportingRegion string
    (Updatable) The reporting region value
    status string

    (Updatable) Status of Cloud Guard Tenant

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

    selfManageResources boolean
    (Updatable) Identifies if Oracle managed resources will be created by customers. If no value is specified false is the default.
    compartment_id str
    (Updatable) The ID of the compartment in which to list resources.
    reporting_region str
    (Updatable) The reporting region value
    status str

    (Updatable) Status of Cloud Guard Tenant

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

    self_manage_resources bool
    (Updatable) Identifies if Oracle managed resources will be created by customers. If no value is specified false is the default.
    compartmentId String
    (Updatable) The ID of the compartment in which to list resources.
    reportingRegion String
    (Updatable) The reporting region value
    status String

    (Updatable) Status of Cloud Guard Tenant

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

    selfManageResources Boolean
    (Updatable) Identifies if Oracle managed resources will be created by customers. If no value is specified false is the default.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the CloudGuardConfiguration 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 CloudGuardConfiguration Resource

    Get an existing CloudGuardConfiguration 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?: CloudGuardConfigurationState, opts?: CustomResourceOptions): CloudGuardConfiguration
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            compartment_id: Optional[str] = None,
            reporting_region: Optional[str] = None,
            self_manage_resources: Optional[bool] = None,
            status: Optional[str] = None) -> CloudGuardConfiguration
    func GetCloudGuardConfiguration(ctx *Context, name string, id IDInput, state *CloudGuardConfigurationState, opts ...ResourceOption) (*CloudGuardConfiguration, error)
    public static CloudGuardConfiguration Get(string name, Input<string> id, CloudGuardConfigurationState? state, CustomResourceOptions? opts = null)
    public static CloudGuardConfiguration get(String name, Output<String> id, CloudGuardConfigurationState 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:
    CompartmentId string
    (Updatable) The ID of the compartment in which to list resources.
    ReportingRegion string
    (Updatable) The reporting region value
    SelfManageResources bool
    (Updatable) Identifies if Oracle managed resources will be created by customers. If no value is specified false is the default.
    Status string

    (Updatable) Status of Cloud Guard Tenant

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

    CompartmentId string
    (Updatable) The ID of the compartment in which to list resources.
    ReportingRegion string
    (Updatable) The reporting region value
    SelfManageResources bool
    (Updatable) Identifies if Oracle managed resources will be created by customers. If no value is specified false is the default.
    Status string

    (Updatable) Status of Cloud Guard Tenant

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

    compartmentId String
    (Updatable) The ID of the compartment in which to list resources.
    reportingRegion String
    (Updatable) The reporting region value
    selfManageResources Boolean
    (Updatable) Identifies if Oracle managed resources will be created by customers. If no value is specified false is the default.
    status String

    (Updatable) Status of Cloud Guard Tenant

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

    compartmentId string
    (Updatable) The ID of the compartment in which to list resources.
    reportingRegion string
    (Updatable) The reporting region value
    selfManageResources boolean
    (Updatable) Identifies if Oracle managed resources will be created by customers. If no value is specified false is the default.
    status string

    (Updatable) Status of Cloud Guard Tenant

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

    compartment_id str
    (Updatable) The ID of the compartment in which to list resources.
    reporting_region str
    (Updatable) The reporting region value
    self_manage_resources bool
    (Updatable) Identifies if Oracle managed resources will be created by customers. If no value is specified false is the default.
    status str

    (Updatable) Status of Cloud Guard Tenant

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

    compartmentId String
    (Updatable) The ID of the compartment in which to list resources.
    reportingRegion String
    (Updatable) The reporting region value
    selfManageResources Boolean
    (Updatable) Identifies if Oracle managed resources will be created by customers. If no value is specified false is the default.
    status String

    (Updatable) Status of Cloud Guard Tenant

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

    Import

    Import is not supported for this resource.

    To learn more about importing existing cloud resources, see Importing resources.

    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