pulumi-oci 3.5.0a1756363728__py3-none-any.whl → 3.6.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- pulumi_oci/__init__.py +128 -0
- pulumi_oci/aivision/__init__.py +12 -0
- pulumi_oci/aivision/_inputs.py +787 -51
- pulumi_oci/aivision/get_model.py +4 -4
- pulumi_oci/aivision/get_models.py +11 -11
- pulumi_oci/aivision/get_project.py +15 -15
- pulumi_oci/aivision/get_projects.py +10 -10
- pulumi_oci/aivision/get_stream_group.py +268 -0
- pulumi_oci/aivision/get_stream_groups.py +177 -0
- pulumi_oci/aivision/get_stream_job.py +296 -0
- pulumi_oci/aivision/get_stream_jobs.py +199 -0
- pulumi_oci/aivision/get_stream_source.py +240 -0
- pulumi_oci/aivision/get_stream_sources.py +199 -0
- pulumi_oci/aivision/get_vision_private_endpoint.py +267 -0
- pulumi_oci/aivision/get_vision_private_endpoints.py +199 -0
- pulumi_oci/aivision/model.py +149 -157
- pulumi_oci/aivision/outputs.py +1920 -116
- pulumi_oci/aivision/project.py +61 -69
- pulumi_oci/aivision/stream_group.py +632 -0
- pulumi_oci/aivision/stream_job.py +744 -0
- pulumi_oci/aivision/stream_source.py +519 -0
- pulumi_oci/aivision/vision_private_endpoint.py +606 -0
- pulumi_oci/cloudguard/_inputs.py +1198 -72
- pulumi_oci/cloudguard/get_managed_list.py +15 -1
- pulumi_oci/cloudguard/managed_list.py +47 -0
- pulumi_oci/cloudguard/outputs.py +2104 -67
- pulumi_oci/config/__init__.pyi +12 -17
- pulumi_oci/config/vars.py +12 -17
- pulumi_oci/core/compute_gpu_memory_fabric.py +28 -0
- pulumi_oci/core/get_compute_gpu_memory_fabric.py +15 -1
- pulumi_oci/core/outputs.py +11 -0
- pulumi_oci/database/_inputs.py +298 -13
- pulumi_oci/database/data_guard_association.py +98 -0
- pulumi_oci/database/database.py +28 -0
- pulumi_oci/database/db_node.py +56 -0
- pulumi_oci/database/db_system.py +108 -14
- pulumi_oci/database/exadb_vm_cluster.py +49 -0
- pulumi_oci/database/exascale_db_storage_vault.py +126 -0
- pulumi_oci/database/get_data_guard_association.py +23 -1
- pulumi_oci/database/get_database.py +15 -1
- pulumi_oci/database/get_db_node.py +29 -1
- pulumi_oci/database/get_db_system_shapes.py +25 -6
- pulumi_oci/database/get_db_system_storage_performances.py +20 -3
- pulumi_oci/database/get_db_versions.py +20 -1
- pulumi_oci/database/get_exadb_vm_cluster.py +15 -1
- pulumi_oci/database/get_exascale_db_storage_vault.py +43 -1
- pulumi_oci/database/get_exascale_db_storage_vaults.py +87 -8
- pulumi_oci/database/get_gi_versions.py +25 -6
- pulumi_oci/database/outputs.py +696 -13
- pulumi_oci/datasafe/__init__.py +24 -0
- pulumi_oci/datasafe/_inputs.py +3669 -1537
- pulumi_oci/datasafe/attribute_set.py +693 -0
- pulumi_oci/datasafe/audit_profile.py +356 -95
- pulumi_oci/datasafe/audit_profile_management.py +389 -129
- pulumi_oci/datasafe/audit_trail.py +47 -0
- pulumi_oci/datasafe/audit_trail_management.py +49 -0
- pulumi_oci/datasafe/get_alerts.py +2 -2
- pulumi_oci/datasafe/get_attribute_set.py +295 -0
- pulumi_oci/datasafe/get_attribute_set_associated_resources.py +188 -0
- pulumi_oci/datasafe/get_attribute_sets.py +340 -0
- pulumi_oci/datasafe/get_audit_archive_retrievals.py +20 -1
- pulumi_oci/datasafe/get_audit_events.py +2 -2
- pulumi_oci/datasafe/get_audit_policies.py +20 -1
- pulumi_oci/datasafe/get_audit_profile.py +78 -8
- pulumi_oci/datasafe/get_audit_profile_target_overrides.py +163 -0
- pulumi_oci/datasafe/get_audit_profiles.py +50 -9
- pulumi_oci/datasafe/get_audit_trail.py +15 -1
- pulumi_oci/datasafe/get_audit_trails.py +20 -1
- pulumi_oci/datasafe/get_database_security_configs.py +20 -1
- pulumi_oci/datasafe/get_discovery_analytics.py +39 -1
- pulumi_oci/datasafe/get_masking_analytics.py +42 -1
- pulumi_oci/datasafe/get_onprem_connectors.py +26 -23
- pulumi_oci/datasafe/get_report.py +43 -1
- pulumi_oci/datasafe/get_reports.py +23 -1
- pulumi_oci/datasafe/get_security_assessment.py +116 -2
- pulumi_oci/datasafe/get_security_assessment_checks.py +264 -0
- pulumi_oci/datasafe/get_security_assessment_finding.py +64 -4
- pulumi_oci/datasafe/get_security_assessment_findings.py +73 -6
- pulumi_oci/datasafe/get_security_assessment_template_analytics.py +362 -0
- pulumi_oci/datasafe/get_security_assessment_template_association_analytics.py +298 -0
- pulumi_oci/datasafe/get_security_assessment_template_baseline_comparison.py +347 -0
- pulumi_oci/datasafe/get_security_assessments.py +68 -2
- pulumi_oci/datasafe/get_security_policies.py +23 -1
- pulumi_oci/datasafe/get_security_policy.py +15 -1
- pulumi_oci/datasafe/get_security_policy_config.py +296 -0
- pulumi_oci/datasafe/get_security_policy_configs.py +342 -0
- pulumi_oci/datasafe/get_security_policy_deployment.py +52 -2
- pulumi_oci/datasafe/get_security_policy_deployment_security_policy_entry_state.py +49 -4
- pulumi_oci/datasafe/get_security_policy_deployment_security_policy_entry_states.py +47 -6
- pulumi_oci/datasafe/get_security_policy_deployments.py +29 -7
- pulumi_oci/datasafe/get_sensitive_column_analytics.py +20 -1
- pulumi_oci/datasafe/get_sql_collection_analytics.py +20 -1
- pulumi_oci/datasafe/get_sql_collections.py +20 -1
- pulumi_oci/datasafe/get_sql_firewall_allowed_sql_analytics.py +2 -2
- pulumi_oci/datasafe/get_sql_firewall_allowed_sqls.py +2 -2
- pulumi_oci/datasafe/get_sql_firewall_violation_analytics.py +2 -2
- pulumi_oci/datasafe/get_sql_firewall_violations.py +2 -2
- pulumi_oci/datasafe/get_target_alert_policy_associations.py +0 -34
- pulumi_oci/datasafe/get_target_database_group.py +296 -0
- pulumi_oci/datasafe/get_target_database_group_group_member.py +146 -0
- pulumi_oci/datasafe/get_target_database_groups.py +313 -0
- pulumi_oci/datasafe/get_unified_audit_policies.py +386 -0
- pulumi_oci/datasafe/get_unified_audit_policy.py +338 -0
- pulumi_oci/datasafe/get_unified_audit_policy_definition.py +309 -0
- pulumi_oci/datasafe/get_unified_audit_policy_definitions.py +334 -0
- pulumi_oci/datasafe/get_user_assessment.py +29 -1
- pulumi_oci/datasafe/get_user_assessments.py +45 -1
- pulumi_oci/datasafe/outputs.py +6964 -192
- pulumi_oci/datasafe/report.py +84 -0
- pulumi_oci/datasafe/report_definition.py +4 -0
- pulumi_oci/datasafe/security_assessment.py +425 -82
- pulumi_oci/datasafe/security_assessment_check.py +456 -0
- pulumi_oci/datasafe/security_assessment_finding.py +818 -0
- pulumi_oci/datasafe/security_policy.py +94 -77
- pulumi_oci/datasafe/security_policy_config.py +698 -0
- pulumi_oci/datasafe/security_policy_deployment.py +272 -67
- pulumi_oci/datasafe/security_policy_deployment_management.py +266 -42
- pulumi_oci/datasafe/security_policy_management.py +87 -30
- pulumi_oci/datasafe/target_alert_policy_association.py +7 -77
- pulumi_oci/datasafe/target_database.py +4 -0
- pulumi_oci/datasafe/target_database_group.py +679 -0
- pulumi_oci/datasafe/target_database_peer_target_database.py +2 -0
- pulumi_oci/datasafe/unified_audit_policy.py +836 -0
- pulumi_oci/datasafe/unified_audit_policy_definition.py +687 -0
- pulumi_oci/datasafe/user_assessment.py +105 -28
- pulumi_oci/disasterrecovery/_inputs.py +231 -3
- pulumi_oci/disasterrecovery/dr_protection_group.py +24 -0
- pulumi_oci/disasterrecovery/outputs.py +446 -12
- pulumi_oci/generativeai/_inputs.py +572 -63
- pulumi_oci/generativeai/agent_data_ingestion_job.py +48 -0
- pulumi_oci/generativeai/agent_data_source.py +7 -81
- pulumi_oci/generativeai/agent_knowledge_base.py +35 -25
- pulumi_oci/generativeai/agent_tool.py +172 -0
- pulumi_oci/generativeai/get_agent_data_ingestion_job.py +26 -1
- pulumi_oci/generativeai/get_agent_data_source.py +1 -5
- pulumi_oci/generativeai/get_agent_data_sources.py +0 -4
- pulumi_oci/generativeai/get_agent_knowledge_base.py +16 -6
- pulumi_oci/generativeai/get_agent_knowledge_bases.py +0 -4
- pulumi_oci/generativeai/outputs.py +1128 -106
- pulumi_oci/goldengate/deployment.py +94 -0
- pulumi_oci/goldengate/get_deployment.py +29 -1
- pulumi_oci/goldengate/get_deployments.py +23 -1
- pulumi_oci/goldengate/outputs.py +35 -2
- pulumi_oci/mysql/_inputs.py +221 -0
- pulumi_oci/mysql/get_mysql_backup.py +40 -4
- pulumi_oci/mysql/get_mysql_backups.py +2 -2
- pulumi_oci/mysql/mysql_backup.py +119 -3
- pulumi_oci/mysql/outputs.py +343 -957
- pulumi_oci/oci/__init__.py +17 -0
- pulumi_oci/oci/_inputs.py +676 -15
- pulumi_oci/oci/dbmulticloud_multi_cloud_resource_discovery.py +103 -54
- pulumi_oci/oci/dbmulticloud_oracle_db_azure_blob_container.py +45 -45
- pulumi_oci/oci/dbmulticloud_oracle_db_azure_blob_mount.py +42 -44
- pulumi_oci/oci/dbmulticloud_oracle_db_azure_connector.py +100 -72
- pulumi_oci/oci/dbmulticloud_oracle_db_azure_vault.py +74 -74
- pulumi_oci/oci/dbmulticloud_oracle_db_azure_vault_association.py +50 -50
- pulumi_oci/oci/dbmulticloud_oracle_db_gcp_identity_connector.py +924 -0
- pulumi_oci/oci/dbmulticloud_oracle_db_gcp_key_ring.py +762 -0
- pulumi_oci/oci/get_dbmulticloud_multi_cloud_resource_discoveries.py +37 -15
- pulumi_oci/oci/get_dbmulticloud_multi_cloud_resource_discovery.py +26 -12
- pulumi_oci/oci/get_dbmulticloud_oracle_db_azure_blob_container.py +12 -12
- pulumi_oci/oci/get_dbmulticloud_oracle_db_azure_blob_containers.py +15 -15
- pulumi_oci/oci/get_dbmulticloud_oracle_db_azure_blob_mount.py +12 -12
- pulumi_oci/oci/get_dbmulticloud_oracle_db_azure_blob_mounts.py +15 -15
- pulumi_oci/oci/get_dbmulticloud_oracle_db_azure_connector.py +30 -16
- pulumi_oci/oci/get_dbmulticloud_oracle_db_azure_connectors.py +11 -11
- pulumi_oci/oci/get_dbmulticloud_oracle_db_azure_key.py +41 -13
- pulumi_oci/oci/get_dbmulticloud_oracle_db_azure_keys.py +12 -12
- pulumi_oci/oci/get_dbmulticloud_oracle_db_azure_vault.py +17 -17
- pulumi_oci/oci/get_dbmulticloud_oracle_db_azure_vault_association.py +14 -14
- pulumi_oci/oci/get_dbmulticloud_oracle_db_azure_vault_associations.py +15 -15
- pulumi_oci/oci/get_dbmulticloud_oracle_db_azure_vaults.py +14 -14
- pulumi_oci/oci/get_dbmulticloud_oracle_db_gcp_identity_connector.py +366 -0
- pulumi_oci/oci/get_dbmulticloud_oracle_db_gcp_identity_connectors.py +213 -0
- pulumi_oci/oci/get_dbmulticloud_oracle_db_gcp_key.py +295 -0
- pulumi_oci/oci/get_dbmulticloud_oracle_db_gcp_key_ring.py +309 -0
- pulumi_oci/oci/get_dbmulticloud_oracle_db_gcp_key_rings.py +229 -0
- pulumi_oci/oci/get_dbmulticloud_oracle_db_gcp_keys.py +232 -0
- pulumi_oci/oci/get_managed_kafka_kafka_cluster.py +380 -0
- pulumi_oci/oci/get_managed_kafka_kafka_cluster_config.py +254 -0
- pulumi_oci/oci/get_managed_kafka_kafka_cluster_config_version.py +177 -0
- pulumi_oci/oci/get_managed_kafka_kafka_cluster_config_versions.py +144 -0
- pulumi_oci/oci/get_managed_kafka_kafka_cluster_configs.py +199 -0
- pulumi_oci/oci/get_managed_kafka_kafka_clusters.py +199 -0
- pulumi_oci/oci/managed_kafka_kafka_cluster.py +984 -0
- pulumi_oci/oci/managed_kafka_kafka_cluster_config.py +549 -0
- pulumi_oci/oci/managed_kafka_kafka_cluster_superusers_management.py +352 -0
- pulumi_oci/oci/outputs.py +2051 -142
- pulumi_oci/provider.py +44 -63
- pulumi_oci/pulumi-plugin.json +1 -1
- {pulumi_oci-3.5.0a1756363728.dist-info → pulumi_oci-3.6.0.dist-info}/METADATA +1 -1
- {pulumi_oci-3.5.0a1756363728.dist-info → pulumi_oci-3.6.0.dist-info}/RECORD +194 -141
- {pulumi_oci-3.5.0a1756363728.dist-info → pulumi_oci-3.6.0.dist-info}/WHEEL +0 -0
- {pulumi_oci-3.5.0a1756363728.dist-info → pulumi_oci-3.6.0.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,296 @@
|
|
1
|
+
# coding=utf-8
|
2
|
+
# *** WARNING: this file was generated by pulumi-language-python. ***
|
3
|
+
# *** Do not edit by hand unless you're certain you know what you are doing! ***
|
4
|
+
|
5
|
+
import builtins as _builtins
|
6
|
+
import warnings
|
7
|
+
import sys
|
8
|
+
import pulumi
|
9
|
+
import pulumi.runtime
|
10
|
+
from typing import Any, Mapping, Optional, Sequence, Union, overload
|
11
|
+
if sys.version_info >= (3, 11):
|
12
|
+
from typing import NotRequired, TypedDict, TypeAlias
|
13
|
+
else:
|
14
|
+
from typing_extensions import NotRequired, TypedDict, TypeAlias
|
15
|
+
from .. import _utilities
|
16
|
+
from . import outputs
|
17
|
+
|
18
|
+
__all__ = [
|
19
|
+
'GetSecurityPolicyConfigResult',
|
20
|
+
'AwaitableGetSecurityPolicyConfigResult',
|
21
|
+
'get_security_policy_config',
|
22
|
+
'get_security_policy_config_output',
|
23
|
+
]
|
24
|
+
|
25
|
+
@pulumi.output_type
|
26
|
+
class GetSecurityPolicyConfigResult:
|
27
|
+
"""
|
28
|
+
A collection of values returned by getSecurityPolicyConfig.
|
29
|
+
"""
|
30
|
+
def __init__(__self__, compartment_id=None, defined_tags=None, description=None, display_name=None, firewall_configs=None, freeform_tags=None, id=None, lifecycle_details=None, security_policy_config_id=None, security_policy_id=None, state=None, system_tags=None, time_created=None, time_updated=None, unified_audit_policy_configs=None):
|
31
|
+
if compartment_id and not isinstance(compartment_id, str):
|
32
|
+
raise TypeError("Expected argument 'compartment_id' to be a str")
|
33
|
+
pulumi.set(__self__, "compartment_id", compartment_id)
|
34
|
+
if defined_tags and not isinstance(defined_tags, dict):
|
35
|
+
raise TypeError("Expected argument 'defined_tags' to be a dict")
|
36
|
+
pulumi.set(__self__, "defined_tags", defined_tags)
|
37
|
+
if description and not isinstance(description, str):
|
38
|
+
raise TypeError("Expected argument 'description' to be a str")
|
39
|
+
pulumi.set(__self__, "description", description)
|
40
|
+
if display_name and not isinstance(display_name, str):
|
41
|
+
raise TypeError("Expected argument 'display_name' to be a str")
|
42
|
+
pulumi.set(__self__, "display_name", display_name)
|
43
|
+
if firewall_configs and not isinstance(firewall_configs, list):
|
44
|
+
raise TypeError("Expected argument 'firewall_configs' to be a list")
|
45
|
+
pulumi.set(__self__, "firewall_configs", firewall_configs)
|
46
|
+
if freeform_tags and not isinstance(freeform_tags, dict):
|
47
|
+
raise TypeError("Expected argument 'freeform_tags' to be a dict")
|
48
|
+
pulumi.set(__self__, "freeform_tags", freeform_tags)
|
49
|
+
if id and not isinstance(id, str):
|
50
|
+
raise TypeError("Expected argument 'id' to be a str")
|
51
|
+
pulumi.set(__self__, "id", id)
|
52
|
+
if lifecycle_details and not isinstance(lifecycle_details, str):
|
53
|
+
raise TypeError("Expected argument 'lifecycle_details' to be a str")
|
54
|
+
pulumi.set(__self__, "lifecycle_details", lifecycle_details)
|
55
|
+
if security_policy_config_id and not isinstance(security_policy_config_id, str):
|
56
|
+
raise TypeError("Expected argument 'security_policy_config_id' to be a str")
|
57
|
+
pulumi.set(__self__, "security_policy_config_id", security_policy_config_id)
|
58
|
+
if security_policy_id and not isinstance(security_policy_id, str):
|
59
|
+
raise TypeError("Expected argument 'security_policy_id' to be a str")
|
60
|
+
pulumi.set(__self__, "security_policy_id", security_policy_id)
|
61
|
+
if state and not isinstance(state, str):
|
62
|
+
raise TypeError("Expected argument 'state' to be a str")
|
63
|
+
pulumi.set(__self__, "state", state)
|
64
|
+
if system_tags and not isinstance(system_tags, dict):
|
65
|
+
raise TypeError("Expected argument 'system_tags' to be a dict")
|
66
|
+
pulumi.set(__self__, "system_tags", system_tags)
|
67
|
+
if time_created and not isinstance(time_created, str):
|
68
|
+
raise TypeError("Expected argument 'time_created' to be a str")
|
69
|
+
pulumi.set(__self__, "time_created", time_created)
|
70
|
+
if time_updated and not isinstance(time_updated, str):
|
71
|
+
raise TypeError("Expected argument 'time_updated' to be a str")
|
72
|
+
pulumi.set(__self__, "time_updated", time_updated)
|
73
|
+
if unified_audit_policy_configs and not isinstance(unified_audit_policy_configs, list):
|
74
|
+
raise TypeError("Expected argument 'unified_audit_policy_configs' to be a list")
|
75
|
+
pulumi.set(__self__, "unified_audit_policy_configs", unified_audit_policy_configs)
|
76
|
+
|
77
|
+
@_builtins.property
|
78
|
+
@pulumi.getter(name="compartmentId")
|
79
|
+
def compartment_id(self) -> _builtins.str:
|
80
|
+
"""
|
81
|
+
The OCID of the compartment containing the security policy configuration.
|
82
|
+
"""
|
83
|
+
return pulumi.get(self, "compartment_id")
|
84
|
+
|
85
|
+
@_builtins.property
|
86
|
+
@pulumi.getter(name="definedTags")
|
87
|
+
def defined_tags(self) -> Mapping[str, _builtins.str]:
|
88
|
+
"""
|
89
|
+
Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm) Example: `{"Operations.CostCenter": "42"}`
|
90
|
+
"""
|
91
|
+
return pulumi.get(self, "defined_tags")
|
92
|
+
|
93
|
+
@_builtins.property
|
94
|
+
@pulumi.getter
|
95
|
+
def description(self) -> _builtins.str:
|
96
|
+
"""
|
97
|
+
The description of the security policy configuration.
|
98
|
+
"""
|
99
|
+
return pulumi.get(self, "description")
|
100
|
+
|
101
|
+
@_builtins.property
|
102
|
+
@pulumi.getter(name="displayName")
|
103
|
+
def display_name(self) -> _builtins.str:
|
104
|
+
"""
|
105
|
+
The display name of the security policy configuration.
|
106
|
+
"""
|
107
|
+
return pulumi.get(self, "display_name")
|
108
|
+
|
109
|
+
@_builtins.property
|
110
|
+
@pulumi.getter(name="firewallConfigs")
|
111
|
+
def firewall_configs(self) -> Sequence['outputs.GetSecurityPolicyConfigFirewallConfigResult']:
|
112
|
+
"""
|
113
|
+
The SQL Firewall related configurations.
|
114
|
+
"""
|
115
|
+
return pulumi.get(self, "firewall_configs")
|
116
|
+
|
117
|
+
@_builtins.property
|
118
|
+
@pulumi.getter(name="freeformTags")
|
119
|
+
def freeform_tags(self) -> Mapping[str, _builtins.str]:
|
120
|
+
"""
|
121
|
+
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](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm) Example: `{"Department": "Finance"}`
|
122
|
+
"""
|
123
|
+
return pulumi.get(self, "freeform_tags")
|
124
|
+
|
125
|
+
@_builtins.property
|
126
|
+
@pulumi.getter
|
127
|
+
def id(self) -> _builtins.str:
|
128
|
+
"""
|
129
|
+
The OCID of the security policy configuration.
|
130
|
+
"""
|
131
|
+
return pulumi.get(self, "id")
|
132
|
+
|
133
|
+
@_builtins.property
|
134
|
+
@pulumi.getter(name="lifecycleDetails")
|
135
|
+
def lifecycle_details(self) -> _builtins.str:
|
136
|
+
"""
|
137
|
+
Details about the current state of the security policy configuration.
|
138
|
+
"""
|
139
|
+
return pulumi.get(self, "lifecycle_details")
|
140
|
+
|
141
|
+
@_builtins.property
|
142
|
+
@pulumi.getter(name="securityPolicyConfigId")
|
143
|
+
def security_policy_config_id(self) -> _builtins.str:
|
144
|
+
return pulumi.get(self, "security_policy_config_id")
|
145
|
+
|
146
|
+
@_builtins.property
|
147
|
+
@pulumi.getter(name="securityPolicyId")
|
148
|
+
def security_policy_id(self) -> _builtins.str:
|
149
|
+
"""
|
150
|
+
The OCID of the security policy corresponding to the security policy configuration.
|
151
|
+
"""
|
152
|
+
return pulumi.get(self, "security_policy_id")
|
153
|
+
|
154
|
+
@_builtins.property
|
155
|
+
@pulumi.getter
|
156
|
+
def state(self) -> _builtins.str:
|
157
|
+
"""
|
158
|
+
The current state of the security policy configuration.
|
159
|
+
"""
|
160
|
+
return pulumi.get(self, "state")
|
161
|
+
|
162
|
+
@_builtins.property
|
163
|
+
@pulumi.getter(name="systemTags")
|
164
|
+
def system_tags(self) -> Mapping[str, _builtins.str]:
|
165
|
+
"""
|
166
|
+
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"}`
|
167
|
+
"""
|
168
|
+
return pulumi.get(self, "system_tags")
|
169
|
+
|
170
|
+
@_builtins.property
|
171
|
+
@pulumi.getter(name="timeCreated")
|
172
|
+
def time_created(self) -> _builtins.str:
|
173
|
+
"""
|
174
|
+
The time the security policy configuration was created, in the format defined by RFC3339.
|
175
|
+
"""
|
176
|
+
return pulumi.get(self, "time_created")
|
177
|
+
|
178
|
+
@_builtins.property
|
179
|
+
@pulumi.getter(name="timeUpdated")
|
180
|
+
def time_updated(self) -> _builtins.str:
|
181
|
+
"""
|
182
|
+
The date and time the security policy configuration was last updated, in the format defined by RFC3339.
|
183
|
+
"""
|
184
|
+
return pulumi.get(self, "time_updated")
|
185
|
+
|
186
|
+
@_builtins.property
|
187
|
+
@pulumi.getter(name="unifiedAuditPolicyConfigs")
|
188
|
+
def unified_audit_policy_configs(self) -> Sequence['outputs.GetSecurityPolicyConfigUnifiedAuditPolicyConfigResult']:
|
189
|
+
"""
|
190
|
+
The unified audit policy related configurations.
|
191
|
+
"""
|
192
|
+
return pulumi.get(self, "unified_audit_policy_configs")
|
193
|
+
|
194
|
+
|
195
|
+
class AwaitableGetSecurityPolicyConfigResult(GetSecurityPolicyConfigResult):
|
196
|
+
# pylint: disable=using-constant-test
|
197
|
+
def __await__(self):
|
198
|
+
if False:
|
199
|
+
yield self
|
200
|
+
return GetSecurityPolicyConfigResult(
|
201
|
+
compartment_id=self.compartment_id,
|
202
|
+
defined_tags=self.defined_tags,
|
203
|
+
description=self.description,
|
204
|
+
display_name=self.display_name,
|
205
|
+
firewall_configs=self.firewall_configs,
|
206
|
+
freeform_tags=self.freeform_tags,
|
207
|
+
id=self.id,
|
208
|
+
lifecycle_details=self.lifecycle_details,
|
209
|
+
security_policy_config_id=self.security_policy_config_id,
|
210
|
+
security_policy_id=self.security_policy_id,
|
211
|
+
state=self.state,
|
212
|
+
system_tags=self.system_tags,
|
213
|
+
time_created=self.time_created,
|
214
|
+
time_updated=self.time_updated,
|
215
|
+
unified_audit_policy_configs=self.unified_audit_policy_configs)
|
216
|
+
|
217
|
+
|
218
|
+
def get_security_policy_config(security_policy_config_id: Optional[_builtins.str] = None,
|
219
|
+
opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetSecurityPolicyConfigResult:
|
220
|
+
"""
|
221
|
+
This data source provides details about a specific Security Policy Config resource in Oracle Cloud Infrastructure Data Safe service.
|
222
|
+
|
223
|
+
Gets a security policy configuration by identifier.
|
224
|
+
|
225
|
+
## Example Usage
|
226
|
+
|
227
|
+
```python
|
228
|
+
import pulumi
|
229
|
+
import pulumi_oci as oci
|
230
|
+
|
231
|
+
test_security_policy_config = oci.DataSafe.get_security_policy_config(security_policy_config_id=test_security_policy_config_oci_data_safe_security_policy_config["id"])
|
232
|
+
```
|
233
|
+
|
234
|
+
|
235
|
+
:param _builtins.str security_policy_config_id: The OCID of the security policy configuration resource.
|
236
|
+
"""
|
237
|
+
__args__ = dict()
|
238
|
+
__args__['securityPolicyConfigId'] = security_policy_config_id
|
239
|
+
opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
240
|
+
__ret__ = pulumi.runtime.invoke('oci:DataSafe/getSecurityPolicyConfig:getSecurityPolicyConfig', __args__, opts=opts, typ=GetSecurityPolicyConfigResult).value
|
241
|
+
|
242
|
+
return AwaitableGetSecurityPolicyConfigResult(
|
243
|
+
compartment_id=pulumi.get(__ret__, 'compartment_id'),
|
244
|
+
defined_tags=pulumi.get(__ret__, 'defined_tags'),
|
245
|
+
description=pulumi.get(__ret__, 'description'),
|
246
|
+
display_name=pulumi.get(__ret__, 'display_name'),
|
247
|
+
firewall_configs=pulumi.get(__ret__, 'firewall_configs'),
|
248
|
+
freeform_tags=pulumi.get(__ret__, 'freeform_tags'),
|
249
|
+
id=pulumi.get(__ret__, 'id'),
|
250
|
+
lifecycle_details=pulumi.get(__ret__, 'lifecycle_details'),
|
251
|
+
security_policy_config_id=pulumi.get(__ret__, 'security_policy_config_id'),
|
252
|
+
security_policy_id=pulumi.get(__ret__, 'security_policy_id'),
|
253
|
+
state=pulumi.get(__ret__, 'state'),
|
254
|
+
system_tags=pulumi.get(__ret__, 'system_tags'),
|
255
|
+
time_created=pulumi.get(__ret__, 'time_created'),
|
256
|
+
time_updated=pulumi.get(__ret__, 'time_updated'),
|
257
|
+
unified_audit_policy_configs=pulumi.get(__ret__, 'unified_audit_policy_configs'))
|
258
|
+
def get_security_policy_config_output(security_policy_config_id: Optional[pulumi.Input[_builtins.str]] = None,
|
259
|
+
opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetSecurityPolicyConfigResult]:
|
260
|
+
"""
|
261
|
+
This data source provides details about a specific Security Policy Config resource in Oracle Cloud Infrastructure Data Safe service.
|
262
|
+
|
263
|
+
Gets a security policy configuration by identifier.
|
264
|
+
|
265
|
+
## Example Usage
|
266
|
+
|
267
|
+
```python
|
268
|
+
import pulumi
|
269
|
+
import pulumi_oci as oci
|
270
|
+
|
271
|
+
test_security_policy_config = oci.DataSafe.get_security_policy_config(security_policy_config_id=test_security_policy_config_oci_data_safe_security_policy_config["id"])
|
272
|
+
```
|
273
|
+
|
274
|
+
|
275
|
+
:param _builtins.str security_policy_config_id: The OCID of the security policy configuration resource.
|
276
|
+
"""
|
277
|
+
__args__ = dict()
|
278
|
+
__args__['securityPolicyConfigId'] = security_policy_config_id
|
279
|
+
opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
280
|
+
__ret__ = pulumi.runtime.invoke_output('oci:DataSafe/getSecurityPolicyConfig:getSecurityPolicyConfig', __args__, opts=opts, typ=GetSecurityPolicyConfigResult)
|
281
|
+
return __ret__.apply(lambda __response__: GetSecurityPolicyConfigResult(
|
282
|
+
compartment_id=pulumi.get(__response__, 'compartment_id'),
|
283
|
+
defined_tags=pulumi.get(__response__, 'defined_tags'),
|
284
|
+
description=pulumi.get(__response__, 'description'),
|
285
|
+
display_name=pulumi.get(__response__, 'display_name'),
|
286
|
+
firewall_configs=pulumi.get(__response__, 'firewall_configs'),
|
287
|
+
freeform_tags=pulumi.get(__response__, 'freeform_tags'),
|
288
|
+
id=pulumi.get(__response__, 'id'),
|
289
|
+
lifecycle_details=pulumi.get(__response__, 'lifecycle_details'),
|
290
|
+
security_policy_config_id=pulumi.get(__response__, 'security_policy_config_id'),
|
291
|
+
security_policy_id=pulumi.get(__response__, 'security_policy_id'),
|
292
|
+
state=pulumi.get(__response__, 'state'),
|
293
|
+
system_tags=pulumi.get(__response__, 'system_tags'),
|
294
|
+
time_created=pulumi.get(__response__, 'time_created'),
|
295
|
+
time_updated=pulumi.get(__response__, 'time_updated'),
|
296
|
+
unified_audit_policy_configs=pulumi.get(__response__, 'unified_audit_policy_configs')))
|
@@ -0,0 +1,342 @@
|
|
1
|
+
# coding=utf-8
|
2
|
+
# *** WARNING: this file was generated by pulumi-language-python. ***
|
3
|
+
# *** Do not edit by hand unless you're certain you know what you are doing! ***
|
4
|
+
|
5
|
+
import builtins as _builtins
|
6
|
+
import warnings
|
7
|
+
import sys
|
8
|
+
import pulumi
|
9
|
+
import pulumi.runtime
|
10
|
+
from typing import Any, Mapping, Optional, Sequence, Union, overload
|
11
|
+
if sys.version_info >= (3, 11):
|
12
|
+
from typing import NotRequired, TypedDict, TypeAlias
|
13
|
+
else:
|
14
|
+
from typing_extensions import NotRequired, TypedDict, TypeAlias
|
15
|
+
from .. import _utilities
|
16
|
+
from . import outputs
|
17
|
+
from ._inputs import *
|
18
|
+
|
19
|
+
__all__ = [
|
20
|
+
'GetSecurityPolicyConfigsResult',
|
21
|
+
'AwaitableGetSecurityPolicyConfigsResult',
|
22
|
+
'get_security_policy_configs',
|
23
|
+
'get_security_policy_configs_output',
|
24
|
+
]
|
25
|
+
|
26
|
+
@pulumi.output_type
|
27
|
+
class GetSecurityPolicyConfigsResult:
|
28
|
+
"""
|
29
|
+
A collection of values returned by getSecurityPolicyConfigs.
|
30
|
+
"""
|
31
|
+
def __init__(__self__, access_level=None, compartment_id=None, compartment_id_in_subtree=None, display_name=None, filters=None, id=None, security_policy_config_collections=None, security_policy_config_id=None, security_policy_id=None, state=None, time_created_greater_than_or_equal_to=None, time_created_less_than=None):
|
32
|
+
if access_level and not isinstance(access_level, str):
|
33
|
+
raise TypeError("Expected argument 'access_level' to be a str")
|
34
|
+
pulumi.set(__self__, "access_level", access_level)
|
35
|
+
if compartment_id and not isinstance(compartment_id, str):
|
36
|
+
raise TypeError("Expected argument 'compartment_id' to be a str")
|
37
|
+
pulumi.set(__self__, "compartment_id", compartment_id)
|
38
|
+
if compartment_id_in_subtree and not isinstance(compartment_id_in_subtree, bool):
|
39
|
+
raise TypeError("Expected argument 'compartment_id_in_subtree' to be a bool")
|
40
|
+
pulumi.set(__self__, "compartment_id_in_subtree", compartment_id_in_subtree)
|
41
|
+
if display_name and not isinstance(display_name, str):
|
42
|
+
raise TypeError("Expected argument 'display_name' to be a str")
|
43
|
+
pulumi.set(__self__, "display_name", display_name)
|
44
|
+
if filters and not isinstance(filters, list):
|
45
|
+
raise TypeError("Expected argument 'filters' to be a list")
|
46
|
+
pulumi.set(__self__, "filters", filters)
|
47
|
+
if id and not isinstance(id, str):
|
48
|
+
raise TypeError("Expected argument 'id' to be a str")
|
49
|
+
pulumi.set(__self__, "id", id)
|
50
|
+
if security_policy_config_collections and not isinstance(security_policy_config_collections, list):
|
51
|
+
raise TypeError("Expected argument 'security_policy_config_collections' to be a list")
|
52
|
+
pulumi.set(__self__, "security_policy_config_collections", security_policy_config_collections)
|
53
|
+
if security_policy_config_id and not isinstance(security_policy_config_id, str):
|
54
|
+
raise TypeError("Expected argument 'security_policy_config_id' to be a str")
|
55
|
+
pulumi.set(__self__, "security_policy_config_id", security_policy_config_id)
|
56
|
+
if security_policy_id and not isinstance(security_policy_id, str):
|
57
|
+
raise TypeError("Expected argument 'security_policy_id' to be a str")
|
58
|
+
pulumi.set(__self__, "security_policy_id", security_policy_id)
|
59
|
+
if state and not isinstance(state, str):
|
60
|
+
raise TypeError("Expected argument 'state' to be a str")
|
61
|
+
pulumi.set(__self__, "state", state)
|
62
|
+
if time_created_greater_than_or_equal_to and not isinstance(time_created_greater_than_or_equal_to, str):
|
63
|
+
raise TypeError("Expected argument 'time_created_greater_than_or_equal_to' to be a str")
|
64
|
+
pulumi.set(__self__, "time_created_greater_than_or_equal_to", time_created_greater_than_or_equal_to)
|
65
|
+
if time_created_less_than and not isinstance(time_created_less_than, str):
|
66
|
+
raise TypeError("Expected argument 'time_created_less_than' to be a str")
|
67
|
+
pulumi.set(__self__, "time_created_less_than", time_created_less_than)
|
68
|
+
|
69
|
+
@_builtins.property
|
70
|
+
@pulumi.getter(name="accessLevel")
|
71
|
+
def access_level(self) -> Optional[_builtins.str]:
|
72
|
+
return pulumi.get(self, "access_level")
|
73
|
+
|
74
|
+
@_builtins.property
|
75
|
+
@pulumi.getter(name="compartmentId")
|
76
|
+
def compartment_id(self) -> _builtins.str:
|
77
|
+
"""
|
78
|
+
The OCID of the compartment containing the security policy configuration.
|
79
|
+
"""
|
80
|
+
return pulumi.get(self, "compartment_id")
|
81
|
+
|
82
|
+
@_builtins.property
|
83
|
+
@pulumi.getter(name="compartmentIdInSubtree")
|
84
|
+
def compartment_id_in_subtree(self) -> Optional[_builtins.bool]:
|
85
|
+
return pulumi.get(self, "compartment_id_in_subtree")
|
86
|
+
|
87
|
+
@_builtins.property
|
88
|
+
@pulumi.getter(name="displayName")
|
89
|
+
def display_name(self) -> Optional[_builtins.str]:
|
90
|
+
"""
|
91
|
+
The display name of the security policy configuration.
|
92
|
+
"""
|
93
|
+
return pulumi.get(self, "display_name")
|
94
|
+
|
95
|
+
@_builtins.property
|
96
|
+
@pulumi.getter
|
97
|
+
def filters(self) -> Optional[Sequence['outputs.GetSecurityPolicyConfigsFilterResult']]:
|
98
|
+
return pulumi.get(self, "filters")
|
99
|
+
|
100
|
+
@_builtins.property
|
101
|
+
@pulumi.getter
|
102
|
+
def id(self) -> _builtins.str:
|
103
|
+
"""
|
104
|
+
The provider-assigned unique ID for this managed resource.
|
105
|
+
"""
|
106
|
+
return pulumi.get(self, "id")
|
107
|
+
|
108
|
+
@_builtins.property
|
109
|
+
@pulumi.getter(name="securityPolicyConfigCollections")
|
110
|
+
def security_policy_config_collections(self) -> Sequence['outputs.GetSecurityPolicyConfigsSecurityPolicyConfigCollectionResult']:
|
111
|
+
"""
|
112
|
+
The list of security_policy_config_collection.
|
113
|
+
"""
|
114
|
+
return pulumi.get(self, "security_policy_config_collections")
|
115
|
+
|
116
|
+
@_builtins.property
|
117
|
+
@pulumi.getter(name="securityPolicyConfigId")
|
118
|
+
def security_policy_config_id(self) -> Optional[_builtins.str]:
|
119
|
+
return pulumi.get(self, "security_policy_config_id")
|
120
|
+
|
121
|
+
@_builtins.property
|
122
|
+
@pulumi.getter(name="securityPolicyId")
|
123
|
+
def security_policy_id(self) -> Optional[_builtins.str]:
|
124
|
+
"""
|
125
|
+
The OCID of the security policy corresponding to the security policy configuration.
|
126
|
+
"""
|
127
|
+
return pulumi.get(self, "security_policy_id")
|
128
|
+
|
129
|
+
@_builtins.property
|
130
|
+
@pulumi.getter
|
131
|
+
def state(self) -> Optional[_builtins.str]:
|
132
|
+
"""
|
133
|
+
The current state of the security policy configuration.
|
134
|
+
"""
|
135
|
+
return pulumi.get(self, "state")
|
136
|
+
|
137
|
+
@_builtins.property
|
138
|
+
@pulumi.getter(name="timeCreatedGreaterThanOrEqualTo")
|
139
|
+
def time_created_greater_than_or_equal_to(self) -> Optional[_builtins.str]:
|
140
|
+
return pulumi.get(self, "time_created_greater_than_or_equal_to")
|
141
|
+
|
142
|
+
@_builtins.property
|
143
|
+
@pulumi.getter(name="timeCreatedLessThan")
|
144
|
+
def time_created_less_than(self) -> Optional[_builtins.str]:
|
145
|
+
return pulumi.get(self, "time_created_less_than")
|
146
|
+
|
147
|
+
|
148
|
+
class AwaitableGetSecurityPolicyConfigsResult(GetSecurityPolicyConfigsResult):
|
149
|
+
# pylint: disable=using-constant-test
|
150
|
+
def __await__(self):
|
151
|
+
if False:
|
152
|
+
yield self
|
153
|
+
return GetSecurityPolicyConfigsResult(
|
154
|
+
access_level=self.access_level,
|
155
|
+
compartment_id=self.compartment_id,
|
156
|
+
compartment_id_in_subtree=self.compartment_id_in_subtree,
|
157
|
+
display_name=self.display_name,
|
158
|
+
filters=self.filters,
|
159
|
+
id=self.id,
|
160
|
+
security_policy_config_collections=self.security_policy_config_collections,
|
161
|
+
security_policy_config_id=self.security_policy_config_id,
|
162
|
+
security_policy_id=self.security_policy_id,
|
163
|
+
state=self.state,
|
164
|
+
time_created_greater_than_or_equal_to=self.time_created_greater_than_or_equal_to,
|
165
|
+
time_created_less_than=self.time_created_less_than)
|
166
|
+
|
167
|
+
|
168
|
+
def get_security_policy_configs(access_level: Optional[_builtins.str] = None,
|
169
|
+
compartment_id: Optional[_builtins.str] = None,
|
170
|
+
compartment_id_in_subtree: Optional[_builtins.bool] = None,
|
171
|
+
display_name: Optional[_builtins.str] = None,
|
172
|
+
filters: Optional[Sequence[Union['GetSecurityPolicyConfigsFilterArgs', 'GetSecurityPolicyConfigsFilterArgsDict']]] = None,
|
173
|
+
security_policy_config_id: Optional[_builtins.str] = None,
|
174
|
+
security_policy_id: Optional[_builtins.str] = None,
|
175
|
+
state: Optional[_builtins.str] = None,
|
176
|
+
time_created_greater_than_or_equal_to: Optional[_builtins.str] = None,
|
177
|
+
time_created_less_than: Optional[_builtins.str] = None,
|
178
|
+
opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetSecurityPolicyConfigsResult:
|
179
|
+
"""
|
180
|
+
This data source provides the list of Security Policy Configs in Oracle Cloud Infrastructure Data Safe service.
|
181
|
+
|
182
|
+
Retrieves a list of all security policy configurations in Data Safe.
|
183
|
+
|
184
|
+
The ListSecurityPolicyConfigs operation returns only the security policy configurations in the specified `compartmentId`.
|
185
|
+
|
186
|
+
The parameter `accessLevel` specifies whether to return only those compartments for which the
|
187
|
+
requestor has INSPECT permissions on at least one resource directly
|
188
|
+
or indirectly (ACCESSIBLE) (the resource can be in a subcompartment) or to return Not Authorized if
|
189
|
+
Principal doesn't have access to even one of the child compartments. This is valid only when
|
190
|
+
`compartmentIdInSubtree` is set to `true`.
|
191
|
+
|
192
|
+
The parameter `compartmentIdInSubtree` applies when you perform ListSecurityPolicyConfigs on the
|
193
|
+
`compartmentId` passed and when it is set to true, the entire hierarchy of compartments can be returned.
|
194
|
+
To get a full list of all compartments and subcompartments in the tenancy (root compartment),
|
195
|
+
set the parameter `compartmentIdInSubtree` to true and `accessLevel` to ACCESSIBLE.
|
196
|
+
|
197
|
+
## Example Usage
|
198
|
+
|
199
|
+
```python
|
200
|
+
import pulumi
|
201
|
+
import pulumi_oci as oci
|
202
|
+
|
203
|
+
test_security_policy_configs = oci.DataSafe.get_security_policy_configs(compartment_id=compartment_id,
|
204
|
+
access_level=security_policy_config_access_level,
|
205
|
+
compartment_id_in_subtree=security_policy_config_compartment_id_in_subtree,
|
206
|
+
display_name=security_policy_config_display_name,
|
207
|
+
security_policy_config_id=test_security_policy_config["id"],
|
208
|
+
security_policy_id=test_security_policy["id"],
|
209
|
+
state=security_policy_config_state,
|
210
|
+
time_created_greater_than_or_equal_to=security_policy_config_time_created_greater_than_or_equal_to,
|
211
|
+
time_created_less_than=security_policy_config_time_created_less_than)
|
212
|
+
```
|
213
|
+
|
214
|
+
|
215
|
+
:param _builtins.str access_level: Valid values are RESTRICTED and ACCESSIBLE. Default is RESTRICTED. Setting this to ACCESSIBLE returns only those compartments for which the user has INSPECT permissions directly or indirectly (permissions can be on a resource in a subcompartment). When set to RESTRICTED permissions are checked and no partial results are displayed.
|
216
|
+
:param _builtins.str compartment_id: A filter to return only resources that match the specified compartment OCID.
|
217
|
+
:param _builtins.bool compartment_id_in_subtree: Default is false. When set to true, the hierarchy of compartments is traversed and all compartments and subcompartments in the tenancy are returned. Depends on the 'accessLevel' setting.
|
218
|
+
:param _builtins.str display_name: A filter to return only resources that match the specified display name.
|
219
|
+
:param _builtins.str security_policy_config_id: An optional filter to return only resources that match the specified OCID of the security policy configuration resource.
|
220
|
+
:param _builtins.str security_policy_id: An optional filter to return only resources that match the specified OCID of the security policy resource.
|
221
|
+
:param _builtins.str state: The current state of the security policy configuration resource.
|
222
|
+
:param _builtins.str time_created_greater_than_or_equal_to: A filter to return only the resources that were created after the specified date and time, as defined by [RFC3339](https://tools.ietf.org/html/rfc3339). Using TimeCreatedGreaterThanOrEqualToQueryParam parameter retrieves all resources created after that date.
|
223
|
+
|
224
|
+
**Example:** 2016-12-19T16:39:57.600Z
|
225
|
+
:param _builtins.str time_created_less_than: Search for resources that were created before a specific date. Specifying this parameter corresponding `timeCreatedLessThan` parameter will retrieve all resources created before the specified created date, in "YYYY-MM-ddThh:mmZ" format with a Z offset, as defined by RFC 3339.
|
226
|
+
|
227
|
+
**Example:** 2016-12-19T16:39:57.600Z
|
228
|
+
"""
|
229
|
+
__args__ = dict()
|
230
|
+
__args__['accessLevel'] = access_level
|
231
|
+
__args__['compartmentId'] = compartment_id
|
232
|
+
__args__['compartmentIdInSubtree'] = compartment_id_in_subtree
|
233
|
+
__args__['displayName'] = display_name
|
234
|
+
__args__['filters'] = filters
|
235
|
+
__args__['securityPolicyConfigId'] = security_policy_config_id
|
236
|
+
__args__['securityPolicyId'] = security_policy_id
|
237
|
+
__args__['state'] = state
|
238
|
+
__args__['timeCreatedGreaterThanOrEqualTo'] = time_created_greater_than_or_equal_to
|
239
|
+
__args__['timeCreatedLessThan'] = time_created_less_than
|
240
|
+
opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
241
|
+
__ret__ = pulumi.runtime.invoke('oci:DataSafe/getSecurityPolicyConfigs:getSecurityPolicyConfigs', __args__, opts=opts, typ=GetSecurityPolicyConfigsResult).value
|
242
|
+
|
243
|
+
return AwaitableGetSecurityPolicyConfigsResult(
|
244
|
+
access_level=pulumi.get(__ret__, 'access_level'),
|
245
|
+
compartment_id=pulumi.get(__ret__, 'compartment_id'),
|
246
|
+
compartment_id_in_subtree=pulumi.get(__ret__, 'compartment_id_in_subtree'),
|
247
|
+
display_name=pulumi.get(__ret__, 'display_name'),
|
248
|
+
filters=pulumi.get(__ret__, 'filters'),
|
249
|
+
id=pulumi.get(__ret__, 'id'),
|
250
|
+
security_policy_config_collections=pulumi.get(__ret__, 'security_policy_config_collections'),
|
251
|
+
security_policy_config_id=pulumi.get(__ret__, 'security_policy_config_id'),
|
252
|
+
security_policy_id=pulumi.get(__ret__, 'security_policy_id'),
|
253
|
+
state=pulumi.get(__ret__, 'state'),
|
254
|
+
time_created_greater_than_or_equal_to=pulumi.get(__ret__, 'time_created_greater_than_or_equal_to'),
|
255
|
+
time_created_less_than=pulumi.get(__ret__, 'time_created_less_than'))
|
256
|
+
def get_security_policy_configs_output(access_level: Optional[pulumi.Input[Optional[_builtins.str]]] = None,
|
257
|
+
compartment_id: Optional[pulumi.Input[_builtins.str]] = None,
|
258
|
+
compartment_id_in_subtree: Optional[pulumi.Input[Optional[_builtins.bool]]] = None,
|
259
|
+
display_name: Optional[pulumi.Input[Optional[_builtins.str]]] = None,
|
260
|
+
filters: Optional[pulumi.Input[Optional[Sequence[Union['GetSecurityPolicyConfigsFilterArgs', 'GetSecurityPolicyConfigsFilterArgsDict']]]]] = None,
|
261
|
+
security_policy_config_id: Optional[pulumi.Input[Optional[_builtins.str]]] = None,
|
262
|
+
security_policy_id: Optional[pulumi.Input[Optional[_builtins.str]]] = None,
|
263
|
+
state: Optional[pulumi.Input[Optional[_builtins.str]]] = None,
|
264
|
+
time_created_greater_than_or_equal_to: Optional[pulumi.Input[Optional[_builtins.str]]] = None,
|
265
|
+
time_created_less_than: Optional[pulumi.Input[Optional[_builtins.str]]] = None,
|
266
|
+
opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetSecurityPolicyConfigsResult]:
|
267
|
+
"""
|
268
|
+
This data source provides the list of Security Policy Configs in Oracle Cloud Infrastructure Data Safe service.
|
269
|
+
|
270
|
+
Retrieves a list of all security policy configurations in Data Safe.
|
271
|
+
|
272
|
+
The ListSecurityPolicyConfigs operation returns only the security policy configurations in the specified `compartmentId`.
|
273
|
+
|
274
|
+
The parameter `accessLevel` specifies whether to return only those compartments for which the
|
275
|
+
requestor has INSPECT permissions on at least one resource directly
|
276
|
+
or indirectly (ACCESSIBLE) (the resource can be in a subcompartment) or to return Not Authorized if
|
277
|
+
Principal doesn't have access to even one of the child compartments. This is valid only when
|
278
|
+
`compartmentIdInSubtree` is set to `true`.
|
279
|
+
|
280
|
+
The parameter `compartmentIdInSubtree` applies when you perform ListSecurityPolicyConfigs on the
|
281
|
+
`compartmentId` passed and when it is set to true, the entire hierarchy of compartments can be returned.
|
282
|
+
To get a full list of all compartments and subcompartments in the tenancy (root compartment),
|
283
|
+
set the parameter `compartmentIdInSubtree` to true and `accessLevel` to ACCESSIBLE.
|
284
|
+
|
285
|
+
## Example Usage
|
286
|
+
|
287
|
+
```python
|
288
|
+
import pulumi
|
289
|
+
import pulumi_oci as oci
|
290
|
+
|
291
|
+
test_security_policy_configs = oci.DataSafe.get_security_policy_configs(compartment_id=compartment_id,
|
292
|
+
access_level=security_policy_config_access_level,
|
293
|
+
compartment_id_in_subtree=security_policy_config_compartment_id_in_subtree,
|
294
|
+
display_name=security_policy_config_display_name,
|
295
|
+
security_policy_config_id=test_security_policy_config["id"],
|
296
|
+
security_policy_id=test_security_policy["id"],
|
297
|
+
state=security_policy_config_state,
|
298
|
+
time_created_greater_than_or_equal_to=security_policy_config_time_created_greater_than_or_equal_to,
|
299
|
+
time_created_less_than=security_policy_config_time_created_less_than)
|
300
|
+
```
|
301
|
+
|
302
|
+
|
303
|
+
:param _builtins.str access_level: Valid values are RESTRICTED and ACCESSIBLE. Default is RESTRICTED. Setting this to ACCESSIBLE returns only those compartments for which the user has INSPECT permissions directly or indirectly (permissions can be on a resource in a subcompartment). When set to RESTRICTED permissions are checked and no partial results are displayed.
|
304
|
+
:param _builtins.str compartment_id: A filter to return only resources that match the specified compartment OCID.
|
305
|
+
:param _builtins.bool compartment_id_in_subtree: Default is false. When set to true, the hierarchy of compartments is traversed and all compartments and subcompartments in the tenancy are returned. Depends on the 'accessLevel' setting.
|
306
|
+
:param _builtins.str display_name: A filter to return only resources that match the specified display name.
|
307
|
+
:param _builtins.str security_policy_config_id: An optional filter to return only resources that match the specified OCID of the security policy configuration resource.
|
308
|
+
:param _builtins.str security_policy_id: An optional filter to return only resources that match the specified OCID of the security policy resource.
|
309
|
+
:param _builtins.str state: The current state of the security policy configuration resource.
|
310
|
+
:param _builtins.str time_created_greater_than_or_equal_to: A filter to return only the resources that were created after the specified date and time, as defined by [RFC3339](https://tools.ietf.org/html/rfc3339). Using TimeCreatedGreaterThanOrEqualToQueryParam parameter retrieves all resources created after that date.
|
311
|
+
|
312
|
+
**Example:** 2016-12-19T16:39:57.600Z
|
313
|
+
:param _builtins.str time_created_less_than: Search for resources that were created before a specific date. Specifying this parameter corresponding `timeCreatedLessThan` parameter will retrieve all resources created before the specified created date, in "YYYY-MM-ddThh:mmZ" format with a Z offset, as defined by RFC 3339.
|
314
|
+
|
315
|
+
**Example:** 2016-12-19T16:39:57.600Z
|
316
|
+
"""
|
317
|
+
__args__ = dict()
|
318
|
+
__args__['accessLevel'] = access_level
|
319
|
+
__args__['compartmentId'] = compartment_id
|
320
|
+
__args__['compartmentIdInSubtree'] = compartment_id_in_subtree
|
321
|
+
__args__['displayName'] = display_name
|
322
|
+
__args__['filters'] = filters
|
323
|
+
__args__['securityPolicyConfigId'] = security_policy_config_id
|
324
|
+
__args__['securityPolicyId'] = security_policy_id
|
325
|
+
__args__['state'] = state
|
326
|
+
__args__['timeCreatedGreaterThanOrEqualTo'] = time_created_greater_than_or_equal_to
|
327
|
+
__args__['timeCreatedLessThan'] = time_created_less_than
|
328
|
+
opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
329
|
+
__ret__ = pulumi.runtime.invoke_output('oci:DataSafe/getSecurityPolicyConfigs:getSecurityPolicyConfigs', __args__, opts=opts, typ=GetSecurityPolicyConfigsResult)
|
330
|
+
return __ret__.apply(lambda __response__: GetSecurityPolicyConfigsResult(
|
331
|
+
access_level=pulumi.get(__response__, 'access_level'),
|
332
|
+
compartment_id=pulumi.get(__response__, 'compartment_id'),
|
333
|
+
compartment_id_in_subtree=pulumi.get(__response__, 'compartment_id_in_subtree'),
|
334
|
+
display_name=pulumi.get(__response__, 'display_name'),
|
335
|
+
filters=pulumi.get(__response__, 'filters'),
|
336
|
+
id=pulumi.get(__response__, 'id'),
|
337
|
+
security_policy_config_collections=pulumi.get(__response__, 'security_policy_config_collections'),
|
338
|
+
security_policy_config_id=pulumi.get(__response__, 'security_policy_config_id'),
|
339
|
+
security_policy_id=pulumi.get(__response__, 'security_policy_id'),
|
340
|
+
state=pulumi.get(__response__, 'state'),
|
341
|
+
time_created_greater_than_or_equal_to=pulumi.get(__response__, 'time_created_greater_than_or_equal_to'),
|
342
|
+
time_created_less_than=pulumi.get(__response__, 'time_created_less_than')))
|