PrivateEndpointInterfaceLink
mongodbatlas..PrivateEndpointInterfaceLink provides a Private Endpoint Interface Link resource. This represents a Private Endpoint Interface Link, which adds one interface endpoint to a private endpoint connection in an Atlas project.
IMPORTANT:You must have one of the following roles to successfully handle the resource: * Organization Owner * Project Owner
NOTE: Groups and projects are synonymous terms. You may find group_id in the official documentation.
Example Usage
using Pulumi;
using Aws = Pulumi.Aws;
using Mongodbatlas = Pulumi.Mongodbatlas;
class MyStack : Stack
{
public MyStack()
{
var testPrivateEndpoint = new Mongodbatlas.PrivateEndpoint("testPrivateEndpoint", new Mongodbatlas.PrivateEndpointArgs
{
ProjectId = "<PROJECT_ID>",
ProviderName = "AWS",
Region = "us-east-1",
});
var ptfeService = new Aws.Ec2.VpcEndpoint("ptfeService", new Aws.Ec2.VpcEndpointArgs
{
SecurityGroupIds =
{
"sg-3f238186",
},
ServiceName = testPrivateEndpoint.EndpointServiceName,
SubnetIds =
{
"subnet-de0406d2",
},
VpcEndpointType = "Interface",
VpcId = "vpc-7fc0a543",
});
var testPrivateEndpointInterfaceLink = new Mongodbatlas.PrivateEndpointInterfaceLink("testPrivateEndpointInterfaceLink", new Mongodbatlas.PrivateEndpointInterfaceLinkArgs
{
InterfaceEndpointId = ptfeService.Id,
PrivateLinkId = testPrivateEndpoint.PrivateLinkId,
ProjectId = testPrivateEndpoint.ProjectId,
});
}
}
Coming soon!
import pulumi
import pulumi_aws as aws
import pulumi_mongodbatlas as mongodbatlas
test_private_endpoint = mongodbatlas.PrivateEndpoint("testPrivateEndpoint",
project_id="<PROJECT_ID>",
provider_name="AWS",
region="us-east-1")
ptfe_service = aws.ec2.VpcEndpoint("ptfeService",
security_group_ids=["sg-3f238186"],
service_name=test_private_endpoint.endpoint_service_name,
subnet_ids=["subnet-de0406d2"],
vpc_endpoint_type="Interface",
vpc_id="vpc-7fc0a543")
test_private_endpoint_interface_link = mongodbatlas.PrivateEndpointInterfaceLink("testPrivateEndpointInterfaceLink",
interface_endpoint_id=ptfe_service.id,
private_link_id=test_private_endpoint.private_link_id,
project_id=test_private_endpoint.project_id)import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
import * as mongodbatlas from "@pulumi/mongodbatlas";
const testPrivateEndpoint = new mongodbatlas.PrivateEndpoint("test", {
projectId: "<PROJECT_ID>",
providerName: "AWS",
region: "us-east-1",
});
const ptfeService = new aws.ec2.VpcEndpoint("ptfe_service", {
securityGroupIds: ["sg-3f238186"],
serviceName: testPrivateEndpoint.endpointServiceName,
subnetIds: ["subnet-de0406d2"],
vpcEndpointType: "Interface",
vpcId: "vpc-7fc0a543",
});
const testPrivateEndpointInterfaceLink = new mongodbatlas.PrivateEndpointInterfaceLink("test", {
interfaceEndpointId: ptfeService.id,
privateLinkId: testPrivateEndpoint.privateLinkId,
projectId: testPrivateEndpoint.projectId,
});Create a PrivateEndpointInterfaceLink Resource
new PrivateEndpointInterfaceLink(name: string, args: PrivateEndpointInterfaceLinkArgs, opts?: CustomResourceOptions);def PrivateEndpointInterfaceLink(resource_name, opts=None, interface_endpoint_id=None, private_link_id=None, project_id=None, __props__=None);func NewPrivateEndpointInterfaceLink(ctx *Context, name string, args PrivateEndpointInterfaceLinkArgs, opts ...ResourceOption) (*PrivateEndpointInterfaceLink, error)public PrivateEndpointInterfaceLink(string name, PrivateEndpointInterfaceLinkArgs args, CustomResourceOptions? opts = null)- name string
- The unique name of the resource.
- args PrivateEndpointInterfaceLinkArgs
- 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 PrivateEndpointInterfaceLinkArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args PrivateEndpointInterfaceLinkArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
PrivateEndpointInterfaceLink Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.
Inputs
The PrivateEndpointInterfaceLink resource accepts the following input properties:
- Interface
Endpoint stringId Unique identifier of the interface endpoint you created in your VPC with the AWS resource.
- Private
Link stringId Unique identifier of the AWS PrivateLink connection which is created by
mongodbatlas..PrivateEndpointresource.- Project
Id string Unique identifier for the project.
- Interface
Endpoint stringId Unique identifier of the interface endpoint you created in your VPC with the AWS resource.
- Private
Link stringId Unique identifier of the AWS PrivateLink connection which is created by
mongodbatlas..PrivateEndpointresource.- Project
Id string Unique identifier for the project.
- interface
Endpoint stringId Unique identifier of the interface endpoint you created in your VPC with the AWS resource.
- private
Link stringId Unique identifier of the AWS PrivateLink connection which is created by
mongodbatlas..PrivateEndpointresource.- project
Id string Unique identifier for the project.
- interface_
endpoint_ strid Unique identifier of the interface endpoint you created in your VPC with the AWS resource.
- private_
link_ strid Unique identifier of the AWS PrivateLink connection which is created by
mongodbatlas..PrivateEndpointresource.- project_
id str Unique identifier for the project.
Outputs
All input properties are implicitly available as output properties. Additionally, the PrivateEndpointInterfaceLink resource produces the following output properties:
- Connection
Status string Status of the interface endpoint. Returns one of the following values:
- Delete
Requested bool Indicates if Atlas received a request to remove the interface endpoint from the private endpoint connection.
- Error
Message string Error message pertaining to the interface endpoint. Returns null if there are no errors.
- Id string
- The provider-assigned unique ID for this managed resource.
- Connection
Status string Status of the interface endpoint. Returns one of the following values:
- Delete
Requested bool Indicates if Atlas received a request to remove the interface endpoint from the private endpoint connection.
- Error
Message string Error message pertaining to the interface endpoint. Returns null if there are no errors.
- Id string
- The provider-assigned unique ID for this managed resource.
- connection
Status string Status of the interface endpoint. Returns one of the following values:
- delete
Requested boolean Indicates if Atlas received a request to remove the interface endpoint from the private endpoint connection.
- error
Message string Error message pertaining to the interface endpoint. Returns null if there are no errors.
- id string
- The provider-assigned unique ID for this managed resource.
- connection_
status str Status of the interface endpoint. Returns one of the following values:
- delete_
requested bool Indicates if Atlas received a request to remove the interface endpoint from the private endpoint connection.
- error_
message str Error message pertaining to the interface endpoint. Returns null if there are no errors.
- id str
- The provider-assigned unique ID for this managed resource.
Look up an Existing PrivateEndpointInterfaceLink Resource
Get an existing PrivateEndpointInterfaceLink 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?: PrivateEndpointInterfaceLinkState, opts?: CustomResourceOptions): PrivateEndpointInterfaceLinkstatic get(resource_name, id, opts=None, connection_status=None, delete_requested=None, error_message=None, interface_endpoint_id=None, private_link_id=None, project_id=None, __props__=None);func GetPrivateEndpointInterfaceLink(ctx *Context, name string, id IDInput, state *PrivateEndpointInterfaceLinkState, opts ...ResourceOption) (*PrivateEndpointInterfaceLink, error)public static PrivateEndpointInterfaceLink Get(string name, Input<string> id, PrivateEndpointInterfaceLinkState? 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:
- Connection
Status string Status of the interface endpoint. Returns one of the following values:
- Delete
Requested bool Indicates if Atlas received a request to remove the interface endpoint from the private endpoint connection.
- Error
Message string Error message pertaining to the interface endpoint. Returns null if there are no errors.
- Interface
Endpoint stringId Unique identifier of the interface endpoint you created in your VPC with the AWS resource.
- Private
Link stringId Unique identifier of the AWS PrivateLink connection which is created by
mongodbatlas..PrivateEndpointresource.- Project
Id string Unique identifier for the project.
- Connection
Status string Status of the interface endpoint. Returns one of the following values:
- Delete
Requested bool Indicates if Atlas received a request to remove the interface endpoint from the private endpoint connection.
- Error
Message string Error message pertaining to the interface endpoint. Returns null if there are no errors.
- Interface
Endpoint stringId Unique identifier of the interface endpoint you created in your VPC with the AWS resource.
- Private
Link stringId Unique identifier of the AWS PrivateLink connection which is created by
mongodbatlas..PrivateEndpointresource.- Project
Id string Unique identifier for the project.
- connection
Status string Status of the interface endpoint. Returns one of the following values:
- delete
Requested boolean Indicates if Atlas received a request to remove the interface endpoint from the private endpoint connection.
- error
Message string Error message pertaining to the interface endpoint. Returns null if there are no errors.
- interface
Endpoint stringId Unique identifier of the interface endpoint you created in your VPC with the AWS resource.
- private
Link stringId Unique identifier of the AWS PrivateLink connection which is created by
mongodbatlas..PrivateEndpointresource.- project
Id string Unique identifier for the project.
- connection_
status str Status of the interface endpoint. Returns one of the following values:
- delete_
requested bool Indicates if Atlas received a request to remove the interface endpoint from the private endpoint connection.
- error_
message str Error message pertaining to the interface endpoint. Returns null if there are no errors.
- interface_
endpoint_ strid Unique identifier of the interface endpoint you created in your VPC with the AWS resource.
- private_
link_ strid Unique identifier of the AWS PrivateLink connection which is created by
mongodbatlas..PrivateEndpointresource.- project_
id str Unique identifier for the project.
Package Details
- Repository
- https://github.com/pulumi/pulumi-mongodbatlas
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
mongodbatlasTerraform Provider.