oci.DataSafe.SecurityPolicyManagement
Explore with Pulumi AI
This resource provides the Security Policy Management resource in Oracle Cloud Infrastructure Data Safe service.
Updates the security policy.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testSecurityPolicyManagement = new oci.datasafe.SecurityPolicyManagement("test_security_policy_management", {
compartmentId: compartmentId,
targetId: testTargetDatabase.id,
definedTags: {
"Operations.CostCenter": "42",
},
description: securityPolicyManagementDescription,
displayName: securityPolicyManagementDisplayName,
freeformTags: {
Department: "Finance",
},
});
import pulumi
import pulumi_oci as oci
test_security_policy_management = oci.data_safe.SecurityPolicyManagement("test_security_policy_management",
compartment_id=compartment_id,
target_id=test_target_database["id"],
defined_tags={
"Operations.CostCenter": "42",
},
description=security_policy_management_description,
display_name=security_policy_management_display_name,
freeform_tags={
"Department": "Finance",
})
package main
import (
"github.com/pulumi/pulumi-oci/sdk/v2/go/oci/DataSafe"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := DataSafe.NewSecurityPolicyManagement(ctx, "test_security_policy_management", &DataSafe.SecurityPolicyManagementArgs{
CompartmentId: pulumi.Any(compartmentId),
TargetId: pulumi.Any(testTargetDatabase.Id),
DefinedTags: pulumi.StringMap{
"Operations.CostCenter": pulumi.String("42"),
},
Description: pulumi.Any(securityPolicyManagementDescription),
DisplayName: pulumi.Any(securityPolicyManagementDisplayName),
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 testSecurityPolicyManagement = new Oci.DataSafe.SecurityPolicyManagement("test_security_policy_management", new()
{
CompartmentId = compartmentId,
TargetId = testTargetDatabase.Id,
DefinedTags =
{
{ "Operations.CostCenter", "42" },
},
Description = securityPolicyManagementDescription,
DisplayName = securityPolicyManagementDisplayName,
FreeformTags =
{
{ "Department", "Finance" },
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.DataSafe.SecurityPolicyManagement;
import com.pulumi.oci.DataSafe.SecurityPolicyManagementArgs;
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 testSecurityPolicyManagement = new SecurityPolicyManagement("testSecurityPolicyManagement", SecurityPolicyManagementArgs.builder()
.compartmentId(compartmentId)
.targetId(testTargetDatabase.id())
.definedTags(Map.of("Operations.CostCenter", "42"))
.description(securityPolicyManagementDescription)
.displayName(securityPolicyManagementDisplayName)
.freeformTags(Map.of("Department", "Finance"))
.build());
}
}
resources:
testSecurityPolicyManagement:
type: oci:DataSafe:SecurityPolicyManagement
name: test_security_policy_management
properties:
compartmentId: ${compartmentId}
targetId: ${testTargetDatabase.id}
definedTags:
Operations.CostCenter: '42'
description: ${securityPolicyManagementDescription}
displayName: ${securityPolicyManagementDisplayName}
freeformTags:
Department: Finance
Create SecurityPolicyManagement Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new SecurityPolicyManagement(name: string, args?: SecurityPolicyManagementArgs, opts?: CustomResourceOptions);
@overload
def SecurityPolicyManagement(resource_name: str,
args: Optional[SecurityPolicyManagementArgs] = None,
opts: Optional[ResourceOptions] = None)
@overload
def SecurityPolicyManagement(resource_name: str,
opts: Optional[ResourceOptions] = None,
compartment_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,
target_id: Optional[str] = None)
func NewSecurityPolicyManagement(ctx *Context, name string, args *SecurityPolicyManagementArgs, opts ...ResourceOption) (*SecurityPolicyManagement, error)
public SecurityPolicyManagement(string name, SecurityPolicyManagementArgs? args = null, CustomResourceOptions? opts = null)
public SecurityPolicyManagement(String name, SecurityPolicyManagementArgs args)
public SecurityPolicyManagement(String name, SecurityPolicyManagementArgs args, CustomResourceOptions options)
type: oci:DataSafe:SecurityPolicyManagement
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 SecurityPolicyManagementArgs
- 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 SecurityPolicyManagementArgs
- 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 SecurityPolicyManagementArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args SecurityPolicyManagementArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args SecurityPolicyManagementArgs
- 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 securityPolicyManagementResource = new Oci.DataSafe.SecurityPolicyManagement("securityPolicyManagementResource", new()
{
CompartmentId = "string",
DefinedTags =
{
{ "string", "string" },
},
Description = "string",
DisplayName = "string",
FreeformTags =
{
{ "string", "string" },
},
TargetId = "string",
});
example, err := DataSafe.NewSecurityPolicyManagement(ctx, "securityPolicyManagementResource", &DataSafe.SecurityPolicyManagementArgs{
CompartmentId: 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"),
},
TargetId: pulumi.String("string"),
})
var securityPolicyManagementResource = new SecurityPolicyManagement("securityPolicyManagementResource", SecurityPolicyManagementArgs.builder()
.compartmentId("string")
.definedTags(Map.of("string", "string"))
.description("string")
.displayName("string")
.freeformTags(Map.of("string", "string"))
.targetId("string")
.build());
security_policy_management_resource = oci.data_safe.SecurityPolicyManagement("securityPolicyManagementResource",
compartment_id="string",
defined_tags={
"string": "string",
},
description="string",
display_name="string",
freeform_tags={
"string": "string",
},
target_id="string")
const securityPolicyManagementResource = new oci.datasafe.SecurityPolicyManagement("securityPolicyManagementResource", {
compartmentId: "string",
definedTags: {
string: "string",
},
description: "string",
displayName: "string",
freeformTags: {
string: "string",
},
targetId: "string",
});
type: oci:DataSafe:SecurityPolicyManagement
properties:
compartmentId: string
definedTags:
string: string
description: string
displayName: string
freeformTags:
string: string
targetId: string
SecurityPolicyManagement Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The SecurityPolicyManagement resource accepts the following input properties:
- Compartment
Id string - (Updatable) The OCID of the compartment containing the security policy.
- 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 security policy.
- Display
Name string - (Updatable) The display name of the security policy. The name does not have to be unique, and it is changeable.
- 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"}
- Target
Id string - Unique target identifier.
- Compartment
Id string - (Updatable) The OCID of the compartment containing the security policy.
- 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 security policy.
- Display
Name string - (Updatable) The display name of the security policy. The name does not have to be unique, and it is changeable.
- 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"}
- Target
Id string - Unique target identifier.
- compartment
Id String - (Updatable) The OCID of the compartment containing the security policy.
- 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 security policy.
- display
Name String - (Updatable) The display name of the security policy. The name does not have to be unique, and it is changeable.
- 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"}
- target
Id String - Unique target identifier.
- compartment
Id string - (Updatable) The OCID of the compartment containing the security policy.
- {[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 security policy.
- display
Name string - (Updatable) The display name of the security policy. The name does not have to be unique, and it is changeable.
- {[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"}
- target
Id string - Unique target identifier.
- compartment_
id str - (Updatable) The OCID of the compartment containing the security policy.
- 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 security policy.
- display_
name str - (Updatable) The display name of the security policy. The name does not have to be unique, and it is changeable.
- 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"}
- target_
id str - Unique target identifier.
- compartment
Id String - (Updatable) The OCID of the compartment containing the security policy.
- 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 security policy.
- display
Name String - (Updatable) The display name of the security policy. The name does not have to be unique, and it is changeable.
- 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"}
- target
Id String - Unique target identifier.
Outputs
All input properties are implicitly available as output properties. Additionally, the SecurityPolicyManagement resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Lifecycle
Details string - Details about the current state of the security policy in Data Safe.
- State string
- The current state of the security 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 that the security policy was created, in the format defined by RFC3339.
- Time
Updated string - The last date and time the security policy was updated, in the format defined by RFC3339.
- Id string
- The provider-assigned unique ID for this managed resource.
- Lifecycle
Details string - Details about the current state of the security policy in Data Safe.
- State string
- The current state of the security 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 that the security policy was created, in the format defined by RFC3339.
- Time
Updated string - The last date and time the security policy was updated, in the format defined by RFC3339.
- id String
- The provider-assigned unique ID for this managed resource.
- lifecycle
Details String - Details about the current state of the security policy in Data Safe.
- state String
- The current state of the security 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 that the security policy was created, in the format defined by RFC3339.
- time
Updated String - The last date and time the security policy was updated, in the format defined by RFC3339.
- id string
- The provider-assigned unique ID for this managed resource.
- lifecycle
Details string - Details about the current state of the security policy in Data Safe.
- state string
- The current state of the security 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 that the security policy was created, in the format defined by RFC3339.
- time
Updated string - The last date and time the security policy was updated, in the format defined by RFC3339.
- id str
- The provider-assigned unique ID for this managed resource.
- lifecycle_
details str - Details about the current state of the security policy in Data Safe.
- state str
- The current state of the security 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 that the security policy was created, in the format defined by RFC3339.
- time_
updated str - The last date and time the security policy was updated, in the format defined by RFC3339.
- id String
- The provider-assigned unique ID for this managed resource.
- lifecycle
Details String - Details about the current state of the security policy in Data Safe.
- state String
- The current state of the security 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 that the security policy was created, in the format defined by RFC3339.
- time
Updated String - The last date and time the security policy was updated, in the format defined by RFC3339.
Look up Existing SecurityPolicyManagement Resource
Get an existing SecurityPolicyManagement 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?: SecurityPolicyManagementState, opts?: CustomResourceOptions): SecurityPolicyManagement
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
compartment_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,
lifecycle_details: Optional[str] = None,
state: Optional[str] = None,
system_tags: Optional[Mapping[str, str]] = None,
target_id: Optional[str] = None,
time_created: Optional[str] = None,
time_updated: Optional[str] = None) -> SecurityPolicyManagement
func GetSecurityPolicyManagement(ctx *Context, name string, id IDInput, state *SecurityPolicyManagementState, opts ...ResourceOption) (*SecurityPolicyManagement, error)
public static SecurityPolicyManagement Get(string name, Input<string> id, SecurityPolicyManagementState? state, CustomResourceOptions? opts = null)
public static SecurityPolicyManagement get(String name, Output<String> id, SecurityPolicyManagementState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Compartment
Id string - (Updatable) The OCID of the compartment containing the security policy.
- 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 security policy.
- Display
Name string - (Updatable) The display name of the security policy. The name does not have to be unique, and it is changeable.
- 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"}
- Lifecycle
Details string - Details about the current state of the security policy in Data Safe.
- State string
- The current state of the security 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"}
- Target
Id string - Unique target identifier.
- Time
Created string - The time that the security policy was created, in the format defined by RFC3339.
- Time
Updated string - The last date and time the security policy was updated, in the format defined by RFC3339.
- Compartment
Id string - (Updatable) The OCID of the compartment containing the security policy.
- 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 security policy.
- Display
Name string - (Updatable) The display name of the security policy. The name does not have to be unique, and it is changeable.
- 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"}
- Lifecycle
Details string - Details about the current state of the security policy in Data Safe.
- State string
- The current state of the security 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"}
- Target
Id string - Unique target identifier.
- Time
Created string - The time that the security policy was created, in the format defined by RFC3339.
- Time
Updated string - The last date and time the security policy was updated, in the format defined by RFC3339.
- compartment
Id String - (Updatable) The OCID of the compartment containing the security policy.
- 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 security policy.
- display
Name String - (Updatable) The display name of the security policy. The name does not have to be unique, and it is changeable.
- 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"}
- lifecycle
Details String - Details about the current state of the security policy in Data Safe.
- state String
- The current state of the security 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"}
- target
Id String - Unique target identifier.
- time
Created String - The time that the security policy was created, in the format defined by RFC3339.
- time
Updated String - The last date and time the security policy was updated, in the format defined by RFC3339.
- compartment
Id string - (Updatable) The OCID of the compartment containing the security policy.
- {[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 security policy.
- display
Name string - (Updatable) The display name of the security policy. The name does not have to be unique, and it is changeable.
- {[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"}
- lifecycle
Details string - Details about the current state of the security policy in Data Safe.
- state string
- The current state of the security 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"}
- target
Id string - Unique target identifier.
- time
Created string - The time that the security policy was created, in the format defined by RFC3339.
- time
Updated string - The last date and time the security policy was updated, in the format defined by RFC3339.
- compartment_
id str - (Updatable) The OCID of the compartment containing the security policy.
- 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 security policy.
- display_
name str - (Updatable) The display name of the security policy. The name does not have to be unique, and it is changeable.
- 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"}
- lifecycle_
details str - Details about the current state of the security policy in Data Safe.
- state str
- The current state of the security 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"}
- target_
id str - Unique target identifier.
- time_
created str - The time that the security policy was created, in the format defined by RFC3339.
- time_
updated str - The last date and time the security policy was updated, in the format defined by RFC3339.
- compartment
Id String - (Updatable) The OCID of the compartment containing the security policy.
- 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 security policy.
- display
Name String - (Updatable) The display name of the security policy. The name does not have to be unique, and it is changeable.
- 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"}
- lifecycle
Details String - Details about the current state of the security policy in Data Safe.
- state String
- The current state of the security 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"}
- target
Id String - Unique target identifier.
- time
Created String - The time that the security policy was created, in the format defined by RFC3339.
- time
Updated String - The last date and time the security policy was updated, in the format defined by RFC3339.
Import
Import is not supported for this resource.
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.