1. Packages
  2. Heroku Provider
  3. API Docs
  4. space
  5. PeeringConnectionAccepter
Heroku v1.0.4 published on Tuesday, Apr 8, 2025 by pulumiverse - Marcel Arns

heroku.space.PeeringConnectionAccepter

Explore with Pulumi AI

heroku logo
Heroku v1.0.4 published on Tuesday, Apr 8, 2025 by pulumiverse - Marcel Arns

    Provides a resource for accepting VPC peering requests to Heroku Private Spaces.

    Example Usage

    # Fetch the peering information for the Heroku Private Space.
    data "heroku_space_peering_info" "peer_space" {
      name = "my-fancy-space"
    }
    
    # Initiate the request.
    resource "aws_vpc_peering_connection" "request" {
      peer_owner_id = data.heroku_space_peering_info.peer_space.aws_account_id
      peer_vpc_id   = data.heroku_space_peering_info.peer_space.vpc_id
      vpc_id        = aws_vpc.main.id
    }
    
    # Accept the request.
    resource "heroku_space_peering_connection_accepter" "accept" {
      space                     = heroku_space.peer_space.id
      vpc_peering_connection_id = aws_vpc_peering_connection.request.id
    }
    

    Create PeeringConnectionAccepter Resource

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

    Constructor syntax

    new PeeringConnectionAccepter(name: string, args: PeeringConnectionAccepterArgs, opts?: CustomResourceOptions);
    @overload
    def PeeringConnectionAccepter(resource_name: str,
                                  args: PeeringConnectionAccepterArgs,
                                  opts: Optional[ResourceOptions] = None)
    
    @overload
    def PeeringConnectionAccepter(resource_name: str,
                                  opts: Optional[ResourceOptions] = None,
                                  space: Optional[str] = None,
                                  vpc_peering_connection_id: Optional[str] = None)
    func NewPeeringConnectionAccepter(ctx *Context, name string, args PeeringConnectionAccepterArgs, opts ...ResourceOption) (*PeeringConnectionAccepter, error)
    public PeeringConnectionAccepter(string name, PeeringConnectionAccepterArgs args, CustomResourceOptions? opts = null)
    public PeeringConnectionAccepter(String name, PeeringConnectionAccepterArgs args)
    public PeeringConnectionAccepter(String name, PeeringConnectionAccepterArgs args, CustomResourceOptions options)
    
    type: heroku:space:PeeringConnectionAccepter
    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 PeeringConnectionAccepterArgs
    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 PeeringConnectionAccepterArgs
    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 PeeringConnectionAccepterArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args PeeringConnectionAccepterArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args PeeringConnectionAccepterArgs
    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 peeringConnectionAccepterResource = new Heroku.Space.PeeringConnectionAccepter("peeringConnectionAccepterResource", new()
    {
        Space = "string",
        VpcPeeringConnectionId = "string",
    });
    
    example, err := space.NewPeeringConnectionAccepter(ctx, "peeringConnectionAccepterResource", &space.PeeringConnectionAccepterArgs{
    	Space:                  pulumi.String("string"),
    	VpcPeeringConnectionId: pulumi.String("string"),
    })
    
    var peeringConnectionAccepterResource = new PeeringConnectionAccepter("peeringConnectionAccepterResource", PeeringConnectionAccepterArgs.builder()
        .space("string")
        .vpcPeeringConnectionId("string")
        .build());
    
    peering_connection_accepter_resource = heroku.space.PeeringConnectionAccepter("peeringConnectionAccepterResource",
        space="string",
        vpc_peering_connection_id="string")
    
    const peeringConnectionAccepterResource = new heroku.space.PeeringConnectionAccepter("peeringConnectionAccepterResource", {
        space: "string",
        vpcPeeringConnectionId: "string",
    });
    
    type: heroku:space:PeeringConnectionAccepter
    properties:
        space: string
        vpcPeeringConnectionId: string
    

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

    Space string
    The ID of the space.
    VpcPeeringConnectionId string
    The peering connection request ID.
    Space string
    The ID of the space.
    VpcPeeringConnectionId string
    The peering connection request ID.
    space String
    The ID of the space.
    vpcPeeringConnectionId String
    The peering connection request ID.
    space string
    The ID of the space.
    vpcPeeringConnectionId string
    The peering connection request ID.
    space str
    The ID of the space.
    vpc_peering_connection_id str
    The peering connection request ID.
    space String
    The ID of the space.
    vpcPeeringConnectionId String
    The peering connection request ID.

    Outputs

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

    Id string
    The provider-assigned unique ID for this managed resource.
    Status string
    The status of the peering connection request.
    Type string
    The type of the peering connection.
    Id string
    The provider-assigned unique ID for this managed resource.
    Status string
    The status of the peering connection request.
    Type string
    The type of the peering connection.
    id String
    The provider-assigned unique ID for this managed resource.
    status String
    The status of the peering connection request.
    type String
    The type of the peering connection.
    id string
    The provider-assigned unique ID for this managed resource.
    status string
    The status of the peering connection request.
    type string
    The type of the peering connection.
    id str
    The provider-assigned unique ID for this managed resource.
    status str
    The status of the peering connection request.
    type str
    The type of the peering connection.
    id String
    The provider-assigned unique ID for this managed resource.
    status String
    The status of the peering connection request.
    type String
    The type of the peering connection.

    Look up Existing PeeringConnectionAccepter Resource

    Get an existing PeeringConnectionAccepter 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?: PeeringConnectionAccepterState, opts?: CustomResourceOptions): PeeringConnectionAccepter
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            space: Optional[str] = None,
            status: Optional[str] = None,
            type: Optional[str] = None,
            vpc_peering_connection_id: Optional[str] = None) -> PeeringConnectionAccepter
    func GetPeeringConnectionAccepter(ctx *Context, name string, id IDInput, state *PeeringConnectionAccepterState, opts ...ResourceOption) (*PeeringConnectionAccepter, error)
    public static PeeringConnectionAccepter Get(string name, Input<string> id, PeeringConnectionAccepterState? state, CustomResourceOptions? opts = null)
    public static PeeringConnectionAccepter get(String name, Output<String> id, PeeringConnectionAccepterState state, CustomResourceOptions options)
    resources:  _:    type: heroku:space:PeeringConnectionAccepter    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:
    Space string
    The ID of the space.
    Status string
    The status of the peering connection request.
    Type string
    The type of the peering connection.
    VpcPeeringConnectionId string
    The peering connection request ID.
    Space string
    The ID of the space.
    Status string
    The status of the peering connection request.
    Type string
    The type of the peering connection.
    VpcPeeringConnectionId string
    The peering connection request ID.
    space String
    The ID of the space.
    status String
    The status of the peering connection request.
    type String
    The type of the peering connection.
    vpcPeeringConnectionId String
    The peering connection request ID.
    space string
    The ID of the space.
    status string
    The status of the peering connection request.
    type string
    The type of the peering connection.
    vpcPeeringConnectionId string
    The peering connection request ID.
    space str
    The ID of the space.
    status str
    The status of the peering connection request.
    type str
    The type of the peering connection.
    vpc_peering_connection_id str
    The peering connection request ID.
    space String
    The ID of the space.
    status String
    The status of the peering connection request.
    type String
    The type of the peering connection.
    vpcPeeringConnectionId String
    The peering connection request ID.

    Package Details

    Repository
    heroku pulumiverse/pulumi-heroku
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the heroku Terraform Provider.
    heroku logo
    Heroku v1.0.4 published on Tuesday, Apr 8, 2025 by pulumiverse - Marcel Arns