oci.DataSafe.CalculateAuditVolumeCollected
Explore with Pulumi AI
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:
- AuditProfile stringId 
- The OCID of the audit.
- TimeFrom stringMonth 
- The date from which the audit volume collected by data safe has to be calculated, in the format defined by RFC3339.
- TimeTo stringMonth 
- 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 
- AuditProfile stringId 
- The OCID of the audit.
- TimeFrom stringMonth 
- The date from which the audit volume collected by data safe has to be calculated, in the format defined by RFC3339.
- TimeTo stringMonth 
- 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 
- auditProfile StringId 
- The OCID of the audit.
- timeFrom StringMonth 
- The date from which the audit volume collected by data safe has to be calculated, in the format defined by RFC3339.
- timeTo StringMonth 
- 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 
- auditProfile stringId 
- The OCID of the audit.
- timeFrom stringMonth 
- The date from which the audit volume collected by data safe has to be calculated, in the format defined by RFC3339.
- timeTo stringMonth 
- 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_ strid 
- The OCID of the audit.
- time_from_ strmonth 
- The date from which the audit volume collected by data safe has to be calculated, in the format defined by RFC3339.
- time_to_ strmonth 
- 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 
- auditProfile StringId 
- The OCID of the audit.
- timeFrom StringMonth 
- The date from which the audit volume collected by data safe has to be calculated, in the format defined by RFC3339.
- timeTo StringMonth 
- 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:
- CollectedAudit List<CalculateVolumes Audit Volume Collected Collected Audit Volume> 
- List of collected audit volumes.
- Id string
- The provider-assigned unique ID for this managed resource.
- CollectedAudit []CalculateVolumes Audit Volume Collected Collected Audit Volume 
- List of collected audit volumes.
- Id string
- The provider-assigned unique ID for this managed resource.
- collectedAudit List<CalculateVolumes Audit Volume Collected Collected Audit Volume> 
- List of collected audit volumes.
- id String
- The provider-assigned unique ID for this managed resource.
- collectedAudit CalculateVolumes Audit Volume Collected Collected Audit Volume[] 
- List of collected audit volumes.
- id string
- The provider-assigned unique ID for this managed resource.
- collected_audit_ Sequence[Calculatevolumes Audit Volume Collected Collected Audit Volume] 
- List of collected audit volumes.
- id str
- The provider-assigned unique ID for this managed resource.
- collectedAudit List<Property Map>Volumes 
- 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[CalculateAuditVolumeCollectedCollectedAuditVolumeArgs]] = None,
        time_from_month: Optional[str] = None,
        time_to_month: Optional[str] = None) -> CalculateAuditVolumeCollectedfunc 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)resources:  _:    type: oci:DataSafe:CalculateAuditVolumeCollected    get:      id: ${id}- 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.
- AuditProfile stringId 
- The OCID of the audit.
- CollectedAudit List<CalculateVolumes Audit Volume Collected Collected Audit Volume> 
- List of collected audit volumes.
- TimeFrom stringMonth 
- The date from which the audit volume collected by data safe has to be calculated, in the format defined by RFC3339.
- TimeTo stringMonth 
- 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 
- AuditProfile stringId 
- The OCID of the audit.
- CollectedAudit []CalculateVolumes Audit Volume Collected Collected Audit Volume Args 
- List of collected audit volumes.
- TimeFrom stringMonth 
- The date from which the audit volume collected by data safe has to be calculated, in the format defined by RFC3339.
- TimeTo stringMonth 
- 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 
- auditProfile StringId 
- The OCID of the audit.
- collectedAudit List<CalculateVolumes Audit Volume Collected Collected Audit Volume> 
- List of collected audit volumes.
- timeFrom StringMonth 
- The date from which the audit volume collected by data safe has to be calculated, in the format defined by RFC3339.
- timeTo StringMonth 
- 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 
- auditProfile stringId 
- The OCID of the audit.
- collectedAudit CalculateVolumes Audit Volume Collected Collected Audit Volume[] 
- List of collected audit volumes.
- timeFrom stringMonth 
- The date from which the audit volume collected by data safe has to be calculated, in the format defined by RFC3339.
- timeTo stringMonth 
- 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_ strid 
- The OCID of the audit.
- collected_audit_ Sequence[Calculatevolumes Audit Volume Collected Collected Audit Volume Args] 
- List of collected audit volumes.
- time_from_ strmonth 
- The date from which the audit volume collected by data safe has to be calculated, in the format defined by RFC3339.
- time_to_ strmonth 
- 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 
- auditProfile StringId 
- The OCID of the audit.
- collectedAudit List<Property Map>Volumes 
- List of collected audit volumes.
- timeFrom StringMonth 
- The date from which the audit volume collected by data safe has to be calculated, in the format defined by RFC3339.
- timeTo StringMonth 
- 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
- AuditProfile stringId 
- The OCID of the audit.
- MonthIn stringConsideration 
- OnlineVolume string
- ArchivedVolume string
- AuditProfile stringId 
- The OCID of the audit.
- MonthIn stringConsideration 
- OnlineVolume string
- archivedVolume String
- auditProfile StringId 
- The OCID of the audit.
- monthIn StringConsideration 
- onlineVolume String
- archivedVolume string
- auditProfile stringId 
- The OCID of the audit.
- monthIn stringConsideration 
- onlineVolume string
- archived_volume str
- audit_profile_ strid 
- The OCID of the audit.
- month_in_ strconsideration 
- online_volume str
- archivedVolume String
- auditProfile StringId 
- The OCID of the audit.
- monthIn StringConsideration 
- 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 ociTerraform Provider.