oci.DatabaseManagement.ExternalMySqlDatabaseExternalMysqlDatabasesManagement
Explore with Pulumi AI
This resource provides the External My Sql Database External Mysql Databases Management resource in Oracle Cloud Infrastructure Database Management service.
Enables Database Management for an external MySQL Database.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testExternalMySqlDatabaseExternalMysqlDatabasesManagement = new oci.databasemanagement.ExternalMySqlDatabaseExternalMysqlDatabasesManagement("test_external_my_sql_database_external_mysql_databases_management", {
externalMySqlDatabaseId: testExternalMySqlDatabase.id,
enableExternalMysqlDatabase: enableExternalMysqlDatabase,
connectorId: testConnector.id,
});
import pulumi
import pulumi_oci as oci
test_external_my_sql_database_external_mysql_databases_management = oci.database_management.ExternalMySqlDatabaseExternalMysqlDatabasesManagement("test_external_my_sql_database_external_mysql_databases_management",
external_my_sql_database_id=test_external_my_sql_database["id"],
enable_external_mysql_database=enable_external_mysql_database,
connector_id=test_connector["id"])
package main
import (
"github.com/pulumi/pulumi-oci/sdk/v2/go/oci/databasemanagement"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := databasemanagement.NewExternalMySqlDatabaseExternalMysqlDatabasesManagement(ctx, "test_external_my_sql_database_external_mysql_databases_management", &databasemanagement.ExternalMySqlDatabaseExternalMysqlDatabasesManagementArgs{
ExternalMySqlDatabaseId: pulumi.Any(testExternalMySqlDatabase.Id),
EnableExternalMysqlDatabase: pulumi.Any(enableExternalMysqlDatabase),
ConnectorId: pulumi.Any(testConnector.Id),
})
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 testExternalMySqlDatabaseExternalMysqlDatabasesManagement = new Oci.DatabaseManagement.ExternalMySqlDatabaseExternalMysqlDatabasesManagement("test_external_my_sql_database_external_mysql_databases_management", new()
{
ExternalMySqlDatabaseId = testExternalMySqlDatabase.Id,
EnableExternalMysqlDatabase = enableExternalMysqlDatabase,
ConnectorId = testConnector.Id,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.DatabaseManagement.ExternalMySqlDatabaseExternalMysqlDatabasesManagement;
import com.pulumi.oci.DatabaseManagement.ExternalMySqlDatabaseExternalMysqlDatabasesManagementArgs;
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 testExternalMySqlDatabaseExternalMysqlDatabasesManagement = new ExternalMySqlDatabaseExternalMysqlDatabasesManagement("testExternalMySqlDatabaseExternalMysqlDatabasesManagement", ExternalMySqlDatabaseExternalMysqlDatabasesManagementArgs.builder()
.externalMySqlDatabaseId(testExternalMySqlDatabase.id())
.enableExternalMysqlDatabase(enableExternalMysqlDatabase)
.connectorId(testConnector.id())
.build());
}
}
resources:
testExternalMySqlDatabaseExternalMysqlDatabasesManagement:
type: oci:DatabaseManagement:ExternalMySqlDatabaseExternalMysqlDatabasesManagement
name: test_external_my_sql_database_external_mysql_databases_management
properties:
externalMySqlDatabaseId: ${testExternalMySqlDatabase.id}
enableExternalMysqlDatabase: ${enableExternalMysqlDatabase}
connectorId: ${testConnector.id}
Create ExternalMySqlDatabaseExternalMysqlDatabasesManagement Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new ExternalMySqlDatabaseExternalMysqlDatabasesManagement(name: string, args: ExternalMySqlDatabaseExternalMysqlDatabasesManagementArgs, opts?: CustomResourceOptions);
@overload
def ExternalMySqlDatabaseExternalMysqlDatabasesManagement(resource_name: str,
args: ExternalMySqlDatabaseExternalMysqlDatabasesManagementArgs,
opts: Optional[ResourceOptions] = None)
@overload
def ExternalMySqlDatabaseExternalMysqlDatabasesManagement(resource_name: str,
opts: Optional[ResourceOptions] = None,
enable_external_mysql_database: Optional[bool] = None,
external_my_sql_database_id: Optional[str] = None,
connector_id: Optional[str] = None)
func NewExternalMySqlDatabaseExternalMysqlDatabasesManagement(ctx *Context, name string, args ExternalMySqlDatabaseExternalMysqlDatabasesManagementArgs, opts ...ResourceOption) (*ExternalMySqlDatabaseExternalMysqlDatabasesManagement, error)
public ExternalMySqlDatabaseExternalMysqlDatabasesManagement(string name, ExternalMySqlDatabaseExternalMysqlDatabasesManagementArgs args, CustomResourceOptions? opts = null)
public ExternalMySqlDatabaseExternalMysqlDatabasesManagement(String name, ExternalMySqlDatabaseExternalMysqlDatabasesManagementArgs args)
public ExternalMySqlDatabaseExternalMysqlDatabasesManagement(String name, ExternalMySqlDatabaseExternalMysqlDatabasesManagementArgs args, CustomResourceOptions options)
type: oci:DatabaseManagement:ExternalMySqlDatabaseExternalMysqlDatabasesManagement
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 ExternalMySqlDatabaseExternalMysqlDatabasesManagementArgs
- 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 ExternalMySqlDatabaseExternalMysqlDatabasesManagementArgs
- 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 ExternalMySqlDatabaseExternalMysqlDatabasesManagementArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ExternalMySqlDatabaseExternalMysqlDatabasesManagementArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ExternalMySqlDatabaseExternalMysqlDatabasesManagementArgs
- 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 externalMySqlDatabaseExternalMysqlDatabasesManagementResource = new Oci.DatabaseManagement.ExternalMySqlDatabaseExternalMysqlDatabasesManagement("externalMySqlDatabaseExternalMysqlDatabasesManagementResource", new()
{
EnableExternalMysqlDatabase = false,
ExternalMySqlDatabaseId = "string",
ConnectorId = "string",
});
example, err := DatabaseManagement.NewExternalMySqlDatabaseExternalMysqlDatabasesManagement(ctx, "externalMySqlDatabaseExternalMysqlDatabasesManagementResource", &DatabaseManagement.ExternalMySqlDatabaseExternalMysqlDatabasesManagementArgs{
EnableExternalMysqlDatabase: pulumi.Bool(false),
ExternalMySqlDatabaseId: pulumi.String("string"),
ConnectorId: pulumi.String("string"),
})
var externalMySqlDatabaseExternalMysqlDatabasesManagementResource = new ExternalMySqlDatabaseExternalMysqlDatabasesManagement("externalMySqlDatabaseExternalMysqlDatabasesManagementResource", ExternalMySqlDatabaseExternalMysqlDatabasesManagementArgs.builder()
.enableExternalMysqlDatabase(false)
.externalMySqlDatabaseId("string")
.connectorId("string")
.build());
external_my_sql_database_external_mysql_databases_management_resource = oci.database_management.ExternalMySqlDatabaseExternalMysqlDatabasesManagement("externalMySqlDatabaseExternalMysqlDatabasesManagementResource",
enable_external_mysql_database=False,
external_my_sql_database_id="string",
connector_id="string")
const externalMySqlDatabaseExternalMysqlDatabasesManagementResource = new oci.databasemanagement.ExternalMySqlDatabaseExternalMysqlDatabasesManagement("externalMySqlDatabaseExternalMysqlDatabasesManagementResource", {
enableExternalMysqlDatabase: false,
externalMySqlDatabaseId: "string",
connectorId: "string",
});
type: oci:DatabaseManagement:ExternalMySqlDatabaseExternalMysqlDatabasesManagement
properties:
connectorId: string
enableExternalMysqlDatabase: false
externalMySqlDatabaseId: string
ExternalMySqlDatabaseExternalMysqlDatabasesManagement 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 ExternalMySqlDatabaseExternalMysqlDatabasesManagement resource accepts the following input properties:
- Enable
External boolMysql Database (Updatable) A required field when set to
true
calls enable action and when set tofalse
calls disable action.** 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
- External
My stringSql Database Id - The OCID of the External MySQL Database.
- Connector
Id string - OCID of External MySQL Database connector.
- Enable
External boolMysql Database (Updatable) A required field when set to
true
calls enable action and when set tofalse
calls disable action.** 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
- External
My stringSql Database Id - The OCID of the External MySQL Database.
- Connector
Id string - OCID of External MySQL Database connector.
- enable
External BooleanMysql Database (Updatable) A required field when set to
true
calls enable action and when set tofalse
calls disable action.** 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
- external
My StringSql Database Id - The OCID of the External MySQL Database.
- connector
Id String - OCID of External MySQL Database connector.
- enable
External booleanMysql Database (Updatable) A required field when set to
true
calls enable action and when set tofalse
calls disable action.** 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
- external
My stringSql Database Id - The OCID of the External MySQL Database.
- connector
Id string - OCID of External MySQL Database connector.
- enable_
external_ boolmysql_ database (Updatable) A required field when set to
true
calls enable action and when set tofalse
calls disable action.** 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
- external_
my_ strsql_ database_ id - The OCID of the External MySQL Database.
- connector_
id str - OCID of External MySQL Database connector.
- enable
External BooleanMysql Database (Updatable) A required field when set to
true
calls enable action and when set tofalse
calls disable action.** 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
- external
My StringSql Database Id - The OCID of the External MySQL Database.
- connector
Id String - OCID of External MySQL Database connector.
Outputs
All input properties are implicitly available as output properties. Additionally, the ExternalMySqlDatabaseExternalMysqlDatabasesManagement 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 ExternalMySqlDatabaseExternalMysqlDatabasesManagement Resource
Get an existing ExternalMySqlDatabaseExternalMysqlDatabasesManagement 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?: ExternalMySqlDatabaseExternalMysqlDatabasesManagementState, opts?: CustomResourceOptions): ExternalMySqlDatabaseExternalMysqlDatabasesManagement
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
connector_id: Optional[str] = None,
enable_external_mysql_database: Optional[bool] = None,
external_my_sql_database_id: Optional[str] = None) -> ExternalMySqlDatabaseExternalMysqlDatabasesManagement
func GetExternalMySqlDatabaseExternalMysqlDatabasesManagement(ctx *Context, name string, id IDInput, state *ExternalMySqlDatabaseExternalMysqlDatabasesManagementState, opts ...ResourceOption) (*ExternalMySqlDatabaseExternalMysqlDatabasesManagement, error)
public static ExternalMySqlDatabaseExternalMysqlDatabasesManagement Get(string name, Input<string> id, ExternalMySqlDatabaseExternalMysqlDatabasesManagementState? state, CustomResourceOptions? opts = null)
public static ExternalMySqlDatabaseExternalMysqlDatabasesManagement get(String name, Output<String> id, ExternalMySqlDatabaseExternalMysqlDatabasesManagementState state, CustomResourceOptions options)
resources: _: type: oci:DatabaseManagement:ExternalMySqlDatabaseExternalMysqlDatabasesManagement 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.
- Connector
Id string - OCID of External MySQL Database connector.
- Enable
External boolMysql Database (Updatable) A required field when set to
true
calls enable action and when set tofalse
calls disable action.** 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
- External
My stringSql Database Id - The OCID of the External MySQL Database.
- Connector
Id string - OCID of External MySQL Database connector.
- Enable
External boolMysql Database (Updatable) A required field when set to
true
calls enable action and when set tofalse
calls disable action.** 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
- External
My stringSql Database Id - The OCID of the External MySQL Database.
- connector
Id String - OCID of External MySQL Database connector.
- enable
External BooleanMysql Database (Updatable) A required field when set to
true
calls enable action and when set tofalse
calls disable action.** 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
- external
My StringSql Database Id - The OCID of the External MySQL Database.
- connector
Id string - OCID of External MySQL Database connector.
- enable
External booleanMysql Database (Updatable) A required field when set to
true
calls enable action and when set tofalse
calls disable action.** 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
- external
My stringSql Database Id - The OCID of the External MySQL Database.
- connector_
id str - OCID of External MySQL Database connector.
- enable_
external_ boolmysql_ database (Updatable) A required field when set to
true
calls enable action and when set tofalse
calls disable action.** 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
- external_
my_ strsql_ database_ id - The OCID of the External MySQL Database.
- connector
Id String - OCID of External MySQL Database connector.
- enable
External BooleanMysql Database (Updatable) A required field when set to
true
calls enable action and when set tofalse
calls disable action.** 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
- external
My StringSql Database Id - The OCID of the External MySQL Database.
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
oci
Terraform Provider.