opentelekomcloud.ErAssociationV3
Explore with Pulumi AI
Manages an association resource under the route table for ER service within OpenTelekomCloud.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as opentelekomcloud from "@pulumi/opentelekomcloud";
const config = new pulumi.Config();
const instanceId = config.requireObject("instanceId");
const routeTableId = config.requireObject("routeTableId");
const attachmentId = config.requireObject("attachmentId");
const test = new opentelekomcloud.ErAssociationV3("test", {
instanceId: instanceId,
routeTableId: routeTableId,
attachmentId: attachmentId,
});
import pulumi
import pulumi_opentelekomcloud as opentelekomcloud
config = pulumi.Config()
instance_id = config.require_object("instanceId")
route_table_id = config.require_object("routeTableId")
attachment_id = config.require_object("attachmentId")
test = opentelekomcloud.ErAssociationV3("test",
instance_id=instance_id,
route_table_id=route_table_id,
attachment_id=attachment_id)
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/opentelekomcloud/opentelekomcloud"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
cfg := config.New(ctx, "")
instanceId := cfg.RequireObject("instanceId")
routeTableId := cfg.RequireObject("routeTableId")
attachmentId := cfg.RequireObject("attachmentId")
_, err := opentelekomcloud.NewErAssociationV3(ctx, "test", &opentelekomcloud.ErAssociationV3Args{
InstanceId: pulumi.Any(instanceId),
RouteTableId: pulumi.Any(routeTableId),
AttachmentId: pulumi.Any(attachmentId),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Opentelekomcloud = Pulumi.Opentelekomcloud;
return await Deployment.RunAsync(() =>
{
var config = new Config();
var instanceId = config.RequireObject<dynamic>("instanceId");
var routeTableId = config.RequireObject<dynamic>("routeTableId");
var attachmentId = config.RequireObject<dynamic>("attachmentId");
var test = new Opentelekomcloud.ErAssociationV3("test", new()
{
InstanceId = instanceId,
RouteTableId = routeTableId,
AttachmentId = attachmentId,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.opentelekomcloud.ErAssociationV3;
import com.pulumi.opentelekomcloud.ErAssociationV3Args;
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) {
final var config = ctx.config();
final var instanceId = config.get("instanceId");
final var routeTableId = config.get("routeTableId");
final var attachmentId = config.get("attachmentId");
var test = new ErAssociationV3("test", ErAssociationV3Args.builder()
.instanceId(instanceId)
.routeTableId(routeTableId)
.attachmentId(attachmentId)
.build());
}
}
configuration:
instanceId:
type: dynamic
routeTableId:
type: dynamic
attachmentId:
type: dynamic
resources:
test:
type: opentelekomcloud:ErAssociationV3
properties:
instanceId: ${instanceId}
routeTableId: ${routeTableId}
attachmentId: ${attachmentId}
Create ErAssociationV3 Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new ErAssociationV3(name: string, args: ErAssociationV3Args, opts?: CustomResourceOptions);
@overload
def ErAssociationV3(resource_name: str,
args: ErAssociationV3Args,
opts: Optional[ResourceOptions] = None)
@overload
def ErAssociationV3(resource_name: str,
opts: Optional[ResourceOptions] = None,
attachment_id: Optional[str] = None,
instance_id: Optional[str] = None,
route_table_id: Optional[str] = None,
er_association_v3_id: Optional[str] = None,
timeouts: Optional[ErAssociationV3TimeoutsArgs] = None)
func NewErAssociationV3(ctx *Context, name string, args ErAssociationV3Args, opts ...ResourceOption) (*ErAssociationV3, error)
public ErAssociationV3(string name, ErAssociationV3Args args, CustomResourceOptions? opts = null)
public ErAssociationV3(String name, ErAssociationV3Args args)
public ErAssociationV3(String name, ErAssociationV3Args args, CustomResourceOptions options)
type: opentelekomcloud:ErAssociationV3
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 ErAssociationV3Args
- 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 ErAssociationV3Args
- 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 ErAssociationV3Args
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ErAssociationV3Args
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ErAssociationV3Args
- 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 erAssociationV3Resource = new Opentelekomcloud.ErAssociationV3("erAssociationV3Resource", new()
{
AttachmentId = "string",
InstanceId = "string",
RouteTableId = "string",
ErAssociationV3Id = "string",
Timeouts = new Opentelekomcloud.Inputs.ErAssociationV3TimeoutsArgs
{
Create = "string",
Delete = "string",
},
});
example, err := opentelekomcloud.NewErAssociationV3(ctx, "erAssociationV3Resource", &opentelekomcloud.ErAssociationV3Args{
AttachmentId: pulumi.String("string"),
InstanceId: pulumi.String("string"),
RouteTableId: pulumi.String("string"),
ErAssociationV3Id: pulumi.String("string"),
Timeouts: &opentelekomcloud.ErAssociationV3TimeoutsArgs{
Create: pulumi.String("string"),
Delete: pulumi.String("string"),
},
})
var erAssociationV3Resource = new ErAssociationV3("erAssociationV3Resource", ErAssociationV3Args.builder()
.attachmentId("string")
.instanceId("string")
.routeTableId("string")
.erAssociationV3Id("string")
.timeouts(ErAssociationV3TimeoutsArgs.builder()
.create("string")
.delete("string")
.build())
.build());
er_association_v3_resource = opentelekomcloud.ErAssociationV3("erAssociationV3Resource",
attachment_id="string",
instance_id="string",
route_table_id="string",
er_association_v3_id="string",
timeouts={
"create": "string",
"delete": "string",
})
const erAssociationV3Resource = new opentelekomcloud.ErAssociationV3("erAssociationV3Resource", {
attachmentId: "string",
instanceId: "string",
routeTableId: "string",
erAssociationV3Id: "string",
timeouts: {
create: "string",
"delete": "string",
},
});
type: opentelekomcloud:ErAssociationV3
properties:
attachmentId: string
erAssociationV3Id: string
instanceId: string
routeTableId: string
timeouts:
create: string
delete: string
ErAssociationV3 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 ErAssociationV3 resource accepts the following input properties:
- Attachment
Id string - Specifies the ID of the attachment corresponding to the association.
- Instance
Id string - Specifies the ID of the ER instance to which the route table and the attachment belongs.
- Route
Table stringId - Specifies the ID of the route table to which the association belongs.
- Er
Association stringV3Id - The resource ID.
- Timeouts
Er
Association V3Timeouts
- Attachment
Id string - Specifies the ID of the attachment corresponding to the association.
- Instance
Id string - Specifies the ID of the ER instance to which the route table and the attachment belongs.
- Route
Table stringId - Specifies the ID of the route table to which the association belongs.
- Er
Association stringV3Id - The resource ID.
- Timeouts
Er
Association V3Timeouts Args
- attachment
Id String - Specifies the ID of the attachment corresponding to the association.
- instance
Id String - Specifies the ID of the ER instance to which the route table and the attachment belongs.
- route
Table StringId - Specifies the ID of the route table to which the association belongs.
- er
Association StringV3Id - The resource ID.
- timeouts
Er
Association V3Timeouts
- attachment
Id string - Specifies the ID of the attachment corresponding to the association.
- instance
Id string - Specifies the ID of the ER instance to which the route table and the attachment belongs.
- route
Table stringId - Specifies the ID of the route table to which the association belongs.
- er
Association stringV3Id - The resource ID.
- timeouts
Er
Association V3Timeouts
- attachment_
id str - Specifies the ID of the attachment corresponding to the association.
- instance_
id str - Specifies the ID of the ER instance to which the route table and the attachment belongs.
- route_
table_ strid - Specifies the ID of the route table to which the association belongs.
- er_
association_ strv3_ id - The resource ID.
- timeouts
Er
Association V3Timeouts Args
- attachment
Id String - Specifies the ID of the attachment corresponding to the association.
- instance
Id String - Specifies the ID of the ER instance to which the route table and the attachment belongs.
- route
Table StringId - Specifies the ID of the route table to which the association belongs.
- er
Association StringV3Id - The resource ID.
- timeouts Property Map
Outputs
All input properties are implicitly available as output properties. Additionally, the ErAssociationV3 resource produces the following output properties:
- Attachment
Type string - The type of the attachment corresponding to the association.
- Created
At string - The creation time.
- Id string
- The provider-assigned unique ID for this managed resource.
- Region string
- The region where the ER instance and route table are located.
- Status string
- The current status of the association.
- Updated
At string - The latest update time.
- Attachment
Type string - The type of the attachment corresponding to the association.
- Created
At string - The creation time.
- Id string
- The provider-assigned unique ID for this managed resource.
- Region string
- The region where the ER instance and route table are located.
- Status string
- The current status of the association.
- Updated
At string - The latest update time.
- attachment
Type String - The type of the attachment corresponding to the association.
- created
At String - The creation time.
- id String
- The provider-assigned unique ID for this managed resource.
- region String
- The region where the ER instance and route table are located.
- status String
- The current status of the association.
- updated
At String - The latest update time.
- attachment
Type string - The type of the attachment corresponding to the association.
- created
At string - The creation time.
- id string
- The provider-assigned unique ID for this managed resource.
- region string
- The region where the ER instance and route table are located.
- status string
- The current status of the association.
- updated
At string - The latest update time.
- attachment_
type str - The type of the attachment corresponding to the association.
- created_
at str - The creation time.
- id str
- The provider-assigned unique ID for this managed resource.
- region str
- The region where the ER instance and route table are located.
- status str
- The current status of the association.
- updated_
at str - The latest update time.
- attachment
Type String - The type of the attachment corresponding to the association.
- created
At String - The creation time.
- id String
- The provider-assigned unique ID for this managed resource.
- region String
- The region where the ER instance and route table are located.
- status String
- The current status of the association.
- updated
At String - The latest update time.
Look up Existing ErAssociationV3 Resource
Get an existing ErAssociationV3 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?: ErAssociationV3State, opts?: CustomResourceOptions): ErAssociationV3
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
attachment_id: Optional[str] = None,
attachment_type: Optional[str] = None,
created_at: Optional[str] = None,
er_association_v3_id: Optional[str] = None,
instance_id: Optional[str] = None,
region: Optional[str] = None,
route_table_id: Optional[str] = None,
status: Optional[str] = None,
timeouts: Optional[ErAssociationV3TimeoutsArgs] = None,
updated_at: Optional[str] = None) -> ErAssociationV3
func GetErAssociationV3(ctx *Context, name string, id IDInput, state *ErAssociationV3State, opts ...ResourceOption) (*ErAssociationV3, error)
public static ErAssociationV3 Get(string name, Input<string> id, ErAssociationV3State? state, CustomResourceOptions? opts = null)
public static ErAssociationV3 get(String name, Output<String> id, ErAssociationV3State state, CustomResourceOptions options)
resources: _: type: opentelekomcloud:ErAssociationV3 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.
- Attachment
Id string - Specifies the ID of the attachment corresponding to the association.
- Attachment
Type string - The type of the attachment corresponding to the association.
- Created
At string - The creation time.
- Er
Association stringV3Id - The resource ID.
- Instance
Id string - Specifies the ID of the ER instance to which the route table and the attachment belongs.
- Region string
- The region where the ER instance and route table are located.
- Route
Table stringId - Specifies the ID of the route table to which the association belongs.
- Status string
- The current status of the association.
- Timeouts
Er
Association V3Timeouts - Updated
At string - The latest update time.
- Attachment
Id string - Specifies the ID of the attachment corresponding to the association.
- Attachment
Type string - The type of the attachment corresponding to the association.
- Created
At string - The creation time.
- Er
Association stringV3Id - The resource ID.
- Instance
Id string - Specifies the ID of the ER instance to which the route table and the attachment belongs.
- Region string
- The region where the ER instance and route table are located.
- Route
Table stringId - Specifies the ID of the route table to which the association belongs.
- Status string
- The current status of the association.
- Timeouts
Er
Association V3Timeouts Args - Updated
At string - The latest update time.
- attachment
Id String - Specifies the ID of the attachment corresponding to the association.
- attachment
Type String - The type of the attachment corresponding to the association.
- created
At String - The creation time.
- er
Association StringV3Id - The resource ID.
- instance
Id String - Specifies the ID of the ER instance to which the route table and the attachment belongs.
- region String
- The region where the ER instance and route table are located.
- route
Table StringId - Specifies the ID of the route table to which the association belongs.
- status String
- The current status of the association.
- timeouts
Er
Association V3Timeouts - updated
At String - The latest update time.
- attachment
Id string - Specifies the ID of the attachment corresponding to the association.
- attachment
Type string - The type of the attachment corresponding to the association.
- created
At string - The creation time.
- er
Association stringV3Id - The resource ID.
- instance
Id string - Specifies the ID of the ER instance to which the route table and the attachment belongs.
- region string
- The region where the ER instance and route table are located.
- route
Table stringId - Specifies the ID of the route table to which the association belongs.
- status string
- The current status of the association.
- timeouts
Er
Association V3Timeouts - updated
At string - The latest update time.
- attachment_
id str - Specifies the ID of the attachment corresponding to the association.
- attachment_
type str - The type of the attachment corresponding to the association.
- created_
at str - The creation time.
- er_
association_ strv3_ id - The resource ID.
- instance_
id str - Specifies the ID of the ER instance to which the route table and the attachment belongs.
- region str
- The region where the ER instance and route table are located.
- route_
table_ strid - Specifies the ID of the route table to which the association belongs.
- status str
- The current status of the association.
- timeouts
Er
Association V3Timeouts Args - updated_
at str - The latest update time.
- attachment
Id String - Specifies the ID of the attachment corresponding to the association.
- attachment
Type String - The type of the attachment corresponding to the association.
- created
At String - The creation time.
- er
Association StringV3Id - The resource ID.
- instance
Id String - Specifies the ID of the ER instance to which the route table and the attachment belongs.
- region String
- The region where the ER instance and route table are located.
- route
Table StringId - Specifies the ID of the route table to which the association belongs.
- status String
- The current status of the association.
- timeouts Property Map
- updated
At String - The latest update time.
Supporting Types
ErAssociationV3Timeouts, ErAssociationV3TimeoutsArgs
Import
Associations can be imported using their id
and the related instance_id
and route_table_id
, separated by
slashes (/), e.g.
$ pulumi import opentelekomcloud:index/erAssociationV3:ErAssociationV3 test instance_id/route_table_id/id
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- opentelekomcloud opentelekomcloud/terraform-provider-opentelekomcloud
- License
- Notes
- This Pulumi package is based on the
opentelekomcloud
Terraform Provider.