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

opentelekomcloud.VpcPeeringConnectionAccepterV2

Explore with Pulumi AI

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

    Create VpcPeeringConnectionAccepterV2 Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new VpcPeeringConnectionAccepterV2(name: string, args: VpcPeeringConnectionAccepterV2Args, opts?: CustomResourceOptions);
    @overload
    def VpcPeeringConnectionAccepterV2(resource_name: str,
                                       args: VpcPeeringConnectionAccepterV2Args,
                                       opts: Optional[ResourceOptions] = None)
    
    @overload
    def VpcPeeringConnectionAccepterV2(resource_name: str,
                                       opts: Optional[ResourceOptions] = None,
                                       vpc_peering_connection_id: Optional[str] = None,
                                       accept: Optional[bool] = None,
                                       region: Optional[str] = None,
                                       timeouts: Optional[VpcPeeringConnectionAccepterV2TimeoutsArgs] = None,
                                       vpc_peering_connection_accepter_v2_id: Optional[str] = None)
    func NewVpcPeeringConnectionAccepterV2(ctx *Context, name string, args VpcPeeringConnectionAccepterV2Args, opts ...ResourceOption) (*VpcPeeringConnectionAccepterV2, error)
    public VpcPeeringConnectionAccepterV2(string name, VpcPeeringConnectionAccepterV2Args args, CustomResourceOptions? opts = null)
    public VpcPeeringConnectionAccepterV2(String name, VpcPeeringConnectionAccepterV2Args args)
    public VpcPeeringConnectionAccepterV2(String name, VpcPeeringConnectionAccepterV2Args args, CustomResourceOptions options)
    
    type: opentelekomcloud:VpcPeeringConnectionAccepterV2
    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 VpcPeeringConnectionAccepterV2Args
    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 VpcPeeringConnectionAccepterV2Args
    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 VpcPeeringConnectionAccepterV2Args
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args VpcPeeringConnectionAccepterV2Args
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args VpcPeeringConnectionAccepterV2Args
    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 vpcPeeringConnectionAccepterV2Resource = new Opentelekomcloud.VpcPeeringConnectionAccepterV2("vpcPeeringConnectionAccepterV2Resource", new()
    {
        VpcPeeringConnectionId = "string",
        Accept = false,
        Region = "string",
        Timeouts = new Opentelekomcloud.Inputs.VpcPeeringConnectionAccepterV2TimeoutsArgs
        {
            Create = "string",
            Delete = "string",
        },
        VpcPeeringConnectionAccepterV2Id = "string",
    });
    
    example, err := opentelekomcloud.NewVpcPeeringConnectionAccepterV2(ctx, "vpcPeeringConnectionAccepterV2Resource", &opentelekomcloud.VpcPeeringConnectionAccepterV2Args{
    	VpcPeeringConnectionId: pulumi.String("string"),
    	Accept:                 pulumi.Bool(false),
    	Region:                 pulumi.String("string"),
    	Timeouts: &opentelekomcloud.VpcPeeringConnectionAccepterV2TimeoutsArgs{
    		Create: pulumi.String("string"),
    		Delete: pulumi.String("string"),
    	},
    	VpcPeeringConnectionAccepterV2Id: pulumi.String("string"),
    })
    
    var vpcPeeringConnectionAccepterV2Resource = new VpcPeeringConnectionAccepterV2("vpcPeeringConnectionAccepterV2Resource", VpcPeeringConnectionAccepterV2Args.builder()
        .vpcPeeringConnectionId("string")
        .accept(false)
        .region("string")
        .timeouts(VpcPeeringConnectionAccepterV2TimeoutsArgs.builder()
            .create("string")
            .delete("string")
            .build())
        .vpcPeeringConnectionAccepterV2Id("string")
        .build());
    
    vpc_peering_connection_accepter_v2_resource = opentelekomcloud.VpcPeeringConnectionAccepterV2("vpcPeeringConnectionAccepterV2Resource",
        vpc_peering_connection_id="string",
        accept=False,
        region="string",
        timeouts={
            "create": "string",
            "delete": "string",
        },
        vpc_peering_connection_accepter_v2_id="string")
    
    const vpcPeeringConnectionAccepterV2Resource = new opentelekomcloud.VpcPeeringConnectionAccepterV2("vpcPeeringConnectionAccepterV2Resource", {
        vpcPeeringConnectionId: "string",
        accept: false,
        region: "string",
        timeouts: {
            create: "string",
            "delete": "string",
        },
        vpcPeeringConnectionAccepterV2Id: "string",
    });
    
    type: opentelekomcloud:VpcPeeringConnectionAccepterV2
    properties:
        accept: false
        region: string
        timeouts:
            create: string
            delete: string
        vpcPeeringConnectionAccepterV2Id: string
        vpcPeeringConnectionId: string
    

    VpcPeeringConnectionAccepterV2 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 VpcPeeringConnectionAccepterV2 resource accepts the following input properties:

    Outputs

    All input properties are implicitly available as output properties. Additionally, the VpcPeeringConnectionAccepterV2 resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    PeerTenantId string
    PeerVpcId string
    Status string
    VpcId string
    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    PeerTenantId string
    PeerVpcId string
    Status string
    VpcId string
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    peerTenantId String
    peerVpcId String
    status String
    vpcId String
    id string
    The provider-assigned unique ID for this managed resource.
    name string
    peerTenantId string
    peerVpcId string
    status string
    vpcId string
    id str
    The provider-assigned unique ID for this managed resource.
    name str
    peer_tenant_id str
    peer_vpc_id str
    status str
    vpc_id str
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    peerTenantId String
    peerVpcId String
    status String
    vpcId String

    Look up Existing VpcPeeringConnectionAccepterV2 Resource

    Get an existing VpcPeeringConnectionAccepterV2 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?: VpcPeeringConnectionAccepterV2State, opts?: CustomResourceOptions): VpcPeeringConnectionAccepterV2
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            accept: Optional[bool] = None,
            name: Optional[str] = None,
            peer_tenant_id: Optional[str] = None,
            peer_vpc_id: Optional[str] = None,
            region: Optional[str] = None,
            status: Optional[str] = None,
            timeouts: Optional[VpcPeeringConnectionAccepterV2TimeoutsArgs] = None,
            vpc_id: Optional[str] = None,
            vpc_peering_connection_accepter_v2_id: Optional[str] = None,
            vpc_peering_connection_id: Optional[str] = None) -> VpcPeeringConnectionAccepterV2
    func GetVpcPeeringConnectionAccepterV2(ctx *Context, name string, id IDInput, state *VpcPeeringConnectionAccepterV2State, opts ...ResourceOption) (*VpcPeeringConnectionAccepterV2, error)
    public static VpcPeeringConnectionAccepterV2 Get(string name, Input<string> id, VpcPeeringConnectionAccepterV2State? state, CustomResourceOptions? opts = null)
    public static VpcPeeringConnectionAccepterV2 get(String name, Output<String> id, VpcPeeringConnectionAccepterV2State state, CustomResourceOptions options)
    resources:  _:    type: opentelekomcloud:VpcPeeringConnectionAccepterV2    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:

    Supporting Types

    VpcPeeringConnectionAccepterV2Timeouts, VpcPeeringConnectionAccepterV2TimeoutsArgs

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

    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