oci.GoldenGate.ConnectionAssignment
Explore with Pulumi AI
This resource provides the Connection Assignment resource in Oracle Cloud Infrastructure Golden Gate service.
Creates a new Connection Assignment.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testConnectionAssignment = new oci.goldengate.ConnectionAssignment("test_connection_assignment", {
    connectionId: testConnection.id,
    deploymentId: testDeployment.id,
    isLockOverride: connectionAssignmentIsLockOverride,
});
import pulumi
import pulumi_oci as oci
test_connection_assignment = oci.golden_gate.ConnectionAssignment("test_connection_assignment",
    connection_id=test_connection["id"],
    deployment_id=test_deployment["id"],
    is_lock_override=connection_assignment_is_lock_override)
package main
import (
	"github.com/pulumi/pulumi-oci/sdk/v2/go/oci/goldengate"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := goldengate.NewConnectionAssignment(ctx, "test_connection_assignment", &goldengate.ConnectionAssignmentArgs{
			ConnectionId:   pulumi.Any(testConnection.Id),
			DeploymentId:   pulumi.Any(testDeployment.Id),
			IsLockOverride: pulumi.Any(connectionAssignmentIsLockOverride),
		})
		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 testConnectionAssignment = new Oci.GoldenGate.ConnectionAssignment("test_connection_assignment", new()
    {
        ConnectionId = testConnection.Id,
        DeploymentId = testDeployment.Id,
        IsLockOverride = connectionAssignmentIsLockOverride,
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.GoldenGate.ConnectionAssignment;
import com.pulumi.oci.GoldenGate.ConnectionAssignmentArgs;
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 testConnectionAssignment = new ConnectionAssignment("testConnectionAssignment", ConnectionAssignmentArgs.builder()
            .connectionId(testConnection.id())
            .deploymentId(testDeployment.id())
            .isLockOverride(connectionAssignmentIsLockOverride)
            .build());
    }
}
resources:
  testConnectionAssignment:
    type: oci:GoldenGate:ConnectionAssignment
    name: test_connection_assignment
    properties:
      connectionId: ${testConnection.id}
      deploymentId: ${testDeployment.id}
      isLockOverride: ${connectionAssignmentIsLockOverride}
Create ConnectionAssignment Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new ConnectionAssignment(name: string, args: ConnectionAssignmentArgs, opts?: CustomResourceOptions);@overload
def ConnectionAssignment(resource_name: str,
                         args: ConnectionAssignmentArgs,
                         opts: Optional[ResourceOptions] = None)
@overload
def ConnectionAssignment(resource_name: str,
                         opts: Optional[ResourceOptions] = None,
                         connection_id: Optional[str] = None,
                         deployment_id: Optional[str] = None,
                         is_lock_override: Optional[bool] = None)func NewConnectionAssignment(ctx *Context, name string, args ConnectionAssignmentArgs, opts ...ResourceOption) (*ConnectionAssignment, error)public ConnectionAssignment(string name, ConnectionAssignmentArgs args, CustomResourceOptions? opts = null)
public ConnectionAssignment(String name, ConnectionAssignmentArgs args)
public ConnectionAssignment(String name, ConnectionAssignmentArgs args, CustomResourceOptions options)
type: oci:GoldenGate:ConnectionAssignment
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 ConnectionAssignmentArgs
- 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 ConnectionAssignmentArgs
- 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 ConnectionAssignmentArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ConnectionAssignmentArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ConnectionAssignmentArgs
- 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 connectionAssignmentResource = new Oci.GoldenGate.ConnectionAssignment("connectionAssignmentResource", new()
{
    ConnectionId = "string",
    DeploymentId = "string",
    IsLockOverride = false,
});
example, err := goldengate.NewConnectionAssignment(ctx, "connectionAssignmentResource", &goldengate.ConnectionAssignmentArgs{
	ConnectionId:   pulumi.String("string"),
	DeploymentId:   pulumi.String("string"),
	IsLockOverride: pulumi.Bool(false),
})
var connectionAssignmentResource = new ConnectionAssignment("connectionAssignmentResource", ConnectionAssignmentArgs.builder()
    .connectionId("string")
    .deploymentId("string")
    .isLockOverride(false)
    .build());
connection_assignment_resource = oci.golden_gate.ConnectionAssignment("connectionAssignmentResource",
    connection_id="string",
    deployment_id="string",
    is_lock_override=False)
const connectionAssignmentResource = new oci.goldengate.ConnectionAssignment("connectionAssignmentResource", {
    connectionId: "string",
    deploymentId: "string",
    isLockOverride: false,
});
type: oci:GoldenGate:ConnectionAssignment
properties:
    connectionId: string
    deploymentId: string
    isLockOverride: false
ConnectionAssignment 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 ConnectionAssignment resource accepts the following input properties:
- ConnectionId string
- The OCID of the connection being referenced.
- DeploymentId string
- The OCID of the deployment being referenced.
- IsLock boolOverride 
- Whether to override locks (if any exist). - ** 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 
- ConnectionId string
- The OCID of the connection being referenced.
- DeploymentId string
- The OCID of the deployment being referenced.
- IsLock boolOverride 
- Whether to override locks (if any exist). - ** 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 
- connectionId String
- The OCID of the connection being referenced.
- deploymentId String
- The OCID of the deployment being referenced.
- isLock BooleanOverride 
- Whether to override locks (if any exist). - ** 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 
- connectionId string
- The OCID of the connection being referenced.
- deploymentId string
- The OCID of the deployment being referenced.
- isLock booleanOverride 
- Whether to override locks (if any exist). - ** 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 
- connection_id str
- The OCID of the connection being referenced.
- deployment_id str
- The OCID of the deployment being referenced.
- is_lock_ booloverride 
- Whether to override locks (if any exist). - ** 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 
- connectionId String
- The OCID of the connection being referenced.
- deploymentId String
- The OCID of the deployment being referenced.
- isLock BooleanOverride 
- Whether to override locks (if any exist). - ** 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 
Outputs
All input properties are implicitly available as output properties. Additionally, the ConnectionAssignment resource produces the following output properties:
- AliasName string
- Credential store alias.
- CompartmentId string
- The OCID of the compartment being referenced.
- Id string
- The provider-assigned unique ID for this managed resource.
- State string
- Possible lifecycle states for connection assignments.
- TimeCreated string
- The time the resource was created. The format is defined by RFC3339, such as 2016-08-25T21:10:29.600Z.
- TimeUpdated string
- The time the resource was last updated. The format is defined by RFC3339, such as 2016-08-25T21:10:29.600Z.
- AliasName string
- Credential store alias.
- CompartmentId string
- The OCID of the compartment being referenced.
- Id string
- The provider-assigned unique ID for this managed resource.
- State string
- Possible lifecycle states for connection assignments.
- TimeCreated string
- The time the resource was created. The format is defined by RFC3339, such as 2016-08-25T21:10:29.600Z.
- TimeUpdated string
- The time the resource was last updated. The format is defined by RFC3339, such as 2016-08-25T21:10:29.600Z.
- aliasName String
- Credential store alias.
- compartmentId String
- The OCID of the compartment being referenced.
- id String
- The provider-assigned unique ID for this managed resource.
- state String
- Possible lifecycle states for connection assignments.
- timeCreated String
- The time the resource was created. The format is defined by RFC3339, such as 2016-08-25T21:10:29.600Z.
- timeUpdated String
- The time the resource was last updated. The format is defined by RFC3339, such as 2016-08-25T21:10:29.600Z.
- aliasName string
- Credential store alias.
- compartmentId string
- The OCID of the compartment being referenced.
- id string
- The provider-assigned unique ID for this managed resource.
- state string
- Possible lifecycle states for connection assignments.
- timeCreated string
- The time the resource was created. The format is defined by RFC3339, such as 2016-08-25T21:10:29.600Z.
- timeUpdated string
- The time the resource was last updated. The format is defined by RFC3339, such as 2016-08-25T21:10:29.600Z.
- alias_name str
- Credential store alias.
- compartment_id str
- The OCID of the compartment being referenced.
- id str
- The provider-assigned unique ID for this managed resource.
- state str
- Possible lifecycle states for connection assignments.
- time_created str
- The time the resource was created. The format is defined by RFC3339, such as 2016-08-25T21:10:29.600Z.
- time_updated str
- The time the resource was last updated. The format is defined by RFC3339, such as 2016-08-25T21:10:29.600Z.
- aliasName String
- Credential store alias.
- compartmentId String
- The OCID of the compartment being referenced.
- id String
- The provider-assigned unique ID for this managed resource.
- state String
- Possible lifecycle states for connection assignments.
- timeCreated String
- The time the resource was created. The format is defined by RFC3339, such as 2016-08-25T21:10:29.600Z.
- timeUpdated String
- The time the resource was last updated. The format is defined by RFC3339, such as 2016-08-25T21:10:29.600Z.
Look up Existing ConnectionAssignment Resource
Get an existing ConnectionAssignment 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?: ConnectionAssignmentState, opts?: CustomResourceOptions): ConnectionAssignment@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        alias_name: Optional[str] = None,
        compartment_id: Optional[str] = None,
        connection_id: Optional[str] = None,
        deployment_id: Optional[str] = None,
        is_lock_override: Optional[bool] = None,
        state: Optional[str] = None,
        time_created: Optional[str] = None,
        time_updated: Optional[str] = None) -> ConnectionAssignmentfunc GetConnectionAssignment(ctx *Context, name string, id IDInput, state *ConnectionAssignmentState, opts ...ResourceOption) (*ConnectionAssignment, error)public static ConnectionAssignment Get(string name, Input<string> id, ConnectionAssignmentState? state, CustomResourceOptions? opts = null)public static ConnectionAssignment get(String name, Output<String> id, ConnectionAssignmentState state, CustomResourceOptions options)resources:  _:    type: oci:GoldenGate:ConnectionAssignment    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.
