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

oci.DataSafe.CalculateAuditVolumeAvailable

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

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

    The CalculateAuditVolumeAvailable resource accepts the following input properties:

    AuditProfileId string
    The OCID of the audit.
    AuditCollectionStartTime string
    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.
    DatabaseUniqueName string
    Unique name of the database associated to the peer target database.
    TrailLocations 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

    AuditProfileId string
    The OCID of the audit.
    AuditCollectionStartTime string
    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.
    DatabaseUniqueName string
    Unique name of the database associated to the peer target database.
    TrailLocations []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

    auditProfileId String
    The OCID of the audit.
    auditCollectionStartTime String
    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.
    databaseUniqueName String
    Unique name of the database associated to the peer target database.
    trailLocations 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

    auditProfileId string
    The OCID of the audit.
    auditCollectionStartTime string
    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.
    databaseUniqueName string
    Unique name of the database associated to the peer target database.
    trailLocations 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_id str
    The OCID of the audit.
    audit_collection_start_time str
    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_name str
    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

    auditProfileId String
    The OCID of the audit.
    auditCollectionStartTime String
    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.
    databaseUniqueName String
    Unique name of the database associated to the peer target database.
    trailLocations 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:

    AvailableAuditVolumes List<CalculateAuditVolumeAvailableAvailableAuditVolume>
    List of available audit volumes.
    Id string
    The provider-assigned unique ID for this managed resource.
    AvailableAuditVolumes []CalculateAuditVolumeAvailableAvailableAuditVolume
    List of available audit volumes.
    Id string
    The provider-assigned unique ID for this managed resource.
    availableAuditVolumes List<CalculateAuditVolumeAvailableAvailableAuditVolume>
    List of available audit volumes.
    id String
    The provider-assigned unique ID for this managed resource.
    availableAuditVolumes CalculateAuditVolumeAvailableAvailableAuditVolume[]
    List of available audit volumes.
    id string
    The provider-assigned unique ID for this managed resource.
    available_audit_volumes Sequence[datasafe.CalculateAuditVolumeAvailableAvailableAuditVolume]
    List of available audit volumes.
    id str
    The provider-assigned unique ID for this managed resource.
    availableAuditVolumes List<Property Map>
    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.
    The following state arguments are supported:
    AuditCollectionStartTime string
    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.
    AuditProfileId string
    The OCID of the audit.
    AvailableAuditVolumes List<CalculateAuditVolumeAvailableAvailableAuditVolume>
    List of available audit volumes.
    DatabaseUniqueName string
    Unique name of the database associated to the peer target database.
    TrailLocations 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

    AuditCollectionStartTime string
    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.
    AuditProfileId string
    The OCID of the audit.
    AvailableAuditVolumes []CalculateAuditVolumeAvailableAvailableAuditVolumeArgs
    List of available audit volumes.
    DatabaseUniqueName string
    Unique name of the database associated to the peer target database.
    TrailLocations []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

    auditCollectionStartTime String
    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.
    auditProfileId String
    The OCID of the audit.
    availableAuditVolumes List<CalculateAuditVolumeAvailableAvailableAuditVolume>
    List of available audit volumes.
    databaseUniqueName String
    Unique name of the database associated to the peer target database.
    trailLocations 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

    auditCollectionStartTime string
    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.
    auditProfileId string
    The OCID of the audit.
    availableAuditVolumes CalculateAuditVolumeAvailableAvailableAuditVolume[]
    List of available audit volumes.
    databaseUniqueName string
    Unique name of the database associated to the peer target database.
    trailLocations 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_start_time str
    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_id str
    The OCID of the audit.
    available_audit_volumes Sequence[datasafe.CalculateAuditVolumeAvailableAvailableAuditVolumeArgs]
    List of available audit volumes.
    database_unique_name str
    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

    auditCollectionStartTime String
    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.
    auditProfileId String
    The OCID of the audit.
    availableAuditVolumes List<Property Map>
    List of available audit volumes.
    databaseUniqueName String
    Unique name of the database associated to the peer target database.
    trailLocations 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

    AuditProfileId string
    The OCID of the audit.
    MonthInConsideration string
    TrailLocation string
    Volume string
    AuditProfileId string
    The OCID of the audit.
    MonthInConsideration string
    TrailLocation string
    Volume string
    auditProfileId String
    The OCID of the audit.
    monthInConsideration String
    trailLocation String
    volume String
    auditProfileId string
    The OCID of the audit.
    monthInConsideration string
    trailLocation string
    volume string
    auditProfileId String
    The OCID of the audit.
    monthInConsideration String
    trailLocation 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.
    oci logo
    Oracle Cloud Infrastructure v2.17.0 published on Friday, Nov 15, 2024 by Pulumi