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:
- Connection
Id string - The OCID of the connection being referenced.
- Deployment
Id string - 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
- Connection
Id string - The OCID of the connection being referenced.
- Deployment
Id string - 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
- connection
Id String - The OCID of the connection being referenced.
- deployment
Id String - The OCID of the deployment being referenced.
- is
Lock 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 string - The OCID of the connection being referenced.
- deployment
Id string - The OCID of the deployment being referenced.
- is
Lock 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
- connection
Id String - The OCID of the connection being referenced.
- deployment
Id String - The OCID of the deployment being referenced.
- is
Lock 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:
- 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,
is_lock_override: Optional[bool] = 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.
- 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 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.
- 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 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.
- is
Lock 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.
- 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.
- is
Lock 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.
- 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.
- 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
.
- 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.
- is
Lock 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.
- 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"
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
oci
Terraform Provider.