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:
- Audit
Profile stringId - The OCID of the audit.
- Time
From stringMonth - The date from which the audit volume collected by data safe has to be calculated, in the format defined by RFC3339.
- Time
To 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 stringId - The OCID of the audit.
- Time
From stringMonth - The date from which the audit volume collected by data safe has to be calculated, in the format defined by RFC3339.
- Time
To 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 StringId - The OCID of the audit.
- time
From StringMonth - The date from which the audit volume collected by data safe has to be calculated, in the format defined by RFC3339.
- time
To 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 stringId - The OCID of the audit.
- time
From stringMonth - The date from which the audit volume collected by data safe has to be calculated, in the format defined by RFC3339.
- time
To 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
- audit
Profile StringId - The OCID of the audit.
- time
From StringMonth - The date from which the audit volume collected by data safe has to be calculated, in the format defined by RFC3339.
- time
To 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:
- Collected
Audit List<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 []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 List<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 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[datasafe.volumes Calculate Audit Volume Collected Collected Audit Volume] - List of collected audit volumes.
- id str
- The provider-assigned unique ID for this managed resource.
- collected
Audit 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[_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.
- Audit
Profile stringId - The OCID of the audit.
- Collected
Audit List<CalculateVolumes Audit Volume Collected Collected Audit Volume> - List of collected audit volumes.
- Time
From stringMonth - The date from which the audit volume collected by data safe has to be calculated, in the format defined by RFC3339.
- Time
To 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 stringId - The OCID of the audit.
- Collected
Audit []CalculateVolumes Audit Volume Collected Collected Audit Volume Args - List of collected audit volumes.
- Time
From stringMonth - The date from which the audit volume collected by data safe has to be calculated, in the format defined by RFC3339.
- Time
To 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 StringId - The OCID of the audit.
- collected
Audit List<CalculateVolumes Audit Volume Collected Collected Audit Volume> - List of collected audit volumes.
- time
From StringMonth - The date from which the audit volume collected by data safe has to be calculated, in the format defined by RFC3339.
- time
To 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 stringId - The OCID of the audit.
- collected
Audit CalculateVolumes Audit Volume Collected Collected Audit Volume[] - List of collected audit volumes.
- time
From stringMonth - The date from which the audit volume collected by data safe has to be calculated, in the format defined by RFC3339.
- time
To 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[datasafe.volumes Calculate 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
- audit
Profile StringId - The OCID of the audit.
- collected
Audit List<Property Map>Volumes - List of collected audit volumes.
- time
From StringMonth - The date from which the audit volume collected by data safe has to be calculated, in the format defined by RFC3339.
- time
To 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
- Archived
Volume string - Audit
Profile stringId - The OCID of the audit.
- Month
In stringConsideration - Online
Volume string
- Archived
Volume string - Audit
Profile stringId - The OCID of the audit.
- Month
In stringConsideration - Online
Volume string
- archived
Volume String - audit
Profile StringId - The OCID of the audit.
- month
In StringConsideration - online
Volume String
- archived
Volume string - audit
Profile stringId - The OCID of the audit.
- month
In stringConsideration - online
Volume string
- archived_
volume str - audit_
profile_ strid - The OCID of the audit.
- month_
in_ strconsideration - online_
volume str
- archived
Volume String - audit
Profile StringId - The OCID of the audit.
- month
In StringConsideration - online
Volume 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.