NetworkPeering
Create a NetworkPeering Resource
new NetworkPeering(name: string, args: NetworkPeeringArgs, opts?: CustomResourceOptions);def NetworkPeering(resource_name, opts=None, accepter_region_name=None, atlas_cidr_block=None, atlas_gcp_project_id=None, atlas_vpc_name=None, aws_account_id=None, azure_directory_id=None, azure_subscription_id=None, container_id=None, gcp_project_id=None, network_name=None, project_id=None, provider_name=None, resource_group_name=None, route_table_cidr_block=None, vnet_name=None, vpc_id=None, __props__=None);func NewNetworkPeering(ctx *Context, name string, args NetworkPeeringArgs, opts ...ResourceOption) (*NetworkPeering, error)public NetworkPeering(string name, NetworkPeeringArgs args, CustomResourceOptions? opts = null)- name string
- The unique name of the resource.
- args NetworkPeeringArgs
- 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 NetworkPeeringArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args NetworkPeeringArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
NetworkPeering Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.
Inputs
The NetworkPeering resource accepts the following input properties:
- Container
Id string Unique identifier of the Atlas VPC container for the region. You can create an Atlas VPC container using the Create Container endpoint. You cannot create more than one container per region. To retrieve a list of container IDs, use the Get list of VPC containers endpoint.
- Project
Id string The unique ID for the project to create the database user.
- Provider
Name string Cloud provider for this VPC peering connection. (Possible Values
AWS,AZURE,GCP).- Accepter
Region stringName Specifies the region where the peer VPC resides. For complete lists of supported regions, see Amazon Web Services.
- Atlas
Cidr stringBlock Unique identifier for an Azure AD directory.
- Atlas
Gcp stringProject Id The Atlas GCP Project ID for the GCP VPC used by your atlas cluster that it is need to set up the reciprocal connection.
- Atlas
Vpc stringName The Atlas VPC Name is used by your atlas clister that it is need to set up the reciprocal connection.
- Aws
Account stringId Account ID of the owner of the peer VPC.
- Azure
Directory stringId Unique identifier for an Azure AD directory.
- Azure
Subscription stringId Unique identifer of the Azure subscription in which the VNet resides.
- Gcp
Project stringId GCP project ID of the owner of the network peer.
- Network
Name string Name of the network peer to which Atlas connects.
- Resource
Group stringName Name of your Azure resource group.
- Route
Table stringCidr Block Peer VPC CIDR block or subnet.
- Vnet
Name string Name of your Azure VNet.
- Vpc
Id string Unique identifier of the peer VPC.
- Container
Id string Unique identifier of the Atlas VPC container for the region. You can create an Atlas VPC container using the Create Container endpoint. You cannot create more than one container per region. To retrieve a list of container IDs, use the Get list of VPC containers endpoint.
- Project
Id string The unique ID for the project to create the database user.
- Provider
Name string Cloud provider for this VPC peering connection. (Possible Values
AWS,AZURE,GCP).- Accepter
Region stringName Specifies the region where the peer VPC resides. For complete lists of supported regions, see Amazon Web Services.
- Atlas
Cidr stringBlock Unique identifier for an Azure AD directory.
- Atlas
Gcp stringProject Id The Atlas GCP Project ID for the GCP VPC used by your atlas cluster that it is need to set up the reciprocal connection.
- Atlas
Vpc stringName The Atlas VPC Name is used by your atlas clister that it is need to set up the reciprocal connection.
- Aws
Account stringId Account ID of the owner of the peer VPC.
- Azure
Directory stringId Unique identifier for an Azure AD directory.
- Azure
Subscription stringId Unique identifer of the Azure subscription in which the VNet resides.
- Gcp
Project stringId GCP project ID of the owner of the network peer.
- Network
Name string Name of the network peer to which Atlas connects.
- Resource
Group stringName Name of your Azure resource group.
- Route
Table stringCidr Block Peer VPC CIDR block or subnet.
- Vnet
Name string Name of your Azure VNet.
- Vpc
Id string Unique identifier of the peer VPC.
- container
Id string Unique identifier of the Atlas VPC container for the region. You can create an Atlas VPC container using the Create Container endpoint. You cannot create more than one container per region. To retrieve a list of container IDs, use the Get list of VPC containers endpoint.
- project
Id string The unique ID for the project to create the database user.
- provider
Name string Cloud provider for this VPC peering connection. (Possible Values
AWS,AZURE,GCP).- accepter
Region stringName Specifies the region where the peer VPC resides. For complete lists of supported regions, see Amazon Web Services.
- atlas
Cidr stringBlock Unique identifier for an Azure AD directory.
- atlas
Gcp stringProject Id The Atlas GCP Project ID for the GCP VPC used by your atlas cluster that it is need to set up the reciprocal connection.
- atlas
Vpc stringName The Atlas VPC Name is used by your atlas clister that it is need to set up the reciprocal connection.
- aws
Account stringId Account ID of the owner of the peer VPC.
- azure
Directory stringId Unique identifier for an Azure AD directory.
- azure
Subscription stringId Unique identifer of the Azure subscription in which the VNet resides.
- gcp
Project stringId GCP project ID of the owner of the network peer.
- network
Name string Name of the network peer to which Atlas connects.
- resource
Group stringName Name of your Azure resource group.
- route
Table stringCidr Block Peer VPC CIDR block or subnet.
- vnet
Name string Name of your Azure VNet.
- vpc
Id string Unique identifier of the peer VPC.
- container_
id str Unique identifier of the Atlas VPC container for the region. You can create an Atlas VPC container using the Create Container endpoint. You cannot create more than one container per region. To retrieve a list of container IDs, use the Get list of VPC containers endpoint.
- project_
id str The unique ID for the project to create the database user.
- provider_
name str Cloud provider for this VPC peering connection. (Possible Values
AWS,AZURE,GCP).- accepter_
region_ strname Specifies the region where the peer VPC resides. For complete lists of supported regions, see Amazon Web Services.
- atlas_
cidr_ strblock Unique identifier for an Azure AD directory.
- atlas_
gcp_ strproject_ id The Atlas GCP Project ID for the GCP VPC used by your atlas cluster that it is need to set up the reciprocal connection.
- atlas_
vpc_ strname The Atlas VPC Name is used by your atlas clister that it is need to set up the reciprocal connection.
- aws_
account_ strid Account ID of the owner of the peer VPC.
- azure_
directory_ strid Unique identifier for an Azure AD directory.
- azure_
subscription_ strid Unique identifer of the Azure subscription in which the VNet resides.
- gcp_
project_ strid GCP project ID of the owner of the network peer.
- network_
name str Name of the network peer to which Atlas connects.
- resource_
group_ strname Name of your Azure resource group.
- route_
table_ strcidr_ block Peer VPC CIDR block or subnet.
- vnet_
name str Name of your Azure VNet.
- vpc_
id str Unique identifier of the peer VPC.
Outputs
All input properties are implicitly available as output properties. Additionally, the NetworkPeering resource produces the following output properties:
- Atlas
Id string - Connection
Id string Unique identifier for the peering connection.
- Error
Message string When
"status" : "FAILED", Atlas provides a description of the error.- Error
State string Description of the Atlas error when
statusisFailed, Otherwise, Atlas returnsnull.- Error
State stringName Error state, if any. The VPC peering connection error state value can be one of the following:
REJECTED,EXPIRED,INVALID_ARGUMENT.- Id string
- The provider-assigned unique ID for this managed resource.
- Peer
Id string The Network Peering Container ID.
- Status string
(Azure/GCP Only) Status of the Atlas network peering connection. Azure/GCP:
ADDING_PEER,AVAILABLE,FAILED,DELETINGGCP Only:WAITING_FOR_USER.- Status
Name string (AWS Only) The VPC peering connection status value can be one of the following:
INITIATING,PENDING_ACCEPTANCE,FAILED,FINALIZING,AVAILABLE,TERMINATING.
- Atlas
Id string - Connection
Id string Unique identifier for the peering connection.
- Error
Message string When
"status" : "FAILED", Atlas provides a description of the error.- Error
State string Description of the Atlas error when
statusisFailed, Otherwise, Atlas returnsnull.- Error
State stringName Error state, if any. The VPC peering connection error state value can be one of the following:
REJECTED,EXPIRED,INVALID_ARGUMENT.- Id string
- The provider-assigned unique ID for this managed resource.
- Peer
Id string The Network Peering Container ID.
- Status string
(Azure/GCP Only) Status of the Atlas network peering connection. Azure/GCP:
ADDING_PEER,AVAILABLE,FAILED,DELETINGGCP Only:WAITING_FOR_USER.- Status
Name string (AWS Only) The VPC peering connection status value can be one of the following:
INITIATING,PENDING_ACCEPTANCE,FAILED,FINALIZING,AVAILABLE,TERMINATING.
- atlas
Id string - connection
Id string Unique identifier for the peering connection.
- error
Message string When
"status" : "FAILED", Atlas provides a description of the error.- error
State string Description of the Atlas error when
statusisFailed, Otherwise, Atlas returnsnull.- error
State stringName Error state, if any. The VPC peering connection error state value can be one of the following:
REJECTED,EXPIRED,INVALID_ARGUMENT.- id string
- The provider-assigned unique ID for this managed resource.
- peer
Id string The Network Peering Container ID.
- status string
(Azure/GCP Only) Status of the Atlas network peering connection. Azure/GCP:
ADDING_PEER,AVAILABLE,FAILED,DELETINGGCP Only:WAITING_FOR_USER.- status
Name string (AWS Only) The VPC peering connection status value can be one of the following:
INITIATING,PENDING_ACCEPTANCE,FAILED,FINALIZING,AVAILABLE,TERMINATING.
- atlas_
id str - connection_
id str Unique identifier for the peering connection.
- error_
message str When
"status" : "FAILED", Atlas provides a description of the error.- error_
state str Description of the Atlas error when
statusisFailed, Otherwise, Atlas returnsnull.- error_
state_ strname Error state, if any. The VPC peering connection error state value can be one of the following:
REJECTED,EXPIRED,INVALID_ARGUMENT.- id str
- The provider-assigned unique ID for this managed resource.
- peer_
id str The Network Peering Container ID.
- status str
(Azure/GCP Only) Status of the Atlas network peering connection. Azure/GCP:
ADDING_PEER,AVAILABLE,FAILED,DELETINGGCP Only:WAITING_FOR_USER.- status_
name str (AWS Only) The VPC peering connection status value can be one of the following:
INITIATING,PENDING_ACCEPTANCE,FAILED,FINALIZING,AVAILABLE,TERMINATING.
Look up an Existing NetworkPeering Resource
Get an existing NetworkPeering 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?: NetworkPeeringState, opts?: CustomResourceOptions): NetworkPeeringstatic get(resource_name, id, opts=None, accepter_region_name=None, atlas_cidr_block=None, atlas_gcp_project_id=None, atlas_id=None, atlas_vpc_name=None, aws_account_id=None, azure_directory_id=None, azure_subscription_id=None, connection_id=None, container_id=None, error_message=None, error_state=None, error_state_name=None, gcp_project_id=None, network_name=None, peer_id=None, project_id=None, provider_name=None, resource_group_name=None, route_table_cidr_block=None, status=None, status_name=None, vnet_name=None, vpc_id=None, __props__=None);func GetNetworkPeering(ctx *Context, name string, id IDInput, state *NetworkPeeringState, opts ...ResourceOption) (*NetworkPeering, error)public static NetworkPeering Get(string name, Input<string> id, NetworkPeeringState? 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:
- Accepter
Region stringName Specifies the region where the peer VPC resides. For complete lists of supported regions, see Amazon Web Services.
- Atlas
Cidr stringBlock Unique identifier for an Azure AD directory.
- Atlas
Gcp stringProject Id The Atlas GCP Project ID for the GCP VPC used by your atlas cluster that it is need to set up the reciprocal connection.
- Atlas
Id string - Atlas
Vpc stringName The Atlas VPC Name is used by your atlas clister that it is need to set up the reciprocal connection.
- Aws
Account stringId Account ID of the owner of the peer VPC.
- Azure
Directory stringId Unique identifier for an Azure AD directory.
- Azure
Subscription stringId Unique identifer of the Azure subscription in which the VNet resides.
- Connection
Id string Unique identifier for the peering connection.
- Container
Id string Unique identifier of the Atlas VPC container for the region. You can create an Atlas VPC container using the Create Container endpoint. You cannot create more than one container per region. To retrieve a list of container IDs, use the Get list of VPC containers endpoint.
- Error
Message string When
"status" : "FAILED", Atlas provides a description of the error.- Error
State string Description of the Atlas error when
statusisFailed, Otherwise, Atlas returnsnull.- Error
State stringName Error state, if any. The VPC peering connection error state value can be one of the following:
REJECTED,EXPIRED,INVALID_ARGUMENT.- Gcp
Project stringId GCP project ID of the owner of the network peer.
- Network
Name string Name of the network peer to which Atlas connects.
- Peer
Id string The Network Peering Container ID.
- Project
Id string The unique ID for the project to create the database user.
- Provider
Name string Cloud provider for this VPC peering connection. (Possible Values
AWS,AZURE,GCP).- Resource
Group stringName Name of your Azure resource group.
- Route
Table stringCidr Block Peer VPC CIDR block or subnet.
- Status string
(Azure/GCP Only) Status of the Atlas network peering connection. Azure/GCP:
ADDING_PEER,AVAILABLE,FAILED,DELETINGGCP Only:WAITING_FOR_USER.- Status
Name string (AWS Only) The VPC peering connection status value can be one of the following:
INITIATING,PENDING_ACCEPTANCE,FAILED,FINALIZING,AVAILABLE,TERMINATING.- Vnet
Name string Name of your Azure VNet.
- Vpc
Id string Unique identifier of the peer VPC.
- Accepter
Region stringName Specifies the region where the peer VPC resides. For complete lists of supported regions, see Amazon Web Services.
- Atlas
Cidr stringBlock Unique identifier for an Azure AD directory.
- Atlas
Gcp stringProject Id The Atlas GCP Project ID for the GCP VPC used by your atlas cluster that it is need to set up the reciprocal connection.
- Atlas
Id string - Atlas
Vpc stringName The Atlas VPC Name is used by your atlas clister that it is need to set up the reciprocal connection.
- Aws
Account stringId Account ID of the owner of the peer VPC.
- Azure
Directory stringId Unique identifier for an Azure AD directory.
- Azure
Subscription stringId Unique identifer of the Azure subscription in which the VNet resides.
- Connection
Id string Unique identifier for the peering connection.
- Container
Id string Unique identifier of the Atlas VPC container for the region. You can create an Atlas VPC container using the Create Container endpoint. You cannot create more than one container per region. To retrieve a list of container IDs, use the Get list of VPC containers endpoint.
- Error
Message string When
"status" : "FAILED", Atlas provides a description of the error.- Error
State string Description of the Atlas error when
statusisFailed, Otherwise, Atlas returnsnull.- Error
State stringName Error state, if any. The VPC peering connection error state value can be one of the following:
REJECTED,EXPIRED,INVALID_ARGUMENT.- Gcp
Project stringId GCP project ID of the owner of the network peer.
- Network
Name string Name of the network peer to which Atlas connects.
- Peer
Id string The Network Peering Container ID.
- Project
Id string The unique ID for the project to create the database user.
- Provider
Name string Cloud provider for this VPC peering connection. (Possible Values
AWS,AZURE,GCP).- Resource
Group stringName Name of your Azure resource group.
- Route
Table stringCidr Block Peer VPC CIDR block or subnet.
- Status string
(Azure/GCP Only) Status of the Atlas network peering connection. Azure/GCP:
ADDING_PEER,AVAILABLE,FAILED,DELETINGGCP Only:WAITING_FOR_USER.- Status
Name string (AWS Only) The VPC peering connection status value can be one of the following:
INITIATING,PENDING_ACCEPTANCE,FAILED,FINALIZING,AVAILABLE,TERMINATING.- Vnet
Name string Name of your Azure VNet.
- Vpc
Id string Unique identifier of the peer VPC.
- accepter
Region stringName Specifies the region where the peer VPC resides. For complete lists of supported regions, see Amazon Web Services.
- atlas
Cidr stringBlock Unique identifier for an Azure AD directory.
- atlas
Gcp stringProject Id The Atlas GCP Project ID for the GCP VPC used by your atlas cluster that it is need to set up the reciprocal connection.
- atlas
Id string - atlas
Vpc stringName The Atlas VPC Name is used by your atlas clister that it is need to set up the reciprocal connection.
- aws
Account stringId Account ID of the owner of the peer VPC.
- azure
Directory stringId Unique identifier for an Azure AD directory.
- azure
Subscription stringId Unique identifer of the Azure subscription in which the VNet resides.
- connection
Id string Unique identifier for the peering connection.
- container
Id string Unique identifier of the Atlas VPC container for the region. You can create an Atlas VPC container using the Create Container endpoint. You cannot create more than one container per region. To retrieve a list of container IDs, use the Get list of VPC containers endpoint.
- error
Message string When
"status" : "FAILED", Atlas provides a description of the error.- error
State string Description of the Atlas error when
statusisFailed, Otherwise, Atlas returnsnull.- error
State stringName Error state, if any. The VPC peering connection error state value can be one of the following:
REJECTED,EXPIRED,INVALID_ARGUMENT.- gcp
Project stringId GCP project ID of the owner of the network peer.
- network
Name string Name of the network peer to which Atlas connects.
- peer
Id string The Network Peering Container ID.
- project
Id string The unique ID for the project to create the database user.
- provider
Name string Cloud provider for this VPC peering connection. (Possible Values
AWS,AZURE,GCP).- resource
Group stringName Name of your Azure resource group.
- route
Table stringCidr Block Peer VPC CIDR block or subnet.
- status string
(Azure/GCP Only) Status of the Atlas network peering connection. Azure/GCP:
ADDING_PEER,AVAILABLE,FAILED,DELETINGGCP Only:WAITING_FOR_USER.- status
Name string (AWS Only) The VPC peering connection status value can be one of the following:
INITIATING,PENDING_ACCEPTANCE,FAILED,FINALIZING,AVAILABLE,TERMINATING.- vnet
Name string Name of your Azure VNet.
- vpc
Id string Unique identifier of the peer VPC.
- accepter_
region_ strname Specifies the region where the peer VPC resides. For complete lists of supported regions, see Amazon Web Services.
- atlas_
cidr_ strblock Unique identifier for an Azure AD directory.
- atlas_
gcp_ strproject_ id The Atlas GCP Project ID for the GCP VPC used by your atlas cluster that it is need to set up the reciprocal connection.
- atlas_
id str - atlas_
vpc_ strname The Atlas VPC Name is used by your atlas clister that it is need to set up the reciprocal connection.
- aws_
account_ strid Account ID of the owner of the peer VPC.
- azure_
directory_ strid Unique identifier for an Azure AD directory.
- azure_
subscription_ strid Unique identifer of the Azure subscription in which the VNet resides.
- connection_
id str Unique identifier for the peering connection.
- container_
id str Unique identifier of the Atlas VPC container for the region. You can create an Atlas VPC container using the Create Container endpoint. You cannot create more than one container per region. To retrieve a list of container IDs, use the Get list of VPC containers endpoint.
- error_
message str When
"status" : "FAILED", Atlas provides a description of the error.- error_
state str Description of the Atlas error when
statusisFailed, Otherwise, Atlas returnsnull.- error_
state_ strname Error state, if any. The VPC peering connection error state value can be one of the following:
REJECTED,EXPIRED,INVALID_ARGUMENT.- gcp_
project_ strid GCP project ID of the owner of the network peer.
- network_
name str Name of the network peer to which Atlas connects.
- peer_
id str The Network Peering Container ID.
- project_
id str The unique ID for the project to create the database user.
- provider_
name str Cloud provider for this VPC peering connection. (Possible Values
AWS,AZURE,GCP).- resource_
group_ strname Name of your Azure resource group.
- route_
table_ strcidr_ block Peer VPC CIDR block or subnet.
- status str
(Azure/GCP Only) Status of the Atlas network peering connection. Azure/GCP:
ADDING_PEER,AVAILABLE,FAILED,DELETINGGCP Only:WAITING_FOR_USER.- status_
name str (AWS Only) The VPC peering connection status value can be one of the following:
INITIATING,PENDING_ACCEPTANCE,FAILED,FINALIZING,AVAILABLE,TERMINATING.- vnet_
name str Name of your Azure VNet.
- vpc_
id str Unique identifier of the peer VPC.
Package Details
- Repository
- https://github.com/pulumi/pulumi-mongodbatlas
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
mongodbatlasTerraform Provider.