import * as pulumi from "@pulumi/pulumi"; /** * This resource provides the Recovery Service Subnet resource in Oracle Cloud Infrastructure Recovery service. * Api doc link for the resource: https://docs.oracle.com/iaas/api/#/en/recovery-service/latest/RecoveryServiceSubnet * * Example terraform configs related to the resource : https://github.com/oracle/terraform-provider-oci/tree/master/examples/recovery * * Creates a new Recovery Service Subnet. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as oci from "@pulumi/oci"; * * const testRecoveryServiceSubnet = new oci.recoverymod.RecoveryServiceSubnet("test_recovery_service_subnet", { * compartmentId: compartmentId, * displayName: recoveryServiceSubnetDisplayName, * vcnId: testVcn.id, * definedTags: { * "foo-namespace.bar-key": "value", * }, * freeformTags: { * "bar-key": "value", * }, * nsgIds: recoveryServiceSubnetNsgIds, * subnetId: testSubnet.id, * subnets: recoveryServiceSubnetSubnets, * }); * ``` * * ## Import * * RecoveryServiceSubnets can be imported using the `id`, e.g. * * ```sh * $ pulumi import oci:RecoveryMod/recoveryServiceSubnet:RecoveryServiceSubnet test_recovery_service_subnet "id" * ``` */ export declare class RecoveryServiceSubnet extends pulumi.CustomResource { /** * Get an existing RecoveryServiceSubnet 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?: RecoveryServiceSubnetState, opts?: pulumi.CustomResourceOptions): RecoveryServiceSubnet; /** * Returns true if the given object is an instance of RecoveryServiceSubnet. 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 RecoveryServiceSubnet; /** * (Updatable) The compartment OCID. */ readonly compartmentId: pulumi.Output; /** * (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: `{"foo-namespace.bar-key": "value"}`. For more information, see [Resource Tags](https://docs.oracle.com/en-us/iaas/Content/General/Concepts/resourcetags.htm) */ readonly definedTags: pulumi.Output<{ [key: string]: string; }>; /** * (Updatable) A user-provided name for the recovery service subnet. The 'displayName' does not have to be unique, and it can be modified. Avoid entering confidential information. */ readonly displayName: pulumi.Output; /** * (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: `{"bar-key": "value"}` */ readonly freeformTags: pulumi.Output<{ [key: string]: string; }>; /** * Detailed description about the current lifecycle state of the recovery service subnet. For example, it can be used to provide actionable information for a resource in a Failed state */ readonly lifecycleDetails: pulumi.Output; /** * (Updatable) A list of network security group (NSG) OCIDs that are associated with the Recovery Service subnet. You can specify a maximum of 5 unique OCIDs, which implies that you can associate a maximum of 5 NSGs to each Recovery Service subnet. Specify an empty array if you want to remove all the associated NSGs from a Recovery Service subnet. See [Network Security Groups](https://docs.cloud.oracle.com/iaas/api/#/en/iaas/latest/NetworkSecurityGroup/) for more information. */ readonly nsgIds: pulumi.Output; /** * The current state of the recovery service subnet. */ readonly state: pulumi.Output; /** * Deprecated. One of the subnets associated with the Recovery Service subnet. * * @deprecated The 'subnet_id' field has been deprecated. Please use 'subnets' instead. */ readonly subnetId: pulumi.Output; /** * (Updatable) A list of OCIDs of the subnets associated with the Recovery Service subnet. */ readonly subnets: pulumi.Output; /** * Usage of system tag keys. These predefined keys are scoped to namespaces. Example: `{"orcl-cloud.free-tier-retained": "true"}`. For more information, see [Resource Tags](https://docs.oracle.com/en-us/iaas/Content/General/Concepts/resourcetags.htm) */ readonly systemTags: pulumi.Output<{ [key: string]: string; }>; /** * An RFC3339 formatted datetime string that indicates the last created time for a recovery service subnet. For example: '2020-05-22T21:10:29.600Z'. */ readonly timeCreated: pulumi.Output; /** * An RFC3339 formatted datetime string that indicates the last updated time for a recovery service subnet. For example: '2020-05-22T21:10:29.600Z'. */ readonly timeUpdated: pulumi.Output; /** * The OCID of the virtual cloud network (VCN) that contains the recovery service subnet. You can create a single recovery service subnet per VCN. * * ** 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 vcnId: pulumi.Output; /** * Create a RecoveryServiceSubnet 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: RecoveryServiceSubnetArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering RecoveryServiceSubnet resources. */ export interface RecoveryServiceSubnetState { /** * (Updatable) The compartment OCID. */ compartmentId?: pulumi.Input; /** * (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: `{"foo-namespace.bar-key": "value"}`. For more information, see [Resource Tags](https://docs.oracle.com/en-us/iaas/Content/General/Concepts/resourcetags.htm) */ definedTags?: pulumi.Input<{ [key: string]: pulumi.Input; } | undefined>; /** * (Updatable) A user-provided name for the recovery service subnet. The 'displayName' does not have to be unique, and it can be modified. Avoid entering confidential information. */ displayName?: pulumi.Input; /** * (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: `{"bar-key": "value"}` */ freeformTags?: pulumi.Input<{ [key: string]: pulumi.Input; } | undefined>; /** * Detailed description about the current lifecycle state of the recovery service subnet. For example, it can be used to provide actionable information for a resource in a Failed state */ lifecycleDetails?: pulumi.Input; /** * (Updatable) A list of network security group (NSG) OCIDs that are associated with the Recovery Service subnet. You can specify a maximum of 5 unique OCIDs, which implies that you can associate a maximum of 5 NSGs to each Recovery Service subnet. Specify an empty array if you want to remove all the associated NSGs from a Recovery Service subnet. See [Network Security Groups](https://docs.cloud.oracle.com/iaas/api/#/en/iaas/latest/NetworkSecurityGroup/) for more information. */ nsgIds?: pulumi.Input[] | undefined>; /** * The current state of the recovery service subnet. */ state?: pulumi.Input; /** * Deprecated. One of the subnets associated with the Recovery Service subnet. * * @deprecated The 'subnet_id' field has been deprecated. Please use 'subnets' instead. */ subnetId?: pulumi.Input; /** * (Updatable) A list of OCIDs of the subnets associated with the Recovery Service subnet. */ subnets?: pulumi.Input[] | undefined>; /** * Usage of system tag keys. These predefined keys are scoped to namespaces. Example: `{"orcl-cloud.free-tier-retained": "true"}`. For more information, see [Resource Tags](https://docs.oracle.com/en-us/iaas/Content/General/Concepts/resourcetags.htm) */ systemTags?: pulumi.Input<{ [key: string]: pulumi.Input; } | undefined>; /** * An RFC3339 formatted datetime string that indicates the last created time for a recovery service subnet. For example: '2020-05-22T21:10:29.600Z'. */ timeCreated?: pulumi.Input; /** * An RFC3339 formatted datetime string that indicates the last updated time for a recovery service subnet. For example: '2020-05-22T21:10:29.600Z'. */ timeUpdated?: pulumi.Input; /** * The OCID of the virtual cloud network (VCN) that contains the recovery service subnet. You can create a single recovery service subnet per VCN. * * ** 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 */ vcnId?: pulumi.Input; } /** * The set of arguments for constructing a RecoveryServiceSubnet resource. */ export interface RecoveryServiceSubnetArgs { /** * (Updatable) The compartment OCID. */ compartmentId: pulumi.Input; /** * (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: `{"foo-namespace.bar-key": "value"}`. For more information, see [Resource Tags](https://docs.oracle.com/en-us/iaas/Content/General/Concepts/resourcetags.htm) */ definedTags?: pulumi.Input<{ [key: string]: pulumi.Input; } | undefined>; /** * (Updatable) A user-provided name for the recovery service subnet. The 'displayName' does not have to be unique, and it can be modified. Avoid entering confidential information. */ displayName: pulumi.Input; /** * (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: `{"bar-key": "value"}` */ freeformTags?: pulumi.Input<{ [key: string]: pulumi.Input; } | undefined>; /** * (Updatable) A list of network security group (NSG) OCIDs that are associated with the Recovery Service subnet. You can specify a maximum of 5 unique OCIDs, which implies that you can associate a maximum of 5 NSGs to each Recovery Service subnet. Specify an empty array if you want to remove all the associated NSGs from a Recovery Service subnet. See [Network Security Groups](https://docs.cloud.oracle.com/iaas/api/#/en/iaas/latest/NetworkSecurityGroup/) for more information. */ nsgIds?: pulumi.Input[] | undefined>; /** * Deprecated. One of the subnets associated with the Recovery Service subnet. * * @deprecated The 'subnet_id' field has been deprecated. Please use 'subnets' instead. */ subnetId?: pulumi.Input; /** * (Updatable) A list of OCIDs of the subnets associated with the Recovery Service subnet. */ subnets?: pulumi.Input[] | undefined>; /** * The OCID of the virtual cloud network (VCN) that contains the recovery service subnet. You can create a single recovery service subnet per VCN. * * ** 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 */ vcnId: pulumi.Input; } //# sourceMappingURL=recoveryServiceSubnet.d.ts.map