Create DataPatch Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new DataPatch(name: string, args: DataPatchArgs, opts?: CustomResourceOptions);@overload
def DataPatch(resource_name: str,
args: DataPatchArgs,
opts: Optional[ResourceOptions] = None)
@overload
def DataPatch(resource_name: str,
opts: Optional[ResourceOptions] = None,
action: Optional[str] = None,
database_id: Optional[str] = None,
data_patch_options: Optional[Sequence[DataPatchDataPatchOptionArgs]] = None,
pluggable_databases: Optional[Sequence[str]] = None)func NewDataPatch(ctx *Context, name string, args DataPatchArgs, opts ...ResourceOption) (*DataPatch, error)public DataPatch(string name, DataPatchArgs args, CustomResourceOptions? opts = null)
public DataPatch(String name, DataPatchArgs args)
public DataPatch(String name, DataPatchArgs args, CustomResourceOptions options)
type: oci:Database:DataPatch
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 DataPatchArgs
- 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 DataPatchArgs
- 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 DataPatchArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args DataPatchArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args DataPatchArgs
- 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 dataPatchResource = new Oci.Database.DataPatch("dataPatchResource", new()
{
Action = "string",
DatabaseId = "string",
DataPatchOptions = new[]
{
new Oci.Database.Inputs.DataPatchDataPatchOptionArgs
{
ShouldSkipClosedPdbs = false,
},
},
PluggableDatabases = new[]
{
"string",
},
});
example, err := database.NewDataPatch(ctx, "dataPatchResource", &database.DataPatchArgs{
Action: pulumi.String("string"),
DatabaseId: pulumi.String("string"),
DataPatchOptions: database.DataPatchDataPatchOptionArray{
&database.DataPatchDataPatchOptionArgs{
ShouldSkipClosedPdbs: pulumi.Bool(false),
},
},
PluggableDatabases: pulumi.StringArray{
pulumi.String("string"),
},
})
var dataPatchResource = new DataPatch("dataPatchResource", DataPatchArgs.builder()
.action("string")
.databaseId("string")
.dataPatchOptions(DataPatchDataPatchOptionArgs.builder()
.shouldSkipClosedPdbs(false)
.build())
.pluggableDatabases("string")
.build());
data_patch_resource = oci.database.DataPatch("dataPatchResource",
action="string",
database_id="string",
data_patch_options=[{
"should_skip_closed_pdbs": False,
}],
pluggable_databases=["string"])
const dataPatchResource = new oci.database.DataPatch("dataPatchResource", {
action: "string",
databaseId: "string",
dataPatchOptions: [{
shouldSkipClosedPdbs: false,
}],
pluggableDatabases: ["string"],
});
type: oci:Database:DataPatch
properties:
action: string
dataPatchOptions:
- shouldSkipClosedPdbs: false
databaseId: string
pluggableDatabases:
- string
DataPatch Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The DataPatch resource accepts the following input properties:
- Action string
- Database
Id string - Data
Patch List<DataOptions Patch Data Patch Option> - Pluggable
Databases List<string>
- Action string
- Database
Id string - Data
Patch []DataOptions Patch Data Patch Option Args - Pluggable
Databases []string
- action String
- database
Id String - data
Patch List<DataOptions Patch Data Patch Option> - pluggable
Databases List<String>
- action string
- database
Id string - data
Patch DataOptions Patch Data Patch Option[] - pluggable
Databases string[]
- action str
- database_
id str - data_
patch_ Sequence[Dataoptions Patch Data Patch Option Args] - pluggable_
databases Sequence[str]
- action String
- database
Id String - data
Patch List<Property Map>Options - pluggable
Databases List<String>
Outputs
All input properties are implicitly available as output properties. Additionally, the DataPatch resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing DataPatch Resource
Get an existing DataPatch 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?: DataPatchState, opts?: CustomResourceOptions): DataPatch@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
action: Optional[str] = None,
data_patch_options: Optional[Sequence[DataPatchDataPatchOptionArgs]] = None,
database_id: Optional[str] = None,
pluggable_databases: Optional[Sequence[str]] = None) -> DataPatchfunc GetDataPatch(ctx *Context, name string, id IDInput, state *DataPatchState, opts ...ResourceOption) (*DataPatch, error)public static DataPatch Get(string name, Input<string> id, DataPatchState? state, CustomResourceOptions? opts = null)public static DataPatch get(String name, Output<String> id, DataPatchState state, CustomResourceOptions options)resources: _: type: oci:Database:DataPatch get: id: ${id}- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Action string
- Data
Patch List<DataOptions Patch Data Patch Option> - Database
Id string - Pluggable
Databases List<string>
- Action string
- Data
Patch []DataOptions Patch Data Patch Option Args - Database
Id string - Pluggable
Databases []string
- action String
- data
Patch List<DataOptions Patch Data Patch Option> - database
Id String - pluggable
Databases List<String>
- action string
- data
Patch DataOptions Patch Data Patch Option[] - database
Id string - pluggable
Databases string[]
- action str
- data_
patch_ Sequence[Dataoptions Patch Data Patch Option Args] - database_
id str - pluggable_
databases Sequence[str]
- action String
- data
Patch List<Property Map>Options - database
Id String - pluggable
Databases List<String>
Supporting Types
DataPatchDataPatchOption, DataPatchDataPatchOptionArgs
- Should
Skip boolClosed Pdbs
- Should
Skip boolClosed Pdbs
- should
Skip BooleanClosed Pdbs
- should
Skip booleanClosed Pdbs
- should
Skip BooleanClosed Pdbs
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
ociTerraform Provider.
