oci.DataSafe.UnifiedAuditPolicy
Explore with Pulumi AI
This resource provides the Unified Audit Policy resource in Oracle Cloud Infrastructure Data Safe service.
Creates the specified unified audit policy.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testUnifiedAuditPolicy = new oci.datasafe.UnifiedAuditPolicy("test_unified_audit_policy", {
compartmentId: compartmentId,
conditions: [{
entitySelection: unifiedAuditPolicyConditionsEntitySelection,
entityType: unifiedAuditPolicyConditionsEntityType,
operationStatus: unifiedAuditPolicyConditionsOperationStatus,
attributeSetId: testAttributeSet.id,
roleNames: unifiedAuditPolicyConditionsRoleNames,
userNames: unifiedAuditPolicyConditionsUserNames,
}],
securityPolicyId: testSecurityPolicy.id,
status: unifiedAuditPolicyStatus,
unifiedAuditPolicyDefinitionId: testUnifiedAuditPolicyDefinition.id,
definedTags: {
"Operations.CostCenter": "42",
},
description: unifiedAuditPolicyDescription,
displayName: unifiedAuditPolicyDisplayName,
freeformTags: {
Department: "Finance",
},
});
import pulumi
import pulumi_oci as oci
test_unified_audit_policy = oci.datasafe.UnifiedAuditPolicy("test_unified_audit_policy",
compartment_id=compartment_id,
conditions=[{
"entity_selection": unified_audit_policy_conditions_entity_selection,
"entity_type": unified_audit_policy_conditions_entity_type,
"operation_status": unified_audit_policy_conditions_operation_status,
"attribute_set_id": test_attribute_set["id"],
"role_names": unified_audit_policy_conditions_role_names,
"user_names": unified_audit_policy_conditions_user_names,
}],
security_policy_id=test_security_policy["id"],
status=unified_audit_policy_status,
unified_audit_policy_definition_id=test_unified_audit_policy_definition["id"],
defined_tags={
"Operations.CostCenter": "42",
},
description=unified_audit_policy_description,
display_name=unified_audit_policy_display_name,
freeform_tags={
"Department": "Finance",
})
package main
import (
"github.com/pulumi/pulumi-oci/sdk/v3/go/oci/datasafe"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := datasafe.NewUnifiedAuditPolicy(ctx, "test_unified_audit_policy", &datasafe.UnifiedAuditPolicyArgs{
CompartmentId: pulumi.Any(compartmentId),
Conditions: datasafe.UnifiedAuditPolicyConditionArray{
&datasafe.UnifiedAuditPolicyConditionArgs{
EntitySelection: pulumi.Any(unifiedAuditPolicyConditionsEntitySelection),
EntityType: pulumi.Any(unifiedAuditPolicyConditionsEntityType),
OperationStatus: pulumi.Any(unifiedAuditPolicyConditionsOperationStatus),
AttributeSetId: pulumi.Any(testAttributeSet.Id),
RoleNames: pulumi.Any(unifiedAuditPolicyConditionsRoleNames),
UserNames: pulumi.Any(unifiedAuditPolicyConditionsUserNames),
},
},
SecurityPolicyId: pulumi.Any(testSecurityPolicy.Id),
Status: pulumi.Any(unifiedAuditPolicyStatus),
UnifiedAuditPolicyDefinitionId: pulumi.Any(testUnifiedAuditPolicyDefinition.Id),
DefinedTags: pulumi.StringMap{
"Operations.CostCenter": pulumi.String("42"),
},
Description: pulumi.Any(unifiedAuditPolicyDescription),
DisplayName: pulumi.Any(unifiedAuditPolicyDisplayName),
FreeformTags: pulumi.StringMap{
"Department": pulumi.String("Finance"),
},
})
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 testUnifiedAuditPolicy = new Oci.DataSafe.UnifiedAuditPolicy("test_unified_audit_policy", new()
{
CompartmentId = compartmentId,
Conditions = new[]
{
new Oci.DataSafe.Inputs.UnifiedAuditPolicyConditionArgs
{
EntitySelection = unifiedAuditPolicyConditionsEntitySelection,
EntityType = unifiedAuditPolicyConditionsEntityType,
OperationStatus = unifiedAuditPolicyConditionsOperationStatus,
AttributeSetId = testAttributeSet.Id,
RoleNames = unifiedAuditPolicyConditionsRoleNames,
UserNames = unifiedAuditPolicyConditionsUserNames,
},
},
SecurityPolicyId = testSecurityPolicy.Id,
Status = unifiedAuditPolicyStatus,
UnifiedAuditPolicyDefinitionId = testUnifiedAuditPolicyDefinition.Id,
DefinedTags =
{
{ "Operations.CostCenter", "42" },
},
Description = unifiedAuditPolicyDescription,
DisplayName = unifiedAuditPolicyDisplayName,
FreeformTags =
{
{ "Department", "Finance" },
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.DataSafe.UnifiedAuditPolicy;
import com.pulumi.oci.DataSafe.UnifiedAuditPolicyArgs;
import com.pulumi.oci.DataSafe.inputs.UnifiedAuditPolicyConditionArgs;
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 testUnifiedAuditPolicy = new UnifiedAuditPolicy("testUnifiedAuditPolicy", UnifiedAuditPolicyArgs.builder()
.compartmentId(compartmentId)
.conditions(UnifiedAuditPolicyConditionArgs.builder()
.entitySelection(unifiedAuditPolicyConditionsEntitySelection)
.entityType(unifiedAuditPolicyConditionsEntityType)
.operationStatus(unifiedAuditPolicyConditionsOperationStatus)
.attributeSetId(testAttributeSet.id())
.roleNames(unifiedAuditPolicyConditionsRoleNames)
.userNames(unifiedAuditPolicyConditionsUserNames)
.build())
.securityPolicyId(testSecurityPolicy.id())
.status(unifiedAuditPolicyStatus)
.unifiedAuditPolicyDefinitionId(testUnifiedAuditPolicyDefinition.id())
.definedTags(Map.of("Operations.CostCenter", "42"))
.description(unifiedAuditPolicyDescription)
.displayName(unifiedAuditPolicyDisplayName)
.freeformTags(Map.of("Department", "Finance"))
.build());
}
}
resources:
testUnifiedAuditPolicy:
type: oci:DataSafe:UnifiedAuditPolicy
name: test_unified_audit_policy
properties:
compartmentId: ${compartmentId}
conditions:
- entitySelection: ${unifiedAuditPolicyConditionsEntitySelection}
entityType: ${unifiedAuditPolicyConditionsEntityType}
operationStatus: ${unifiedAuditPolicyConditionsOperationStatus}
attributeSetId: ${testAttributeSet.id}
roleNames: ${unifiedAuditPolicyConditionsRoleNames}
userNames: ${unifiedAuditPolicyConditionsUserNames}
securityPolicyId: ${testSecurityPolicy.id}
status: ${unifiedAuditPolicyStatus}
unifiedAuditPolicyDefinitionId: ${testUnifiedAuditPolicyDefinition.id}
definedTags:
Operations.CostCenter: '42'
description: ${unifiedAuditPolicyDescription}
displayName: ${unifiedAuditPolicyDisplayName}
freeformTags:
Department: Finance
Create UnifiedAuditPolicy Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new UnifiedAuditPolicy(name: string, args: UnifiedAuditPolicyArgs, opts?: CustomResourceOptions);
@overload
def UnifiedAuditPolicy(resource_name: str,
args: UnifiedAuditPolicyArgs,
opts: Optional[ResourceOptions] = None)
@overload
def UnifiedAuditPolicy(resource_name: str,
opts: Optional[ResourceOptions] = None,
compartment_id: Optional[str] = None,
conditions: Optional[Sequence[UnifiedAuditPolicyConditionArgs]] = None,
security_policy_id: Optional[str] = None,
status: Optional[str] = None,
unified_audit_policy_definition_id: Optional[str] = None,
defined_tags: Optional[Mapping[str, str]] = None,
description: Optional[str] = None,
display_name: Optional[str] = None,
freeform_tags: Optional[Mapping[str, str]] = None)
func NewUnifiedAuditPolicy(ctx *Context, name string, args UnifiedAuditPolicyArgs, opts ...ResourceOption) (*UnifiedAuditPolicy, error)
public UnifiedAuditPolicy(string name, UnifiedAuditPolicyArgs args, CustomResourceOptions? opts = null)
public UnifiedAuditPolicy(String name, UnifiedAuditPolicyArgs args)
public UnifiedAuditPolicy(String name, UnifiedAuditPolicyArgs args, CustomResourceOptions options)
type: oci:DataSafe:UnifiedAuditPolicy
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 UnifiedAuditPolicyArgs
- 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 UnifiedAuditPolicyArgs
- 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 UnifiedAuditPolicyArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args UnifiedAuditPolicyArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args UnifiedAuditPolicyArgs
- 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 unifiedAuditPolicyResource = new Oci.DataSafe.UnifiedAuditPolicy("unifiedAuditPolicyResource", new()
{
CompartmentId = "string",
Conditions = new[]
{
new Oci.DataSafe.Inputs.UnifiedAuditPolicyConditionArgs
{
EntitySelection = "string",
EntityType = "string",
OperationStatus = "string",
AttributeSetId = "string",
RoleNames = new[]
{
"string",
},
UserNames = new[]
{
"string",
},
},
},
SecurityPolicyId = "string",
Status = "string",
UnifiedAuditPolicyDefinitionId = "string",
DefinedTags =
{
{ "string", "string" },
},
Description = "string",
DisplayName = "string",
FreeformTags =
{
{ "string", "string" },
},
});
example, err := datasafe.NewUnifiedAuditPolicy(ctx, "unifiedAuditPolicyResource", &datasafe.UnifiedAuditPolicyArgs{
CompartmentId: pulumi.String("string"),
Conditions: datasafe.UnifiedAuditPolicyConditionArray{
&datasafe.UnifiedAuditPolicyConditionArgs{
EntitySelection: pulumi.String("string"),
EntityType: pulumi.String("string"),
OperationStatus: pulumi.String("string"),
AttributeSetId: pulumi.String("string"),
RoleNames: pulumi.StringArray{
pulumi.String("string"),
},
UserNames: pulumi.StringArray{
pulumi.String("string"),
},
},
},
SecurityPolicyId: pulumi.String("string"),
Status: pulumi.String("string"),
UnifiedAuditPolicyDefinitionId: pulumi.String("string"),
DefinedTags: pulumi.StringMap{
"string": pulumi.String("string"),
},
Description: pulumi.String("string"),
DisplayName: pulumi.String("string"),
FreeformTags: pulumi.StringMap{
"string": pulumi.String("string"),
},
})
var unifiedAuditPolicyResource = new UnifiedAuditPolicy("unifiedAuditPolicyResource", UnifiedAuditPolicyArgs.builder()
.compartmentId("string")
.conditions(UnifiedAuditPolicyConditionArgs.builder()
.entitySelection("string")
.entityType("string")
.operationStatus("string")
.attributeSetId("string")
.roleNames("string")
.userNames("string")
.build())
.securityPolicyId("string")
.status("string")
.unifiedAuditPolicyDefinitionId("string")
.definedTags(Map.of("string", "string"))
.description("string")
.displayName("string")
.freeformTags(Map.of("string", "string"))
.build());
unified_audit_policy_resource = oci.datasafe.UnifiedAuditPolicy("unifiedAuditPolicyResource",
compartment_id="string",
conditions=[{
"entity_selection": "string",
"entity_type": "string",
"operation_status": "string",
"attribute_set_id": "string",
"role_names": ["string"],
"user_names": ["string"],
}],
security_policy_id="string",
status="string",
unified_audit_policy_definition_id="string",
defined_tags={
"string": "string",
},
description="string",
display_name="string",
freeform_tags={
"string": "string",
})
const unifiedAuditPolicyResource = new oci.datasafe.UnifiedAuditPolicy("unifiedAuditPolicyResource", {
compartmentId: "string",
conditions: [{
entitySelection: "string",
entityType: "string",
operationStatus: "string",
attributeSetId: "string",
roleNames: ["string"],
userNames: ["string"],
}],
securityPolicyId: "string",
status: "string",
unifiedAuditPolicyDefinitionId: "string",
definedTags: {
string: "string",
},
description: "string",
displayName: "string",
freeformTags: {
string: "string",
},
});
type: oci:DataSafe:UnifiedAuditPolicy
properties:
compartmentId: string
conditions:
- attributeSetId: string
entitySelection: string
entityType: string
operationStatus: string
roleNames:
- string
userNames:
- string
definedTags:
string: string
description: string
displayName: string
freeformTags:
string: string
securityPolicyId: string
status: string
unifiedAuditPolicyDefinitionId: string
UnifiedAuditPolicy 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 UnifiedAuditPolicy resource accepts the following input properties:
- Compartment
Id string - (Updatable) The OCID of the compartment in which to create the unified audit policy.
- Conditions
List<Unified
Audit Policy Condition> - (Updatable) Lists the audit policy provisioning conditions.
- Security
Policy stringId - The OCID of the security policy corresponding to the unified audit policy.
- Status string
- (Updatable) Indicates whether the unified audit policy has been enabled or disabled.
- Unified
Audit stringPolicy Definition Id The OCID of the associated unified audit policy definition.
** 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
- Dictionary<string, string>
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags Example:
{"Operations.CostCenter": "42"}
- Description string
- (Updatable) The description of the unified audit policy in Data Safe.
- Display
Name string - (Updatable) The display name of the unified audit policy in Data Safe. The name is modifiable and does not need to be unique.
- Dictionary<string, string>
- (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags Example:
{"Department": "Finance"}
- Compartment
Id string - (Updatable) The OCID of the compartment in which to create the unified audit policy.
- Conditions
[]Unified
Audit Policy Condition Args - (Updatable) Lists the audit policy provisioning conditions.
- Security
Policy stringId - The OCID of the security policy corresponding to the unified audit policy.
- Status string
- (Updatable) Indicates whether the unified audit policy has been enabled or disabled.
- Unified
Audit stringPolicy Definition Id The OCID of the associated unified audit policy definition.
** 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
- map[string]string
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags Example:
{"Operations.CostCenter": "42"}
- Description string
- (Updatable) The description of the unified audit policy in Data Safe.
- Display
Name string - (Updatable) The display name of the unified audit policy in Data Safe. The name is modifiable and does not need to be unique.
- map[string]string
- (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags Example:
{"Department": "Finance"}
- compartment
Id String - (Updatable) The OCID of the compartment in which to create the unified audit policy.
- conditions
List<Unified
Audit Policy Condition> - (Updatable) Lists the audit policy provisioning conditions.
- security
Policy StringId - The OCID of the security policy corresponding to the unified audit policy.
- status String
- (Updatable) Indicates whether the unified audit policy has been enabled or disabled.
- unified
Audit StringPolicy Definition Id The OCID of the associated unified audit policy definition.
** 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
- Map<String,String>
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags Example:
{"Operations.CostCenter": "42"}
- description String
- (Updatable) The description of the unified audit policy in Data Safe.
- display
Name String - (Updatable) The display name of the unified audit policy in Data Safe. The name is modifiable and does not need to be unique.
- Map<String,String>
- (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags Example:
{"Department": "Finance"}
- compartment
Id string - (Updatable) The OCID of the compartment in which to create the unified audit policy.
- conditions
Unified
Audit Policy Condition[] - (Updatable) Lists the audit policy provisioning conditions.
- security
Policy stringId - The OCID of the security policy corresponding to the unified audit policy.
- status string
- (Updatable) Indicates whether the unified audit policy has been enabled or disabled.
- unified
Audit stringPolicy Definition Id The OCID of the associated unified audit policy definition.
** 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
- {[key: string]: string}
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags Example:
{"Operations.CostCenter": "42"}
- description string
- (Updatable) The description of the unified audit policy in Data Safe.
- display
Name string - (Updatable) The display name of the unified audit policy in Data Safe. The name is modifiable and does not need to be unique.
- {[key: string]: string}
- (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags Example:
{"Department": "Finance"}
- compartment_
id str - (Updatable) The OCID of the compartment in which to create the unified audit policy.
- conditions
Sequence[Unified
Audit Policy Condition Args] - (Updatable) Lists the audit policy provisioning conditions.
- security_
policy_ strid - The OCID of the security policy corresponding to the unified audit policy.
- status str
- (Updatable) Indicates whether the unified audit policy has been enabled or disabled.
- unified_
audit_ strpolicy_ definition_ id The OCID of the associated unified audit policy definition.
** 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
- Mapping[str, str]
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags Example:
{"Operations.CostCenter": "42"}
- description str
- (Updatable) The description of the unified audit policy in Data Safe.
- display_
name str - (Updatable) The display name of the unified audit policy in Data Safe. The name is modifiable and does not need to be unique.
- Mapping[str, str]
- (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags Example:
{"Department": "Finance"}
- compartment
Id String - (Updatable) The OCID of the compartment in which to create the unified audit policy.
- conditions List<Property Map>
- (Updatable) Lists the audit policy provisioning conditions.
- security
Policy StringId - The OCID of the security policy corresponding to the unified audit policy.
- status String
- (Updatable) Indicates whether the unified audit policy has been enabled or disabled.
- unified
Audit StringPolicy Definition Id The OCID of the associated unified audit policy definition.
** 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
- Map<String>
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags Example:
{"Operations.CostCenter": "42"}
- description String
- (Updatable) The description of the unified audit policy in Data Safe.
- display
Name String - (Updatable) The display name of the unified audit policy in Data Safe. The name is modifiable and does not need to be unique.
- Map<String>
- (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags Example:
{"Department": "Finance"}
Outputs
All input properties are implicitly available as output properties. Additionally, the UnifiedAuditPolicy resource produces the following output properties:
- Enabled
Entities string - Indicates on whom the audit policy is enabled.
- Id string
- The provider-assigned unique ID for this managed resource.
- Is
Seeded bool - Indicates whether the unified audit policy is seeded or not.
- Lifecycle
Details string - The details of the current state of the unified audit policy in Data Safe.
- State string
- The current state of the unified audit policy.
- Dictionary<string, string>
- System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example:
{"orcl-cloud.free-tier-retained": "true"}
- Time
Created string - The time the the unified audit policy was created, in the format defined by RFC3339.
- Time
Updated string - The last date and time the unified audit policy was updated, in the format defined by RFC3339.
- Enabled
Entities string - Indicates on whom the audit policy is enabled.
- Id string
- The provider-assigned unique ID for this managed resource.
- Is
Seeded bool - Indicates whether the unified audit policy is seeded or not.
- Lifecycle
Details string - The details of the current state of the unified audit policy in Data Safe.
- State string
- The current state of the unified audit policy.
- map[string]string
- System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example:
{"orcl-cloud.free-tier-retained": "true"}
- Time
Created string - The time the the unified audit policy was created, in the format defined by RFC3339.
- Time
Updated string - The last date and time the unified audit policy was updated, in the format defined by RFC3339.
- enabled
Entities String - Indicates on whom the audit policy is enabled.
- id String
- The provider-assigned unique ID for this managed resource.
- is
Seeded Boolean - Indicates whether the unified audit policy is seeded or not.
- lifecycle
Details String - The details of the current state of the unified audit policy in Data Safe.
- state String
- The current state of the unified audit policy.
- Map<String,String>
- System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example:
{"orcl-cloud.free-tier-retained": "true"}
- time
Created String - The time the the unified audit policy was created, in the format defined by RFC3339.
- time
Updated String - The last date and time the unified audit policy was updated, in the format defined by RFC3339.
- enabled
Entities string - Indicates on whom the audit policy is enabled.
- id string
- The provider-assigned unique ID for this managed resource.
- is
Seeded boolean - Indicates whether the unified audit policy is seeded or not.
- lifecycle
Details string - The details of the current state of the unified audit policy in Data Safe.
- state string
- The current state of the unified audit policy.
- {[key: string]: string}
- System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example:
{"orcl-cloud.free-tier-retained": "true"}
- time
Created string - The time the the unified audit policy was created, in the format defined by RFC3339.
- time
Updated string - The last date and time the unified audit policy was updated, in the format defined by RFC3339.
- enabled_
entities str - Indicates on whom the audit policy is enabled.
- id str
- The provider-assigned unique ID for this managed resource.
- is_
seeded bool - Indicates whether the unified audit policy is seeded or not.
- lifecycle_
details str - The details of the current state of the unified audit policy in Data Safe.
- state str
- The current state of the unified audit policy.
- Mapping[str, str]
- System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example:
{"orcl-cloud.free-tier-retained": "true"}
- time_
created str - The time the the unified audit policy was created, in the format defined by RFC3339.
- time_
updated str - The last date and time the unified audit policy was updated, in the format defined by RFC3339.
- enabled
Entities String - Indicates on whom the audit policy is enabled.
- id String
- The provider-assigned unique ID for this managed resource.
- is
Seeded Boolean - Indicates whether the unified audit policy is seeded or not.
- lifecycle
Details String - The details of the current state of the unified audit policy in Data Safe.
- state String
- The current state of the unified audit policy.
- Map<String>
- System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example:
{"orcl-cloud.free-tier-retained": "true"}
- time
Created String - The time the the unified audit policy was created, in the format defined by RFC3339.
- time
Updated String - The last date and time the unified audit policy was updated, in the format defined by RFC3339.
Look up Existing UnifiedAuditPolicy Resource
Get an existing UnifiedAuditPolicy 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?: UnifiedAuditPolicyState, opts?: CustomResourceOptions): UnifiedAuditPolicy
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
compartment_id: Optional[str] = None,
conditions: Optional[Sequence[UnifiedAuditPolicyConditionArgs]] = None,
defined_tags: Optional[Mapping[str, str]] = None,
description: Optional[str] = None,
display_name: Optional[str] = None,
enabled_entities: Optional[str] = None,
freeform_tags: Optional[Mapping[str, str]] = None,
is_seeded: Optional[bool] = None,
lifecycle_details: Optional[str] = None,
security_policy_id: Optional[str] = None,
state: Optional[str] = None,
status: Optional[str] = None,
system_tags: Optional[Mapping[str, str]] = None,
time_created: Optional[str] = None,
time_updated: Optional[str] = None,
unified_audit_policy_definition_id: Optional[str] = None) -> UnifiedAuditPolicy
func GetUnifiedAuditPolicy(ctx *Context, name string, id IDInput, state *UnifiedAuditPolicyState, opts ...ResourceOption) (*UnifiedAuditPolicy, error)
public static UnifiedAuditPolicy Get(string name, Input<string> id, UnifiedAuditPolicyState? state, CustomResourceOptions? opts = null)
public static UnifiedAuditPolicy get(String name, Output<String> id, UnifiedAuditPolicyState state, CustomResourceOptions options)
resources: _: type: oci:DataSafe:UnifiedAuditPolicy 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.
- Compartment
Id string - (Updatable) The OCID of the compartment in which to create the unified audit policy.
- Conditions
List<Unified
Audit Policy Condition> - (Updatable) Lists the audit policy provisioning conditions.
- Dictionary<string, string>
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags Example:
{"Operations.CostCenter": "42"}
- Description string
- (Updatable) The description of the unified audit policy in Data Safe.
- Display
Name string - (Updatable) The display name of the unified audit policy in Data Safe. The name is modifiable and does not need to be unique.
- Enabled
Entities string - Indicates on whom the audit policy is enabled.
- Dictionary<string, string>
- (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags Example:
{"Department": "Finance"}
- Is
Seeded bool - Indicates whether the unified audit policy is seeded or not.
- Lifecycle
Details string - The details of the current state of the unified audit policy in Data Safe.
- Security
Policy stringId - The OCID of the security policy corresponding to the unified audit policy.
- State string
- The current state of the unified audit policy.
- Status string
- (Updatable) Indicates whether the unified audit policy has been enabled or disabled.
- Dictionary<string, string>
- System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example:
{"orcl-cloud.free-tier-retained": "true"}
- Time
Created string - The time the the unified audit policy was created, in the format defined by RFC3339.
- Time
Updated string - The last date and time the unified audit policy was updated, in the format defined by RFC3339.
- Unified
Audit stringPolicy Definition Id The OCID of the associated unified audit policy definition.
** 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
- Compartment
Id string - (Updatable) The OCID of the compartment in which to create the unified audit policy.
- Conditions
[]Unified
Audit Policy Condition Args - (Updatable) Lists the audit policy provisioning conditions.
- map[string]string
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags Example:
{"Operations.CostCenter": "42"}
- Description string
- (Updatable) The description of the unified audit policy in Data Safe.
- Display
Name string - (Updatable) The display name of the unified audit policy in Data Safe. The name is modifiable and does not need to be unique.
- Enabled
Entities string - Indicates on whom the audit policy is enabled.
- map[string]string
- (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags Example:
{"Department": "Finance"}
- Is
Seeded bool - Indicates whether the unified audit policy is seeded or not.
- Lifecycle
Details string - The details of the current state of the unified audit policy in Data Safe.
- Security
Policy stringId - The OCID of the security policy corresponding to the unified audit policy.
- State string
- The current state of the unified audit policy.
- Status string
- (Updatable) Indicates whether the unified audit policy has been enabled or disabled.
- map[string]string
- System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example:
{"orcl-cloud.free-tier-retained": "true"}
- Time
Created string - The time the the unified audit policy was created, in the format defined by RFC3339.
- Time
Updated string - The last date and time the unified audit policy was updated, in the format defined by RFC3339.
- Unified
Audit stringPolicy Definition Id The OCID of the associated unified audit policy definition.
** 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
- compartment
Id String - (Updatable) The OCID of the compartment in which to create the unified audit policy.
- conditions
List<Unified
Audit Policy Condition> - (Updatable) Lists the audit policy provisioning conditions.
- Map<String,String>
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags Example:
{"Operations.CostCenter": "42"}
- description String
- (Updatable) The description of the unified audit policy in Data Safe.
- display
Name String - (Updatable) The display name of the unified audit policy in Data Safe. The name is modifiable and does not need to be unique.
- enabled
Entities String - Indicates on whom the audit policy is enabled.
- Map<String,String>
- (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags Example:
{"Department": "Finance"}
- is
Seeded Boolean - Indicates whether the unified audit policy is seeded or not.
- lifecycle
Details String - The details of the current state of the unified audit policy in Data Safe.
- security
Policy StringId - The OCID of the security policy corresponding to the unified audit policy.
- state String
- The current state of the unified audit policy.
- status String
- (Updatable) Indicates whether the unified audit policy has been enabled or disabled.
- Map<String,String>
- System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example:
{"orcl-cloud.free-tier-retained": "true"}
- time
Created String - The time the the unified audit policy was created, in the format defined by RFC3339.
- time
Updated String - The last date and time the unified audit policy was updated, in the format defined by RFC3339.
- unified
Audit StringPolicy Definition Id The OCID of the associated unified audit policy definition.
** 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
- compartment
Id string - (Updatable) The OCID of the compartment in which to create the unified audit policy.
- conditions
Unified
Audit Policy Condition[] - (Updatable) Lists the audit policy provisioning conditions.
- {[key: string]: string}
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags Example:
{"Operations.CostCenter": "42"}
- description string
- (Updatable) The description of the unified audit policy in Data Safe.
- display
Name string - (Updatable) The display name of the unified audit policy in Data Safe. The name is modifiable and does not need to be unique.
- enabled
Entities string - Indicates on whom the audit policy is enabled.
- {[key: string]: string}
- (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags Example:
{"Department": "Finance"}
- is
Seeded boolean - Indicates whether the unified audit policy is seeded or not.
- lifecycle
Details string - The details of the current state of the unified audit policy in Data Safe.
- security
Policy stringId - The OCID of the security policy corresponding to the unified audit policy.
- state string
- The current state of the unified audit policy.
- status string
- (Updatable) Indicates whether the unified audit policy has been enabled or disabled.
- {[key: string]: string}
- System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example:
{"orcl-cloud.free-tier-retained": "true"}
- time
Created string - The time the the unified audit policy was created, in the format defined by RFC3339.
- time
Updated string - The last date and time the unified audit policy was updated, in the format defined by RFC3339.
- unified
Audit stringPolicy Definition Id The OCID of the associated unified audit policy definition.
** 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
- compartment_
id str - (Updatable) The OCID of the compartment in which to create the unified audit policy.
- conditions
Sequence[Unified
Audit Policy Condition Args] - (Updatable) Lists the audit policy provisioning conditions.
- Mapping[str, str]
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags Example:
{"Operations.CostCenter": "42"}
- description str
- (Updatable) The description of the unified audit policy in Data Safe.
- display_
name str - (Updatable) The display name of the unified audit policy in Data Safe. The name is modifiable and does not need to be unique.
- enabled_
entities str - Indicates on whom the audit policy is enabled.
- Mapping[str, str]
- (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags Example:
{"Department": "Finance"}
- is_
seeded bool - Indicates whether the unified audit policy is seeded or not.
- lifecycle_
details str - The details of the current state of the unified audit policy in Data Safe.
- security_
policy_ strid - The OCID of the security policy corresponding to the unified audit policy.
- state str
- The current state of the unified audit policy.
- status str
- (Updatable) Indicates whether the unified audit policy has been enabled or disabled.
- Mapping[str, str]
- System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example:
{"orcl-cloud.free-tier-retained": "true"}
- time_
created str - The time the the unified audit policy was created, in the format defined by RFC3339.
- time_
updated str - The last date and time the unified audit policy was updated, in the format defined by RFC3339.
- unified_
audit_ strpolicy_ definition_ id The OCID of the associated unified audit policy definition.
** 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
- compartment
Id String - (Updatable) The OCID of the compartment in which to create the unified audit policy.
- conditions List<Property Map>
- (Updatable) Lists the audit policy provisioning conditions.
- Map<String>
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags Example:
{"Operations.CostCenter": "42"}
- description String
- (Updatable) The description of the unified audit policy in Data Safe.
- display
Name String - (Updatable) The display name of the unified audit policy in Data Safe. The name is modifiable and does not need to be unique.
- enabled
Entities String - Indicates on whom the audit policy is enabled.
- Map<String>
- (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags Example:
{"Department": "Finance"}
- is
Seeded Boolean - Indicates whether the unified audit policy is seeded or not.
- lifecycle
Details String - The details of the current state of the unified audit policy in Data Safe.
- security
Policy StringId - The OCID of the security policy corresponding to the unified audit policy.
- state String
- The current state of the unified audit policy.
- status String
- (Updatable) Indicates whether the unified audit policy has been enabled or disabled.
- Map<String>
- System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example:
{"orcl-cloud.free-tier-retained": "true"}
- time
Created String - The time the the unified audit policy was created, in the format defined by RFC3339.
- time
Updated String - The last date and time the unified audit policy was updated, in the format defined by RFC3339.
- unified
Audit StringPolicy Definition Id The OCID of the associated unified audit policy definition.
** 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
UnifiedAuditPolicyCondition, UnifiedAuditPolicyConditionArgs
- Entity
Selection string - (Updatable) Specifies whether to include or exclude the specified users or roles.
- Entity
Type string - (Updatable) The type of users or roles that the unified audit policy is applied to.
- Operation
Status string - (Updatable) The operation status that the policy must be enabled for.
- Attribute
Set stringId - (Updatable) The OCID of the attribute set.
- Role
Names List<string> - (Updatable) List of roles that the policy must be enabled for.
- User
Names List<string> - (Updatable) The list of users that the unified audit policy is enabled for.
- Entity
Selection string - (Updatable) Specifies whether to include or exclude the specified users or roles.
- Entity
Type string - (Updatable) The type of users or roles that the unified audit policy is applied to.
- Operation
Status string - (Updatable) The operation status that the policy must be enabled for.
- Attribute
Set stringId - (Updatable) The OCID of the attribute set.
- Role
Names []string - (Updatable) List of roles that the policy must be enabled for.
- User
Names []string - (Updatable) The list of users that the unified audit policy is enabled for.
- entity
Selection String - (Updatable) Specifies whether to include or exclude the specified users or roles.
- entity
Type String - (Updatable) The type of users or roles that the unified audit policy is applied to.
- operation
Status String - (Updatable) The operation status that the policy must be enabled for.
- attribute
Set StringId - (Updatable) The OCID of the attribute set.
- role
Names List<String> - (Updatable) List of roles that the policy must be enabled for.
- user
Names List<String> - (Updatable) The list of users that the unified audit policy is enabled for.
- entity
Selection string - (Updatable) Specifies whether to include or exclude the specified users or roles.
- entity
Type string - (Updatable) The type of users or roles that the unified audit policy is applied to.
- operation
Status string - (Updatable) The operation status that the policy must be enabled for.
- attribute
Set stringId - (Updatable) The OCID of the attribute set.
- role
Names string[] - (Updatable) List of roles that the policy must be enabled for.
- user
Names string[] - (Updatable) The list of users that the unified audit policy is enabled for.
- entity_
selection str - (Updatable) Specifies whether to include or exclude the specified users or roles.
- entity_
type str - (Updatable) The type of users or roles that the unified audit policy is applied to.
- operation_
status str - (Updatable) The operation status that the policy must be enabled for.
- attribute_
set_ strid - (Updatable) The OCID of the attribute set.
- role_
names Sequence[str] - (Updatable) List of roles that the policy must be enabled for.
- user_
names Sequence[str] - (Updatable) The list of users that the unified audit policy is enabled for.
- entity
Selection String - (Updatable) Specifies whether to include or exclude the specified users or roles.
- entity
Type String - (Updatable) The type of users or roles that the unified audit policy is applied to.
- operation
Status String - (Updatable) The operation status that the policy must be enabled for.
- attribute
Set StringId - (Updatable) The OCID of the attribute set.
- role
Names List<String> - (Updatable) List of roles that the policy must be enabled for.
- user
Names List<String> - (Updatable) The list of users that the unified audit policy is enabled for.
Import
UnifiedAuditPolicies can be imported using the id
, e.g.
$ pulumi import oci:DataSafe/unifiedAuditPolicy:UnifiedAuditPolicy test_unified_audit_policy "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.