GatewayAssociationProposal
Manages a Direct Connect Gateway Association Proposal, typically for enabling cross-account associations. For single account associations, see the aws.directconnect.GatewayAssociation resource.
Example Usage
using Pulumi;
using Aws = Pulumi.Aws;
class MyStack : Stack
{
public MyStack()
{
var example = new Aws.DirectConnect.GatewayAssociationProposal("example", new Aws.DirectConnect.GatewayAssociationProposalArgs
{
AssociatedGatewayId = aws_vpn_gateway.Example.Id,
DxGatewayId = aws_dx_gateway.Example.Id,
DxGatewayOwnerAccountId = aws_dx_gateway.Example.Owner_account_id,
});
}
}
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v2/go/aws/directconnect"
"github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := directconnect.NewGatewayAssociationProposal(ctx, "example", &directconnect.GatewayAssociationProposalArgs{
AssociatedGatewayId: pulumi.String(aws_vpn_gateway.Example.Id),
DxGatewayId: pulumi.String(aws_dx_gateway.Example.Id),
DxGatewayOwnerAccountId: pulumi.String(aws_dx_gateway.Example.Owner_account_id),
})
if err != nil {
return err
}
return nil
})
}import pulumi
import pulumi_aws as aws
example = aws.directconnect.GatewayAssociationProposal("example",
associated_gateway_id=aws_vpn_gateway["example"]["id"],
dx_gateway_id=aws_dx_gateway["example"]["id"],
dx_gateway_owner_account_id=aws_dx_gateway["example"]["owner_account_id"])import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = new aws.directconnect.GatewayAssociationProposal("example", {
associatedGatewayId: aws_vpn_gateway_example.id,
dxGatewayId: aws_dx_gateway_example.id,
dxGatewayOwnerAccountId: aws_dx_gateway_example.ownerAccountId,
});Create a GatewayAssociationProposal Resource
new GatewayAssociationProposal(name: string, args: GatewayAssociationProposalArgs, opts?: CustomResourceOptions);def GatewayAssociationProposal(resource_name, opts=None, allowed_prefixes=None, associated_gateway_id=None, dx_gateway_id=None, dx_gateway_owner_account_id=None, vpn_gateway_id=None, __props__=None);func NewGatewayAssociationProposal(ctx *Context, name string, args GatewayAssociationProposalArgs, opts ...ResourceOption) (*GatewayAssociationProposal, error)public GatewayAssociationProposal(string name, GatewayAssociationProposalArgs args, CustomResourceOptions? opts = null)- name string
- The unique name of the resource.
- args GatewayAssociationProposalArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- opts ResourceOptions
- A bag of options that control this resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args GatewayAssociationProposalArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args GatewayAssociationProposalArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
GatewayAssociationProposal Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.
Inputs
The GatewayAssociationProposal resource accepts the following input properties:
- Dx
Gateway stringId Direct Connect Gateway identifier.
- Dx
Gateway stringOwner Account Id AWS Account identifier of the Direct Connect Gateway’s owner.
- Allowed
Prefixes List<string> VPC prefixes (CIDRs) to advertise to the Direct Connect gateway. Defaults to the CIDR block of the VPC associated with the Virtual Gateway. To enable drift detection, must be configured.
- Associated
Gateway stringId The ID of the VGW or transit gateway with which to associate the Direct Connect gateway.
- Vpn
Gateway stringId Deprecated: Use
associated_gateway_idinstead. Virtual Gateway identifier to associate with the Direct Connect Gateway.
- Dx
Gateway stringId Direct Connect Gateway identifier.
- Dx
Gateway stringOwner Account Id AWS Account identifier of the Direct Connect Gateway’s owner.
- Allowed
Prefixes []string VPC prefixes (CIDRs) to advertise to the Direct Connect gateway. Defaults to the CIDR block of the VPC associated with the Virtual Gateway. To enable drift detection, must be configured.
- Associated
Gateway stringId The ID of the VGW or transit gateway with which to associate the Direct Connect gateway.
- Vpn
Gateway stringId Deprecated: Use
associated_gateway_idinstead. Virtual Gateway identifier to associate with the Direct Connect Gateway.
- dx
Gateway stringId Direct Connect Gateway identifier.
- dx
Gateway stringOwner Account Id AWS Account identifier of the Direct Connect Gateway’s owner.
- allowed
Prefixes string[] VPC prefixes (CIDRs) to advertise to the Direct Connect gateway. Defaults to the CIDR block of the VPC associated with the Virtual Gateway. To enable drift detection, must be configured.
- associated
Gateway stringId The ID of the VGW or transit gateway with which to associate the Direct Connect gateway.
- vpn
Gateway stringId Deprecated: Use
associated_gateway_idinstead. Virtual Gateway identifier to associate with the Direct Connect Gateway.
- dx_
gateway_ strid Direct Connect Gateway identifier.
- dx_
gateway_ strowner_ account_ id AWS Account identifier of the Direct Connect Gateway’s owner.
- allowed_
prefixes List[str] VPC prefixes (CIDRs) to advertise to the Direct Connect gateway. Defaults to the CIDR block of the VPC associated with the Virtual Gateway. To enable drift detection, must be configured.
- associated_
gateway_ strid The ID of the VGW or transit gateway with which to associate the Direct Connect gateway.
- vpn_
gateway_ strid Deprecated: Use
associated_gateway_idinstead. Virtual Gateway identifier to associate with the Direct Connect Gateway.
Outputs
All input properties are implicitly available as output properties. Additionally, the GatewayAssociationProposal resource produces the following output properties:
- Associated
Gateway stringOwner Account Id The ID of the AWS account that owns the VGW or transit gateway with which to associate the Direct Connect gateway.
- Associated
Gateway stringType The type of the associated gateway,
transitGatewayorvirtualPrivateGateway.- Id string
- The provider-assigned unique ID for this managed resource.
- Associated
Gateway stringOwner Account Id The ID of the AWS account that owns the VGW or transit gateway with which to associate the Direct Connect gateway.
- Associated
Gateway stringType The type of the associated gateway,
transitGatewayorvirtualPrivateGateway.- Id string
- The provider-assigned unique ID for this managed resource.
- associated
Gateway stringOwner Account Id The ID of the AWS account that owns the VGW or transit gateway with which to associate the Direct Connect gateway.
- associated
Gateway stringType The type of the associated gateway,
transitGatewayorvirtualPrivateGateway.- id string
- The provider-assigned unique ID for this managed resource.
- associated_
gateway_ strowner_ account_ id The ID of the AWS account that owns the VGW or transit gateway with which to associate the Direct Connect gateway.
- associated_
gateway_ strtype The type of the associated gateway,
transitGatewayorvirtualPrivateGateway.- id str
- The provider-assigned unique ID for this managed resource.
Look up an Existing GatewayAssociationProposal Resource
Get an existing GatewayAssociationProposal 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?: GatewayAssociationProposalState, opts?: CustomResourceOptions): GatewayAssociationProposalstatic get(resource_name, id, opts=None, allowed_prefixes=None, associated_gateway_id=None, associated_gateway_owner_account_id=None, associated_gateway_type=None, dx_gateway_id=None, dx_gateway_owner_account_id=None, vpn_gateway_id=None, __props__=None);func GetGatewayAssociationProposal(ctx *Context, name string, id IDInput, state *GatewayAssociationProposalState, opts ...ResourceOption) (*GatewayAssociationProposal, error)public static GatewayAssociationProposal Get(string name, Input<string> id, GatewayAssociationProposalState? state, CustomResourceOptions? opts = null)- 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.
The following state arguments are supported:
- Allowed
Prefixes List<string> VPC prefixes (CIDRs) to advertise to the Direct Connect gateway. Defaults to the CIDR block of the VPC associated with the Virtual Gateway. To enable drift detection, must be configured.
- Associated
Gateway stringId The ID of the VGW or transit gateway with which to associate the Direct Connect gateway.
- Associated
Gateway stringOwner Account Id The ID of the AWS account that owns the VGW or transit gateway with which to associate the Direct Connect gateway.
- Associated
Gateway stringType The type of the associated gateway,
transitGatewayorvirtualPrivateGateway.- Dx
Gateway stringId Direct Connect Gateway identifier.
- Dx
Gateway stringOwner Account Id AWS Account identifier of the Direct Connect Gateway’s owner.
- Vpn
Gateway stringId Deprecated: Use
associated_gateway_idinstead. Virtual Gateway identifier to associate with the Direct Connect Gateway.
- Allowed
Prefixes []string VPC prefixes (CIDRs) to advertise to the Direct Connect gateway. Defaults to the CIDR block of the VPC associated with the Virtual Gateway. To enable drift detection, must be configured.
- Associated
Gateway stringId The ID of the VGW or transit gateway with which to associate the Direct Connect gateway.
- Associated
Gateway stringOwner Account Id The ID of the AWS account that owns the VGW or transit gateway with which to associate the Direct Connect gateway.
- Associated
Gateway stringType The type of the associated gateway,
transitGatewayorvirtualPrivateGateway.- Dx
Gateway stringId Direct Connect Gateway identifier.
- Dx
Gateway stringOwner Account Id AWS Account identifier of the Direct Connect Gateway’s owner.
- Vpn
Gateway stringId Deprecated: Use
associated_gateway_idinstead. Virtual Gateway identifier to associate with the Direct Connect Gateway.
- allowed
Prefixes string[] VPC prefixes (CIDRs) to advertise to the Direct Connect gateway. Defaults to the CIDR block of the VPC associated with the Virtual Gateway. To enable drift detection, must be configured.
- associated
Gateway stringId The ID of the VGW or transit gateway with which to associate the Direct Connect gateway.
- associated
Gateway stringOwner Account Id The ID of the AWS account that owns the VGW or transit gateway with which to associate the Direct Connect gateway.
- associated
Gateway stringType The type of the associated gateway,
transitGatewayorvirtualPrivateGateway.- dx
Gateway stringId Direct Connect Gateway identifier.
- dx
Gateway stringOwner Account Id AWS Account identifier of the Direct Connect Gateway’s owner.
- vpn
Gateway stringId Deprecated: Use
associated_gateway_idinstead. Virtual Gateway identifier to associate with the Direct Connect Gateway.
- allowed_
prefixes List[str] VPC prefixes (CIDRs) to advertise to the Direct Connect gateway. Defaults to the CIDR block of the VPC associated with the Virtual Gateway. To enable drift detection, must be configured.
- associated_
gateway_ strid The ID of the VGW or transit gateway with which to associate the Direct Connect gateway.
- associated_
gateway_ strowner_ account_ id The ID of the AWS account that owns the VGW or transit gateway with which to associate the Direct Connect gateway.
- associated_
gateway_ strtype The type of the associated gateway,
transitGatewayorvirtualPrivateGateway.- dx_
gateway_ strid Direct Connect Gateway identifier.
- dx_
gateway_ strowner_ account_ id AWS Account identifier of the Direct Connect Gateway’s owner.
- vpn_
gateway_ strid Deprecated: Use
associated_gateway_idinstead. Virtual Gateway identifier to associate with the Direct Connect Gateway.
Package Details
- Repository
- https://github.com/pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
awsTerraform Provider.