oci.DataSafe.CalculateAuditVolumeAvailable
Explore with Pulumi AI
This resource provides the Calculate Audit Volume Available resource in Oracle Cloud Infrastructure Data Safe service.
Calculates the volume of audit events available on the target database to be collected. Measurable up to the defined retention period of the audit target resource.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testCalculateAuditVolumeAvailable = new oci.datasafe.CalculateAuditVolumeAvailable("test_calculate_audit_volume_available", {
auditProfileId: testAuditProfile.id,
auditCollectionStartTime: calculateAuditVolumeAvailableAuditCollectionStartTime,
databaseUniqueName: calculateAuditVolumeAvailableDatabaseUniqueName,
trailLocations: calculateAuditVolumeAvailableTrailLocations,
});
import pulumi
import pulumi_oci as oci
test_calculate_audit_volume_available = oci.data_safe.CalculateAuditVolumeAvailable("test_calculate_audit_volume_available",
audit_profile_id=test_audit_profile["id"],
audit_collection_start_time=calculate_audit_volume_available_audit_collection_start_time,
database_unique_name=calculate_audit_volume_available_database_unique_name,
trail_locations=calculate_audit_volume_available_trail_locations)
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.NewCalculateAuditVolumeAvailable(ctx, "test_calculate_audit_volume_available", &DataSafe.CalculateAuditVolumeAvailableArgs{
AuditProfileId: pulumi.Any(testAuditProfile.Id),
AuditCollectionStartTime: pulumi.Any(calculateAuditVolumeAvailableAuditCollectionStartTime),
DatabaseUniqueName: pulumi.Any(calculateAuditVolumeAvailableDatabaseUniqueName),
TrailLocations: pulumi.Any(calculateAuditVolumeAvailableTrailLocations),
})
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 testCalculateAuditVolumeAvailable = new Oci.DataSafe.CalculateAuditVolumeAvailable("test_calculate_audit_volume_available", new()
{
AuditProfileId = testAuditProfile.Id,
AuditCollectionStartTime = calculateAuditVolumeAvailableAuditCollectionStartTime,
DatabaseUniqueName = calculateAuditVolumeAvailableDatabaseUniqueName,
TrailLocations = calculateAuditVolumeAvailableTrailLocations,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.DataSafe.CalculateAuditVolumeAvailable;
import com.pulumi.oci.DataSafe.CalculateAuditVolumeAvailableArgs;
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 testCalculateAuditVolumeAvailable = new CalculateAuditVolumeAvailable("testCalculateAuditVolumeAvailable", CalculateAuditVolumeAvailableArgs.builder()
.auditProfileId(testAuditProfile.id())
.auditCollectionStartTime(calculateAuditVolumeAvailableAuditCollectionStartTime)
.databaseUniqueName(calculateAuditVolumeAvailableDatabaseUniqueName)
.trailLocations(calculateAuditVolumeAvailableTrailLocations)
.build());
}
}
resources:
testCalculateAuditVolumeAvailable:
type: oci:DataSafe:CalculateAuditVolumeAvailable
name: test_calculate_audit_volume_available
properties:
auditProfileId: ${testAuditProfile.id}
auditCollectionStartTime: ${calculateAuditVolumeAvailableAuditCollectionStartTime}
databaseUniqueName: ${calculateAuditVolumeAvailableDatabaseUniqueName}
trailLocations: ${calculateAuditVolumeAvailableTrailLocations}
Create CalculateAuditVolumeAvailable Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new CalculateAuditVolumeAvailable(name: string, args: CalculateAuditVolumeAvailableArgs, opts?: CustomResourceOptions);
@overload
def CalculateAuditVolumeAvailable(resource_name: str,
args: CalculateAuditVolumeAvailableArgs,
opts: Optional[ResourceOptions] = None)
@overload
def CalculateAuditVolumeAvailable(resource_name: str,
opts: Optional[ResourceOptions] = None,
audit_profile_id: Optional[str] = None,
audit_collection_start_time: Optional[str] = None,
database_unique_name: Optional[str] = None,
trail_locations: Optional[Sequence[str]] = None)
func NewCalculateAuditVolumeAvailable(ctx *Context, name string, args CalculateAuditVolumeAvailableArgs, opts ...ResourceOption) (*CalculateAuditVolumeAvailable, error)
public CalculateAuditVolumeAvailable(string name, CalculateAuditVolumeAvailableArgs args, CustomResourceOptions? opts = null)
public CalculateAuditVolumeAvailable(String name, CalculateAuditVolumeAvailableArgs args)
public CalculateAuditVolumeAvailable(String name, CalculateAuditVolumeAvailableArgs args, CustomResourceOptions options)
type: oci:DataSafe:CalculateAuditVolumeAvailable
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 CalculateAuditVolumeAvailableArgs
- 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 CalculateAuditVolumeAvailableArgs
- 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 CalculateAuditVolumeAvailableArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args CalculateAuditVolumeAvailableArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args CalculateAuditVolumeAvailableArgs
- 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 calculateAuditVolumeAvailableResource = new Oci.DataSafe.CalculateAuditVolumeAvailable("calculateAuditVolumeAvailableResource", new()
{
AuditProfileId = "string",
AuditCollectionStartTime = "string",
DatabaseUniqueName = "string",
TrailLocations = new[]
{
"string",
},
});
example, err := DataSafe.NewCalculateAuditVolumeAvailable(ctx, "calculateAuditVolumeAvailableResource", &DataSafe.CalculateAuditVolumeAvailableArgs{
AuditProfileId: pulumi.String("string"),
AuditCollectionStartTime: pulumi.String("string"),
DatabaseUniqueName: pulumi.String("string"),
TrailLocations: pulumi.StringArray{
pulumi.String("string"),
},
})
var calculateAuditVolumeAvailableResource = new CalculateAuditVolumeAvailable("calculateAuditVolumeAvailableResource", CalculateAuditVolumeAvailableArgs.builder()
.auditProfileId("string")
.auditCollectionStartTime("string")
.databaseUniqueName("string")
.trailLocations("string")
.build());
calculate_audit_volume_available_resource = oci.data_safe.CalculateAuditVolumeAvailable("calculateAuditVolumeAvailableResource",
audit_profile_id="string",
audit_collection_start_time="string",
database_unique_name="string",
trail_locations=["string"])
const calculateAuditVolumeAvailableResource = new oci.datasafe.CalculateAuditVolumeAvailable("calculateAuditVolumeAvailableResource", {
auditProfileId: "string",
auditCollectionStartTime: "string",
databaseUniqueName: "string",
trailLocations: ["string"],
});
type: oci:DataSafe:CalculateAuditVolumeAvailable
properties:
auditCollectionStartTime: string
auditProfileId: string
databaseUniqueName: string
trailLocations:
- string
CalculateAuditVolumeAvailable 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 CalculateAuditVolumeAvailable resource accepts the following input properties:
- Audit
Profile stringId - The OCID of the audit.
- Audit
Collection stringStart Time - The date from which the audit trail must start collecting data in UTC, in the format defined by RFC3339. If not specified, this will default to the date based on the retention period.
- Database
Unique stringName - Unique name of the database associated to the peer target database.
- Trail
Locations List<string> The trail locations for which the audit data volume has to be calculated.
** 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.
- Audit
Collection stringStart Time - The date from which the audit trail must start collecting data in UTC, in the format defined by RFC3339. If not specified, this will default to the date based on the retention period.
- Database
Unique stringName - Unique name of the database associated to the peer target database.
- Trail
Locations []string The trail locations for which the audit data volume has to be calculated.
** 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.
- audit
Collection StringStart Time - The date from which the audit trail must start collecting data in UTC, in the format defined by RFC3339. If not specified, this will default to the date based on the retention period.
- database
Unique StringName - Unique name of the database associated to the peer target database.
- trail
Locations List<String> The trail locations for which the audit data volume has to be calculated.
** 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.
- audit
Collection stringStart Time - The date from which the audit trail must start collecting data in UTC, in the format defined by RFC3339. If not specified, this will default to the date based on the retention period.
- database
Unique stringName - Unique name of the database associated to the peer target database.
- trail
Locations string[] The trail locations for which the audit data volume has to be calculated.
** 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.
- audit_
collection_ strstart_ time - The date from which the audit trail must start collecting data in UTC, in the format defined by RFC3339. If not specified, this will default to the date based on the retention period.
- database_
unique_ strname - Unique name of the database associated to the peer target database.
- trail_
locations Sequence[str] The trail locations for which the audit data volume has to be calculated.
** 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.
- audit
Collection StringStart Time - The date from which the audit trail must start collecting data in UTC, in the format defined by RFC3339. If not specified, this will default to the date based on the retention period.
- database
Unique StringName - Unique name of the database associated to the peer target database.
- trail
Locations List<String> The trail locations for which the audit data volume has to be calculated.
** 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 CalculateAuditVolumeAvailable resource produces the following output properties:
- Available
Audit List<CalculateVolumes Audit Volume Available Available Audit Volume> - List of available audit volumes.
- Id string
- The provider-assigned unique ID for this managed resource.
- Available
Audit []CalculateVolumes Audit Volume Available Available Audit Volume - List of available audit volumes.
- Id string
- The provider-assigned unique ID for this managed resource.
- available
Audit List<CalculateVolumes Audit Volume Available Available Audit Volume> - List of available audit volumes.
- id String
- The provider-assigned unique ID for this managed resource.
- available
Audit CalculateVolumes Audit Volume Available Available Audit Volume[] - List of available audit volumes.
- id string
- The provider-assigned unique ID for this managed resource.
- available_
audit_ Sequence[datasafe.volumes Calculate Audit Volume Available Available Audit Volume] - List of available audit volumes.
- id str
- The provider-assigned unique ID for this managed resource.
- available
Audit List<Property Map>Volumes - List of available audit volumes.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing CalculateAuditVolumeAvailable Resource
Get an existing CalculateAuditVolumeAvailable 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?: CalculateAuditVolumeAvailableState, opts?: CustomResourceOptions): CalculateAuditVolumeAvailable
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
audit_collection_start_time: Optional[str] = None,
audit_profile_id: Optional[str] = None,
available_audit_volumes: Optional[Sequence[_datasafe.CalculateAuditVolumeAvailableAvailableAuditVolumeArgs]] = None,
database_unique_name: Optional[str] = None,
trail_locations: Optional[Sequence[str]] = None) -> CalculateAuditVolumeAvailable
func GetCalculateAuditVolumeAvailable(ctx *Context, name string, id IDInput, state *CalculateAuditVolumeAvailableState, opts ...ResourceOption) (*CalculateAuditVolumeAvailable, error)
public static CalculateAuditVolumeAvailable Get(string name, Input<string> id, CalculateAuditVolumeAvailableState? state, CustomResourceOptions? opts = null)
public static CalculateAuditVolumeAvailable get(String name, Output<String> id, CalculateAuditVolumeAvailableState 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
Collection stringStart Time - The date from which the audit trail must start collecting data in UTC, in the format defined by RFC3339. If not specified, this will default to the date based on the retention period.
- Audit
Profile stringId - The OCID of the audit.
- Available
Audit List<CalculateVolumes Audit Volume Available Available Audit Volume> - List of available audit volumes.
- Database
Unique stringName - Unique name of the database associated to the peer target database.
- Trail
Locations List<string> The trail locations for which the audit data volume has to be calculated.
** 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
Collection stringStart Time - The date from which the audit trail must start collecting data in UTC, in the format defined by RFC3339. If not specified, this will default to the date based on the retention period.
- Audit
Profile stringId - The OCID of the audit.
- Available
Audit []CalculateVolumes Audit Volume Available Available Audit Volume Args - List of available audit volumes.
- Database
Unique stringName - Unique name of the database associated to the peer target database.
- Trail
Locations []string The trail locations for which the audit data volume has to be calculated.
** 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
Collection StringStart Time - The date from which the audit trail must start collecting data in UTC, in the format defined by RFC3339. If not specified, this will default to the date based on the retention period.
- audit
Profile StringId - The OCID of the audit.
- available
Audit List<CalculateVolumes Audit Volume Available Available Audit Volume> - List of available audit volumes.
- database
Unique StringName - Unique name of the database associated to the peer target database.
- trail
Locations List<String> The trail locations for which the audit data volume has to be calculated.
** 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
Collection stringStart Time - The date from which the audit trail must start collecting data in UTC, in the format defined by RFC3339. If not specified, this will default to the date based on the retention period.
- audit
Profile stringId - The OCID of the audit.
- available
Audit CalculateVolumes Audit Volume Available Available Audit Volume[] - List of available audit volumes.
- database
Unique stringName - Unique name of the database associated to the peer target database.
- trail
Locations string[] The trail locations for which the audit data volume has to be calculated.
** 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_
collection_ strstart_ time - The date from which the audit trail must start collecting data in UTC, in the format defined by RFC3339. If not specified, this will default to the date based on the retention period.
- audit_
profile_ strid - The OCID of the audit.
- available_
audit_ Sequence[datasafe.volumes Calculate Audit Volume Available Available Audit Volume Args] - List of available audit volumes.
- database_
unique_ strname - Unique name of the database associated to the peer target database.
- trail_
locations Sequence[str] The trail locations for which the audit data volume has to be calculated.
** 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
Collection StringStart Time - The date from which the audit trail must start collecting data in UTC, in the format defined by RFC3339. If not specified, this will default to the date based on the retention period.
- audit
Profile StringId - The OCID of the audit.
- available
Audit List<Property Map>Volumes - List of available audit volumes.
- database
Unique StringName - Unique name of the database associated to the peer target database.
- trail
Locations List<String> The trail locations for which the audit data volume has to be calculated.
** 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
CalculateAuditVolumeAvailableAvailableAuditVolume, CalculateAuditVolumeAvailableAvailableAuditVolumeArgs
- Audit
Profile stringId - The OCID of the audit.
- Month
In stringConsideration - Trail
Location string - Volume string
- Audit
Profile stringId - The OCID of the audit.
- Month
In stringConsideration - Trail
Location string - Volume string
- audit
Profile StringId - The OCID of the audit.
- month
In StringConsideration - trail
Location String - volume String
- audit
Profile stringId - The OCID of the audit.
- month
In stringConsideration - trail
Location string - volume string
- audit_
profile_ strid - The OCID of the audit.
- month_
in_ strconsideration - trail_
location str - volume str
- audit
Profile StringId - The OCID of the audit.
- month
In StringConsideration - trail
Location String - volume String
Import
CalculateAuditVolumeAvailable can be imported using the id
, e.g.
$ pulumi import oci:DataSafe/calculateAuditVolumeAvailable:CalculateAuditVolumeAvailable test_calculate_audit_volume_available "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.