oci logo
Oracle Cloud Infrastructure v0.6.0, Jan 23 23

oci.GoldenGate.ConnectionAssignment

This resource provides the Connection Assignment resource in Oracle Cloud Infrastructure Golden Gate service.

Creates a new Connection Assignment.

Example Usage

using System.Collections.Generic;
using Pulumi;
using Oci = Pulumi.Oci;

return await Deployment.RunAsync(() => 
{
    var testConnectionAssignment = new Oci.GoldenGate.ConnectionAssignment("testConnectionAssignment", new()
    {
        ConnectionId = oci_golden_gate_connection.Test_connection.Id,
        DeploymentId = oci_golden_gate_deployment.Test_deployment.Id,
    });

});
package main

import (
	"github.com/pulumi/pulumi-oci/sdk/go/oci/GoldenGate"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := GoldenGate.NewConnectionAssignment(ctx, "testConnectionAssignment", &GoldenGate.ConnectionAssignmentArgs{
			ConnectionId: pulumi.Any(oci_golden_gate_connection.Test_connection.Id),
			DeploymentId: pulumi.Any(oci_golden_gate_deployment.Test_deployment.Id),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
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(oci_golden_gate_connection.test_connection().id())
            .deploymentId(oci_golden_gate_deployment.test_deployment().id())
            .build());

    }
}
import pulumi
import pulumi_oci as oci

test_connection_assignment = oci.golden_gate.ConnectionAssignment("testConnectionAssignment",
    connection_id=oci_golden_gate_connection["test_connection"]["id"],
    deployment_id=oci_golden_gate_deployment["test_deployment"]["id"])
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";

const testConnectionAssignment = new oci.goldengate.ConnectionAssignment("testConnectionAssignment", {
    connectionId: oci_golden_gate_connection.test_connection.id,
    deploymentId: oci_golden_gate_deployment.test_deployment.id,
});
resources:
  testConnectionAssignment:
    type: oci:GoldenGate:ConnectionAssignment
    properties:
      #Required
      connectionId: ${oci_golden_gate_connection.test_connection.id}
      deploymentId: ${oci_golden_gate_deployment.test_deployment.id}

Create ConnectionAssignment Resource

new ConnectionAssignment(name: string, args: ConnectionAssignmentArgs, opts?: CustomResourceOptions);
@overload
def ConnectionAssignment(resource_name: str,
                         opts: Optional[ResourceOptions] = None,
                         connection_id: Optional[str] = None,
                         deployment_id: Optional[str] = None)
@overload
def ConnectionAssignment(resource_name: str,
                         args: ConnectionAssignmentArgs,
                         opts: Optional[ResourceOptions] = 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.

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.

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

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.

ConnectionId string

The OCID of the connection being referenced.

DeploymentId string

The OCID of the deployment being referenced.

connectionId String

The OCID of the connection being referenced.

deploymentId String

The OCID of the deployment being referenced.

connectionId string

The OCID of the connection being referenced.

deploymentId string

The OCID of the deployment being referenced.

connection_id str

The OCID of the connection being referenced.

deployment_id str

The OCID of the deployment being referenced.

connectionId String

The OCID of the connection being referenced.

deploymentId String

The OCID of the deployment being referenced.

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,
        state: Optional[str] = None,
        time_created: Optional[str] = None,
        time_updated: Optional[str] = None) -> ConnectionAssignment
func 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)
Resource lookup is not supported in YAML
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.
The following state arguments are supported:
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.

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.

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.

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.

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.

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.

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"

Package Details

Repository
oci pulumi/pulumi-oci
License
Apache-2.0
Notes

This Pulumi package is based on the oci Terraform Provider.