1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. DataSafe
  5. CalculateAuditVolumeCollected
Oracle Cloud Infrastructure v2.17.0 published on Friday, Nov 15, 2024 by Pulumi

oci.DataSafe.CalculateAuditVolumeCollected

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v2.17.0 published on Friday, Nov 15, 2024 by Pulumi

    This resource provides the Calculate Audit Volume Collected resource in Oracle Cloud Infrastructure Data Safe service.

    Calculates the volume of audit events collected by data safe.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testCalculateAuditVolumeCollected = new oci.datasafe.CalculateAuditVolumeCollected("test_calculate_audit_volume_collected", {
        auditProfileId: testAuditProfile.id,
        timeFromMonth: calculateAuditVolumeCollectedTimeFromMonth,
        timeToMonth: calculateAuditVolumeCollectedTimeToMonth,
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_calculate_audit_volume_collected = oci.data_safe.CalculateAuditVolumeCollected("test_calculate_audit_volume_collected",
        audit_profile_id=test_audit_profile["id"],
        time_from_month=calculate_audit_volume_collected_time_from_month,
        time_to_month=calculate_audit_volume_collected_time_to_month)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-oci/sdk/v2/go/oci/DataSafe"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := DataSafe.NewCalculateAuditVolumeCollected(ctx, "test_calculate_audit_volume_collected", &DataSafe.CalculateAuditVolumeCollectedArgs{
    			AuditProfileId: pulumi.Any(testAuditProfile.Id),
    			TimeFromMonth:  pulumi.Any(calculateAuditVolumeCollectedTimeFromMonth),
    			TimeToMonth:    pulumi.Any(calculateAuditVolumeCollectedTimeToMonth),
    		})
    		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 testCalculateAuditVolumeCollected = new Oci.DataSafe.CalculateAuditVolumeCollected("test_calculate_audit_volume_collected", new()
        {
            AuditProfileId = testAuditProfile.Id,
            TimeFromMonth = calculateAuditVolumeCollectedTimeFromMonth,
            TimeToMonth = calculateAuditVolumeCollectedTimeToMonth,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.oci.DataSafe.CalculateAuditVolumeCollected;
    import com.pulumi.oci.DataSafe.CalculateAuditVolumeCollectedArgs;
    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 testCalculateAuditVolumeCollected = new CalculateAuditVolumeCollected("testCalculateAuditVolumeCollected", CalculateAuditVolumeCollectedArgs.builder()
                .auditProfileId(testAuditProfile.id())
                .timeFromMonth(calculateAuditVolumeCollectedTimeFromMonth)
                .timeToMonth(calculateAuditVolumeCollectedTimeToMonth)
                .build());
    
        }
    }
    
    resources:
      testCalculateAuditVolumeCollected:
        type: oci:DataSafe:CalculateAuditVolumeCollected
        name: test_calculate_audit_volume_collected
        properties:
          auditProfileId: ${testAuditProfile.id}
          timeFromMonth: ${calculateAuditVolumeCollectedTimeFromMonth}
          timeToMonth: ${calculateAuditVolumeCollectedTimeToMonth}
    

    Create CalculateAuditVolumeCollected Resource

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

    Constructor syntax

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

    Constructor example

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

    var calculateAuditVolumeCollectedResource = new Oci.DataSafe.CalculateAuditVolumeCollected("calculateAuditVolumeCollectedResource", new()
    {
        AuditProfileId = "string",
        TimeFromMonth = "string",
        TimeToMonth = "string",
    });
    
    example, err := DataSafe.NewCalculateAuditVolumeCollected(ctx, "calculateAuditVolumeCollectedResource", &DataSafe.CalculateAuditVolumeCollectedArgs{
    	AuditProfileId: pulumi.String("string"),
    	TimeFromMonth:  pulumi.String("string"),
    	TimeToMonth:    pulumi.String("string"),
    })
    
    var calculateAuditVolumeCollectedResource = new CalculateAuditVolumeCollected("calculateAuditVolumeCollectedResource", CalculateAuditVolumeCollectedArgs.builder()
        .auditProfileId("string")
        .timeFromMonth("string")
        .timeToMonth("string")
        .build());
    
    calculate_audit_volume_collected_resource = oci.data_safe.CalculateAuditVolumeCollected("calculateAuditVolumeCollectedResource",
        audit_profile_id="string",
        time_from_month="string",
        time_to_month="string")
    
    const calculateAuditVolumeCollectedResource = new oci.datasafe.CalculateAuditVolumeCollected("calculateAuditVolumeCollectedResource", {
        auditProfileId: "string",
        timeFromMonth: "string",
        timeToMonth: "string",
    });
    
    type: oci:DataSafe:CalculateAuditVolumeCollected
    properties:
        auditProfileId: string
        timeFromMonth: string
        timeToMonth: string
    

    CalculateAuditVolumeCollected Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The CalculateAuditVolumeCollected resource accepts the following input properties:

    AuditProfileId string
    The OCID of the audit.
    TimeFromMonth string
    The date from which the audit volume collected by data safe has to be calculated, in the format defined by RFC3339.
    TimeToMonth string

    The date from which the audit volume collected by data safe has to be calculated, in the format defined by RFC3339. If not specified, this will default to the current date.

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

    AuditProfileId string
    The OCID of the audit.
    TimeFromMonth string
    The date from which the audit volume collected by data safe has to be calculated, in the format defined by RFC3339.
    TimeToMonth string

    The date from which the audit volume collected by data safe has to be calculated, in the format defined by RFC3339. If not specified, this will default to the current date.

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

    auditProfileId String
    The OCID of the audit.
    timeFromMonth String
    The date from which the audit volume collected by data safe has to be calculated, in the format defined by RFC3339.
    timeToMonth String

    The date from which the audit volume collected by data safe has to be calculated, in the format defined by RFC3339. If not specified, this will default to the current date.

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

    auditProfileId string
    The OCID of the audit.
    timeFromMonth string
    The date from which the audit volume collected by data safe has to be calculated, in the format defined by RFC3339.
    timeToMonth string

    The date from which the audit volume collected by data safe has to be calculated, in the format defined by RFC3339. If not specified, this will default to the current date.

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

    audit_profile_id str
    The OCID of the audit.
    time_from_month str
    The date from which the audit volume collected by data safe has to be calculated, in the format defined by RFC3339.
    time_to_month str

    The date from which the audit volume collected by data safe has to be calculated, in the format defined by RFC3339. If not specified, this will default to the current date.

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

    auditProfileId String
    The OCID of the audit.
    timeFromMonth String
    The date from which the audit volume collected by data safe has to be calculated, in the format defined by RFC3339.
    timeToMonth String

    The date from which the audit volume collected by data safe has to be calculated, in the format defined by RFC3339. If not specified, this will default to the current date.

    ** 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 CalculateAuditVolumeCollected resource produces the following output properties:

    CollectedAuditVolumes List<CalculateAuditVolumeCollectedCollectedAuditVolume>
    List of collected audit volumes.
    Id string
    The provider-assigned unique ID for this managed resource.
    CollectedAuditVolumes []CalculateAuditVolumeCollectedCollectedAuditVolume
    List of collected audit volumes.
    Id string
    The provider-assigned unique ID for this managed resource.
    collectedAuditVolumes List<CalculateAuditVolumeCollectedCollectedAuditVolume>
    List of collected audit volumes.
    id String
    The provider-assigned unique ID for this managed resource.
    collectedAuditVolumes CalculateAuditVolumeCollectedCollectedAuditVolume[]
    List of collected audit volumes.
    id string
    The provider-assigned unique ID for this managed resource.
    collected_audit_volumes Sequence[datasafe.CalculateAuditVolumeCollectedCollectedAuditVolume]
    List of collected audit volumes.
    id str
    The provider-assigned unique ID for this managed resource.
    collectedAuditVolumes List<Property Map>
    List of collected audit volumes.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing CalculateAuditVolumeCollected Resource

    Get an existing CalculateAuditVolumeCollected 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?: CalculateAuditVolumeCollectedState, opts?: CustomResourceOptions): CalculateAuditVolumeCollected
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            audit_profile_id: Optional[str] = None,
            collected_audit_volumes: Optional[Sequence[_datasafe.CalculateAuditVolumeCollectedCollectedAuditVolumeArgs]] = None,
            time_from_month: Optional[str] = None,
            time_to_month: Optional[str] = None) -> CalculateAuditVolumeCollected
    func GetCalculateAuditVolumeCollected(ctx *Context, name string, id IDInput, state *CalculateAuditVolumeCollectedState, opts ...ResourceOption) (*CalculateAuditVolumeCollected, error)
    public static CalculateAuditVolumeCollected Get(string name, Input<string> id, CalculateAuditVolumeCollectedState? state, CustomResourceOptions? opts = null)
    public static CalculateAuditVolumeCollected get(String name, Output<String> id, CalculateAuditVolumeCollectedState 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:
    AuditProfileId string
    The OCID of the audit.
    CollectedAuditVolumes List<CalculateAuditVolumeCollectedCollectedAuditVolume>
    List of collected audit volumes.
    TimeFromMonth string
    The date from which the audit volume collected by data safe has to be calculated, in the format defined by RFC3339.
    TimeToMonth string

    The date from which the audit volume collected by data safe has to be calculated, in the format defined by RFC3339. If not specified, this will default to the current date.

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

    AuditProfileId string
    The OCID of the audit.
    CollectedAuditVolumes []CalculateAuditVolumeCollectedCollectedAuditVolumeArgs
    List of collected audit volumes.
    TimeFromMonth string
    The date from which the audit volume collected by data safe has to be calculated, in the format defined by RFC3339.
    TimeToMonth string

    The date from which the audit volume collected by data safe has to be calculated, in the format defined by RFC3339. If not specified, this will default to the current date.

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

    auditProfileId String
    The OCID of the audit.
    collectedAuditVolumes List<CalculateAuditVolumeCollectedCollectedAuditVolume>
    List of collected audit volumes.
    timeFromMonth String
    The date from which the audit volume collected by data safe has to be calculated, in the format defined by RFC3339.
    timeToMonth String

    The date from which the audit volume collected by data safe has to be calculated, in the format defined by RFC3339. If not specified, this will default to the current date.

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

    auditProfileId string
    The OCID of the audit.
    collectedAuditVolumes CalculateAuditVolumeCollectedCollectedAuditVolume[]
    List of collected audit volumes.
    timeFromMonth string
    The date from which the audit volume collected by data safe has to be calculated, in the format defined by RFC3339.
    timeToMonth string

    The date from which the audit volume collected by data safe has to be calculated, in the format defined by RFC3339. If not specified, this will default to the current date.

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

    audit_profile_id str
    The OCID of the audit.
    collected_audit_volumes Sequence[datasafe.CalculateAuditVolumeCollectedCollectedAuditVolumeArgs]
    List of collected audit volumes.
    time_from_month str
    The date from which the audit volume collected by data safe has to be calculated, in the format defined by RFC3339.
    time_to_month str

    The date from which the audit volume collected by data safe has to be calculated, in the format defined by RFC3339. If not specified, this will default to the current date.

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

    auditProfileId String
    The OCID of the audit.
    collectedAuditVolumes List<Property Map>
    List of collected audit volumes.
    timeFromMonth String
    The date from which the audit volume collected by data safe has to be calculated, in the format defined by RFC3339.
    timeToMonth String

    The date from which the audit volume collected by data safe has to be calculated, in the format defined by RFC3339. If not specified, this will default to the current date.

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

    Supporting Types

    CalculateAuditVolumeCollectedCollectedAuditVolume, CalculateAuditVolumeCollectedCollectedAuditVolumeArgs

    ArchivedVolume string
    AuditProfileId string
    The OCID of the audit.
    MonthInConsideration string
    OnlineVolume string
    ArchivedVolume string
    AuditProfileId string
    The OCID of the audit.
    MonthInConsideration string
    OnlineVolume string
    archivedVolume String
    auditProfileId String
    The OCID of the audit.
    monthInConsideration String
    onlineVolume String
    archivedVolume string
    auditProfileId string
    The OCID of the audit.
    monthInConsideration string
    onlineVolume string
    archivedVolume String
    auditProfileId String
    The OCID of the audit.
    monthInConsideration String
    onlineVolume String

    Import

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

    $ pulumi import oci:DataSafe/calculateAuditVolumeCollected:CalculateAuditVolumeCollected test_calculate_audit_volume_collected "id"
    

    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 v2.17.0 published on Friday, Nov 15, 2024 by Pulumi