- AliasName string
- Credential store alias.
- CompartmentId string
- The OCID of the compartment being referenced.
- ConnectionId string
- The OCID of the connection being referenced.
- DeploymentId string
- The OCID of the deployment being referenced.
- IsLock boolOverride 
- Whether to override locks (if any exist). - ** 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 
- State string
- Possible lifecycle states for connection assignments.
- TimeCreated string
- The time the resource was created. The format is defined by RFC3339, such as 2016-08-25T21:10:29.600Z.
- TimeUpdated string
- The time the resource was last updated. The format is defined by RFC3339, such as 2016-08-25T21:10:29.600Z.
- AliasName string
- Credential store alias.
- CompartmentId string
- The OCID of the compartment being referenced.
- ConnectionId string
- The OCID of the connection being referenced.
- DeploymentId string
- The OCID of the deployment being referenced.
- IsLock boolOverride 
- Whether to override locks (if any exist). - ** 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 
- State string
- Possible lifecycle states for connection assignments.
- TimeCreated string
- The time the resource was created. The format is defined by RFC3339, such as 2016-08-25T21:10:29.600Z.
- TimeUpdated string
- The time the resource was last updated. The format is defined by RFC3339, such as 2016-08-25T21:10:29.600Z.
- aliasName String
- Credential store alias.
- compartmentId String
- The OCID of the compartment being referenced.
- connectionId String
- The OCID of the connection being referenced.
- deploymentId String
- The OCID of the deployment being referenced.
- isLock BooleanOverride 
- Whether to override locks (if any exist). - ** 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 
- state String
- Possible lifecycle states for connection assignments.
- timeCreated String
- The time the resource was created. The format is defined by RFC3339, such as 2016-08-25T21:10:29.600Z.
- timeUpdated String
- The time the resource was last updated. The format is defined by RFC3339, such as 2016-08-25T21:10:29.600Z.
- aliasName string
- Credential store alias.
- compartmentId string
- The OCID of the compartment being referenced.
- connectionId string
- The OCID of the connection being referenced.
- deploymentId string
- The OCID of the deployment being referenced.
- isLock booleanOverride 
- Whether to override locks (if any exist). - ** 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 
- state string
- Possible lifecycle states for connection assignments.
- timeCreated string
- The time the resource was created. The format is defined by RFC3339, such as 2016-08-25T21:10:29.600Z.
- timeUpdated string
- The time the resource was last updated. The format is defined by RFC3339, such as 2016-08-25T21:10:29.600Z.
- alias_name str
- Credential store alias.
- compartment_id str
- The OCID of the compartment being referenced.
- connection_id str
- The OCID of the connection being referenced.
- deployment_id str
- The OCID of the deployment being referenced.
- is_lock_ booloverride 
- Whether to override locks (if any exist). - ** 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 
- state str
- Possible lifecycle states for connection assignments.
- time_created str
- The time the resource was created. The format is defined by RFC3339, such as 2016-08-25T21:10:29.600Z.
- time_updated str
- The time the resource was last updated. The format is defined by RFC3339, such as 2016-08-25T21:10:29.600Z.
- aliasName String
- Credential store alias.
- compartmentId String
- The OCID of the compartment being referenced.
- connectionId String
- The OCID of the connection being referenced.
- deploymentId String
- The OCID of the deployment being referenced.
- isLock BooleanOverride 
- Whether to override locks (if any exist). - ** 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 
- state String
- Possible lifecycle states for connection assignments.
- timeCreated String
- The time the resource was created. The format is defined by RFC3339, such as 2016-08-25T21:10:29.600Z.
- timeUpdated String
- The time the resource was last updated. The format is defined by RFC3339, such as 2016-08-25T21:10:29.600Z.
Import
ConnectionAssignments can be imported using the id, e.g.
$ pulumi import oci:GoldenGate/connectionAssignment:ConnectionAssignment test_connection_assignment "id"
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 ociTerraform Provider.