InstanceConnectEndpoint

class InstanceConnectEndpoint : KotlinCustomResource

Manages an EC2 Instance Connect Endpoint.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = new aws.ec2transitgateway.InstanceConnectEndpoint("example", {subnetId: exampleAwsSubnet.id});
import pulumi
import pulumi_aws as aws
example = aws.ec2transitgateway.InstanceConnectEndpoint("example", subnet_id=example_aws_subnet["id"])
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var example = new Aws.Ec2TransitGateway.InstanceConnectEndpoint("example", new()
{
SubnetId = exampleAwsSubnet.Id,
});
});
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/ec2transitgateway"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := ec2transitgateway.NewInstanceConnectEndpoint(ctx, "example", &ec2transitgateway.InstanceConnectEndpointArgs{
SubnetId: pulumi.Any(exampleAwsSubnet.Id),
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.ec2transitgateway.InstanceConnectEndpoint;
import com.pulumi.aws.ec2transitgateway.InstanceConnectEndpointArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var example = new InstanceConnectEndpoint("example", InstanceConnectEndpointArgs.builder()
.subnetId(exampleAwsSubnet.id())
.build());
}
}
resources:
example:
type: aws:ec2transitgateway:InstanceConnectEndpoint
properties:
subnetId: ${exampleAwsSubnet.id}

Import

Using pulumi import, import EC2 Instance Connect Endpoints using the id. For example:

$ pulumi import aws:ec2transitgateway/instanceConnectEndpoint:InstanceConnectEndpoint example eice-012345678

Properties

Link copied to clipboard
val arn: Output<String>

The Amazon Resource Name (ARN) of the EC2 Instance Connect Endpoint.

Link copied to clipboard

The Availability Zone of the EC2 Instance Connect Endpoint.

Link copied to clipboard
val dnsName: Output<String>

The DNS name of the EC2 Instance Connect Endpoint.

Link copied to clipboard
val fipsDnsName: Output<String>

The DNS name of the EC2 Instance Connect FIPS Endpoint.

Link copied to clipboard
val id: Output<String>
Link copied to clipboard

The IDs of the ENIs that Amazon EC2 automatically created when creating the EC2 Instance Connect Endpoint.

Link copied to clipboard
val ownerId: Output<String>

The ID of the AWS account that created the EC2 Instance Connect Endpoint.

Link copied to clipboard

Indicates whether your client's IP address is preserved as the source. Default: true.

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

One or more security groups to associate with the endpoint. If you don't specify a security group, the default security group for the VPC will be associated with the endpoint.

Link copied to clipboard
val subnetId: Output<String>

The ID of the subnet in which to create the EC2 Instance Connect Endpoint.

Link copied to clipboard
val tags: Output<Map<String, String>>?

Map of tags to assign to this resource. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

Link copied to clipboard
val tagsAll: Output<Map<String, String>>

A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

Link copied to clipboard
Link copied to clipboard
val urn: Output<String>
Link copied to clipboard
val vpcId: Output<String>

The ID of the VPC in which the EC2 Instance Connect Endpoint was created.