import * as pulumi from "@pulumi/pulumi"; /** * This resource provides the Security Attribute Namespace resource in Oracle Cloud Infrastructure Security Attribute service. * Api doc link for the resource: https://docs.oracle.com/iaas/api/#/en/security-attribute/latest/SecurityAttributeNamespace * * Example terraform configs related to the resource : https://github.com/oracle/terraform-provider-oci/tree/master/examples/security_attribute * * Creates a new security attribute namespace in the specified compartment. * * You must specify the compartment ID in the request object (remember that the tenancy is simply the root * compartment). * * You must also specify a *name* for the namespace, which must be unique across all namespaces in your tenancy * and cannot be changed. The only valid characters for security attribute names are:  0-9, A-Z, a-z, -, _ characters. * Names are case insensitive. That means, for example, "myNamespace" and "mynamespace" are not allowed * in the same tenancy. Once you created a namespace, you cannot change the name. * If you specify a name that's already in use in the tenancy, a 409 error is returned. * * You must also specify a *description* for the namespace. * It does not have to be unique, and you can change it with * [UpdateSecurityAttributeNamespace](https://docs.cloud.oracle.com/iaas/api/#/en/securityattribute/latest/SecurityAttribute/SecurityAttributeNamespace). * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as oci from "@pulumi/oci"; * * const testSecurityAttributeNamespace = new oci.securityattribute.SecurityAttributeNamespace("test_security_attribute_namespace", { * compartmentId: compartmentId, * description: securityAttributeNamespaceDescription, * name: securityAttributeNamespaceName, * definedTags: { * "Operations.CostCenter": "42", * }, * freeformTags: { * Department: "Finance", * }, * }); * ``` * * ## Import * * SecurityAttributeNamespaces can be imported using the `id`, e.g. * * ```sh * $ pulumi import oci:SecurityAttribute/securityAttributeNamespace:SecurityAttributeNamespace test_security_attribute_namespace "id" * ``` */ export declare class SecurityAttributeNamespace extends pulumi.CustomResource { /** * Get an existing SecurityAttributeNamespace resource's state with the given name, ID, and optional extra * properties used to qualify the lookup. * * @param name The _unique_ name of the resulting resource. * @param id The _unique_ provider ID of the resource to lookup. * @param state Any extra arguments used during the lookup. * @param opts Optional settings to control the behavior of the CustomResource. */ static get(name: string, id: pulumi.Input, state?: SecurityAttributeNamespaceState, opts?: pulumi.CustomResourceOptions): SecurityAttributeNamespace; /** * Returns true if the given object is an instance of SecurityAttributeNamespace. This is designed to work even * when multiple copies of the Pulumi SDK have been loaded into the same process. */ static isInstance(obj: any): obj is SecurityAttributeNamespace; /** * (Updatable) The OCID of the tenancy containing the security attribute namespace. */ readonly compartmentId: pulumi.Output; /** * (Updatable) 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"}` */ readonly definedTags: pulumi.Output<{ [key: string]: string; }>; /** * (Updatable) The description you assign to the security attribute namespace during creation. */ readonly description: pulumi.Output; /** * (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](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Department": "Finance"}` */ readonly freeformTags: pulumi.Output<{ [key: string]: string; }>; /** * Indicates whether the security attribute namespace is retired. See [Managing Security Attribute Namespaces](https://docs.cloud.oracle.com/iaas/Content/zero-trust-packet-routing/managing-security-attribute-namespaces.htm). */ readonly isRetired: pulumi.Output; /** * Indicates possible modes the security attributes in this namespace can be set to. This is not accepted from the user. Currently the supported values are enforce and audit. */ readonly modes: pulumi.Output; /** * The name you assign to the security attribute namespace during creation. The name must be unique across all namespaces in the tenancy and cannot be changed. * * ** 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 */ readonly name: pulumi.Output; /** * The security attribute namespace's current state. After creating a security attribute namespace, make sure its `lifecycleState` is ACTIVE before using it. After retiring a security attribute namespace, make sure its `lifecycleState` is INACTIVE. */ readonly state: pulumi.Output; /** * System tags for this resource. Each key is predefined and scoped to a namespace. Example: `{"orcl-cloud.free-tier-retained": "true"}` */ readonly systemTags: pulumi.Output<{ [key: string]: string; }>; /** * Date and time the security attribute namespace was created, in the format defined by RFC3339. Example: `2016-08-25T21:10:29.600Z` */ readonly timeCreated: pulumi.Output; /** * Create a SecurityAttributeNamespace resource with the given unique name, arguments, and options. * * @param name The _unique_ name of the resource. * @param args The arguments to use to populate this resource's properties. * @param opts A bag of options that control this resource's behavior. */ constructor(name: string, args: SecurityAttributeNamespaceArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering SecurityAttributeNamespace resources. */ export interface SecurityAttributeNamespaceState { /** * (Updatable) The OCID of the tenancy containing the security attribute namespace. */ compartmentId?: pulumi.Input; /** * (Updatable) 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"}` */ definedTags?: pulumi.Input<{ [key: string]: pulumi.Input; } | undefined>; /** * (Updatable) The description you assign to the security attribute namespace during creation. */ description?: pulumi.Input; /** * (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](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Department": "Finance"}` */ freeformTags?: pulumi.Input<{ [key: string]: pulumi.Input; } | undefined>; /** * Indicates whether the security attribute namespace is retired. See [Managing Security Attribute Namespaces](https://docs.cloud.oracle.com/iaas/Content/zero-trust-packet-routing/managing-security-attribute-namespaces.htm). */ isRetired?: pulumi.Input; /** * Indicates possible modes the security attributes in this namespace can be set to. This is not accepted from the user. Currently the supported values are enforce and audit. */ modes?: pulumi.Input[] | undefined>; /** * The name you assign to the security attribute namespace during creation. The name must be unique across all namespaces in the tenancy and cannot be changed. * * ** 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 */ name?: pulumi.Input; /** * The security attribute namespace's current state. After creating a security attribute namespace, make sure its `lifecycleState` is ACTIVE before using it. After retiring a security attribute namespace, make sure its `lifecycleState` is INACTIVE. */ state?: pulumi.Input; /** * System tags for this resource. Each key is predefined and scoped to a namespace. Example: `{"orcl-cloud.free-tier-retained": "true"}` */ systemTags?: pulumi.Input<{ [key: string]: pulumi.Input; } | undefined>; /** * Date and time the security attribute namespace was created, in the format defined by RFC3339. Example: `2016-08-25T21:10:29.600Z` */ timeCreated?: pulumi.Input; } /** * The set of arguments for constructing a SecurityAttributeNamespace resource. */ export interface SecurityAttributeNamespaceArgs { /** * (Updatable) The OCID of the tenancy containing the security attribute namespace. */ compartmentId: pulumi.Input; /** * (Updatable) 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"}` */ definedTags?: pulumi.Input<{ [key: string]: pulumi.Input; } | undefined>; /** * (Updatable) The description you assign to the security attribute namespace during creation. */ description: pulumi.Input; /** * (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](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Department": "Finance"}` */ freeformTags?: pulumi.Input<{ [key: string]: pulumi.Input; } | undefined>; /** * Indicates whether the security attribute namespace is retired. See [Managing Security Attribute Namespaces](https://docs.cloud.oracle.com/iaas/Content/zero-trust-packet-routing/managing-security-attribute-namespaces.htm). */ isRetired?: pulumi.Input; /** * The name you assign to the security attribute namespace during creation. The name must be unique across all namespaces in the tenancy and cannot be changed. * * ** 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 */ name?: pulumi.Input; } //# sourceMappingURL=securityAttributeNamespace.d.ts.map