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
using System.Collections.Generic;
using System.Linq;
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:
- Connection
Id string The OCID of the connection being referenced.
- Deployment
Id string The OCID of the deployment being referenced.
** 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 string The OCID of the connection being referenced.
- Deployment
Id string The OCID of the deployment being referenced.
** 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 String The OCID of the connection being referenced.
- deployment
Id String The OCID of the deployment being referenced.
** 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 string The OCID of the connection being referenced.
- deployment
Id string The OCID of the deployment being referenced.
** 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.
** 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 String The OCID of the connection being referenced.
- deployment
Id String The OCID of the deployment being referenced.
** 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:
- Alias
Name string Credential store alias.
- Compartment
Id 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.
- Time
Created string The time the resource was created. The format is defined by RFC3339, such as
2016-08-25T21:10:29.600Z
.- Time
Updated string The time the resource was last updated. The format is defined by RFC3339, such as
2016-08-25T21:10:29.600Z
.
- Alias
Name string Credential store alias.
- Compartment
Id 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.
- Time
Created string The time the resource was created. The format is defined by RFC3339, such as
2016-08-25T21:10:29.600Z
.- Time
Updated string The time the resource was last updated. The format is defined by RFC3339, such as
2016-08-25T21:10:29.600Z
.
- alias
Name String Credential store alias.
- compartment
Id 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.
- time
Created String The time the resource was created. The format is defined by RFC3339, such as
2016-08-25T21:10:29.600Z
.- time
Updated String The time the resource was last updated. The format is defined by RFC3339, such as
2016-08-25T21:10:29.600Z
.
- alias
Name string Credential store alias.
- compartment
Id 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.
- time
Created string The time the resource was created. The format is defined by RFC3339, such as
2016-08-25T21:10:29.600Z
.- time
Updated 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
.
- alias
Name String Credential store alias.
- compartment
Id 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.
- time
Created String The time the resource was created. The format is defined by RFC3339, such as
2016-08-25T21:10:29.600Z
.- time
Updated 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.
- Alias
Name string Credential store alias.
- Compartment
Id string The OCID of the compartment being referenced.
- Connection
Id string The OCID of the connection being referenced.
- Deployment
Id string The OCID of the deployment being referenced.
** 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.
- Time
Created string The time the resource was created. The format is defined by RFC3339, such as
2016-08-25T21:10:29.600Z
.- Time
Updated string The time the resource was last updated. The format is defined by RFC3339, such as
2016-08-25T21:10:29.600Z
.
- Alias
Name string Credential store alias.
- Compartment
Id string The OCID of the compartment being referenced.
- Connection
Id string The OCID of the connection being referenced.
- Deployment
Id string The OCID of the deployment being referenced.
** 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.
- Time
Created string The time the resource was created. The format is defined by RFC3339, such as
2016-08-25T21:10:29.600Z
.- Time
Updated string The time the resource was last updated. The format is defined by RFC3339, such as
2016-08-25T21:10:29.600Z
.
- alias
Name String Credential store alias.
- compartment
Id String The OCID of the compartment being referenced.
- connection
Id String The OCID of the connection being referenced.
- deployment
Id String The OCID of the deployment being referenced.
** 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.
- time
Created String The time the resource was created. The format is defined by RFC3339, such as
2016-08-25T21:10:29.600Z
.- time
Updated String The time the resource was last updated. The format is defined by RFC3339, such as
2016-08-25T21:10:29.600Z
.
- alias
Name string Credential store alias.
- compartment
Id string The OCID of the compartment being referenced.
- connection
Id string The OCID of the connection being referenced.
- deployment
Id string The OCID of the deployment being referenced.
** 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.
- time
Created string The time the resource was created. The format is defined by RFC3339, such as
2016-08-25T21:10:29.600Z
.- time
Updated 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.
** 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
.
- alias
Name String Credential store alias.
- compartment
Id String The OCID of the compartment being referenced.
- connection
Id String The OCID of the connection being referenced.
- deployment
Id String The OCID of the deployment being referenced.
** 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.
- time
Created String The time the resource was created. The format is defined by RFC3339, such as
2016-08-25T21:10:29.600Z
.- time
Updated 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.