1. Packages
  2. Opentelekomcloud Provider
  3. API Docs
  4. ErAssociationV3
opentelekomcloud 1.36.37 published on Thursday, Apr 24, 2025 by opentelekomcloud

opentelekomcloud.ErAssociationV3

Explore with Pulumi AI

opentelekomcloud logo
opentelekomcloud 1.36.37 published on Thursday, Apr 24, 2025 by opentelekomcloud

    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:

    AttachmentId string
    Specifies the ID of the attachment corresponding to the association.
    InstanceId string
    Specifies the ID of the ER instance to which the route table and the attachment belongs.
    RouteTableId string
    Specifies the ID of the route table to which the association belongs.
    ErAssociationV3Id string
    The resource ID.
    Timeouts ErAssociationV3Timeouts
    AttachmentId string
    Specifies the ID of the attachment corresponding to the association.
    InstanceId string
    Specifies the ID of the ER instance to which the route table and the attachment belongs.
    RouteTableId string
    Specifies the ID of the route table to which the association belongs.
    ErAssociationV3Id string
    The resource ID.
    Timeouts ErAssociationV3TimeoutsArgs
    attachmentId String
    Specifies the ID of the attachment corresponding to the association.
    instanceId String
    Specifies the ID of the ER instance to which the route table and the attachment belongs.
    routeTableId String
    Specifies the ID of the route table to which the association belongs.
    erAssociationV3Id String
    The resource ID.
    timeouts ErAssociationV3Timeouts
    attachmentId string
    Specifies the ID of the attachment corresponding to the association.
    instanceId string
    Specifies the ID of the ER instance to which the route table and the attachment belongs.
    routeTableId string
    Specifies the ID of the route table to which the association belongs.
    erAssociationV3Id string
    The resource ID.
    timeouts ErAssociationV3Timeouts
    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_id str
    Specifies the ID of the route table to which the association belongs.
    er_association_v3_id str
    The resource ID.
    timeouts ErAssociationV3TimeoutsArgs
    attachmentId String
    Specifies the ID of the attachment corresponding to the association.
    instanceId String
    Specifies the ID of the ER instance to which the route table and the attachment belongs.
    routeTableId String
    Specifies the ID of the route table to which the association belongs.
    erAssociationV3Id String
    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:

    AttachmentType string
    The type of the attachment corresponding to the association.
    CreatedAt 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.
    UpdatedAt string
    The latest update time.
    AttachmentType string
    The type of the attachment corresponding to the association.
    CreatedAt 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.
    UpdatedAt string
    The latest update time.
    attachmentType String
    The type of the attachment corresponding to the association.
    createdAt 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.
    updatedAt String
    The latest update time.
    attachmentType string
    The type of the attachment corresponding to the association.
    createdAt 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.
    updatedAt 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.
    attachmentType String
    The type of the attachment corresponding to the association.
    createdAt 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.
    updatedAt 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.
    The following state arguments are supported:
    AttachmentId string
    Specifies the ID of the attachment corresponding to the association.
    AttachmentType string
    The type of the attachment corresponding to the association.
    CreatedAt string
    The creation time.
    ErAssociationV3Id string
    The resource ID.
    InstanceId 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.
    RouteTableId string
    Specifies the ID of the route table to which the association belongs.
    Status string
    The current status of the association.
    Timeouts ErAssociationV3Timeouts
    UpdatedAt string
    The latest update time.
    AttachmentId string
    Specifies the ID of the attachment corresponding to the association.
    AttachmentType string
    The type of the attachment corresponding to the association.
    CreatedAt string
    The creation time.
    ErAssociationV3Id string
    The resource ID.
    InstanceId 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.
    RouteTableId string
    Specifies the ID of the route table to which the association belongs.
    Status string
    The current status of the association.
    Timeouts ErAssociationV3TimeoutsArgs
    UpdatedAt string
    The latest update time.
    attachmentId String
    Specifies the ID of the attachment corresponding to the association.
    attachmentType String
    The type of the attachment corresponding to the association.
    createdAt String
    The creation time.
    erAssociationV3Id String
    The resource ID.
    instanceId 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.
    routeTableId String
    Specifies the ID of the route table to which the association belongs.
    status String
    The current status of the association.
    timeouts ErAssociationV3Timeouts
    updatedAt String
    The latest update time.
    attachmentId string
    Specifies the ID of the attachment corresponding to the association.
    attachmentType string
    The type of the attachment corresponding to the association.
    createdAt string
    The creation time.
    erAssociationV3Id string
    The resource ID.
    instanceId 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.
    routeTableId string
    Specifies the ID of the route table to which the association belongs.
    status string
    The current status of the association.
    timeouts ErAssociationV3Timeouts
    updatedAt 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_v3_id str
    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_id str
    Specifies the ID of the route table to which the association belongs.
    status str
    The current status of the association.
    timeouts ErAssociationV3TimeoutsArgs
    updated_at str
    The latest update time.
    attachmentId String
    Specifies the ID of the attachment corresponding to the association.
    attachmentType String
    The type of the attachment corresponding to the association.
    createdAt String
    The creation time.
    erAssociationV3Id String
    The resource ID.
    instanceId 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.
    routeTableId String
    Specifies the ID of the route table to which the association belongs.
    status String
    The current status of the association.
    timeouts Property Map
    updatedAt String
    The latest update time.

    Supporting Types

    ErAssociationV3Timeouts, ErAssociationV3TimeoutsArgs

    Create string
    Delete string
    Create string
    Delete string
    create String
    delete String
    create string
    delete string
    create str
    delete str
    create String
    delete String

    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.
    opentelekomcloud logo
    opentelekomcloud 1.36.37 published on Thursday, Apr 24, 2025 by opentelekomcloud