RouteServerEndpoint class
Provides a resource for managing a VPC Route Server Endpoint.
Example Usage
Basic Usage
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const test = new aws.vpc.RouteServerEndpoint("test", {
routeServerId: example.routeServerId,
subnetId: main.id,
tags: {
Name: "Endpoint A",
},
});
import pulumi
import pulumi_aws as aws
test = aws.vpc.RouteServerEndpoint("test",
route_server_id=example["routeServerId"],
subnet_id=main["id"],
tags={
"Name": "Endpoint A",
})
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var test = new Aws.Vpc.RouteServerEndpoint("test", new()
{
RouteServerId = example.RouteServerId,
SubnetId = main.Id,
Tags =
{
{ "Name", "Endpoint A" },
},
});
});
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v7/go/aws/vpc"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := vpc.NewRouteServerEndpoint(ctx, "test", &vpc.RouteServerEndpointArgs{
RouteServerId: pulumi.Any(example.RouteServerId),
SubnetId: pulumi.Any(main.Id),
Tags: pulumi.StringMap{
"Name": pulumi.String("Endpoint A"),
},
})
if err != nil {
return err
}
return nil
})
}
pulumi {
required_providers {
aws = {
source = "pulumi/aws"
}
}
}
resource "aws_vpc_routeserverendpoint" "test" {
route_server_id = example.routeServerId
subnet_id = main.id
tags = {
"Name" = "Endpoint A"
}
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.vpc.RouteServerEndpoint;
import com.pulumi.aws.vpc.RouteServerEndpointArgs;
import java.util.ArrayList;
import java.util.Arrays;
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 test = new RouteServerEndpoint("test", RouteServerEndpointArgs.builder()
.routeServerId(example.routeServerId())
.subnetId(main.id())
.tags(Map.of("Name", "Endpoint A"))
.build());
}
}
resources:
test:
type: aws:vpc:RouteServerEndpoint
properties:
routeServerId: ${example.routeServerId}
subnetId: ${main.id}
tags:
Name: Endpoint A
Import
Using pulumi import, import VPC Route Server Endpoint using the routeServerEndpointId. For example:
$ pulumi import aws:vpc/routeServerEndpoint:RouteServerEndpoint example rse-12345678
Constructors
- RouteServerEndpoint(String name, {RouteServerEndpointArgs? args, CustomResourceOptions? options})
-
Creates a new RouteServerEndpoint.
nameThe Pulumi resource name.argsArguments used to configure this RouteServerEndpoint. The set of arguments for RouteServerEndpoint.optionsResource options controlling this resource's behavior. - RouteServerEndpoint.reference(String urn)
- Creates a typed reference to an existing RouteServerEndpoint resource.
Properties
-
arn
↔ Output<
String> -
The ARN of the route server endpoint.
latefinal
-
childResources
→ Set<
Resource> -
finalinherited
-
completionSources
↔ Map<
String, IOutputCompletionSource> -
latefinalinherited
-
eniAddress
↔ Output<
String> -
The IP address of the Elastic network interface for the endpoint.
latefinal
-
eniId
↔ Output<
String> -
The ID of the Elastic network interface for the endpoint.
latefinal
- hashCode → int
-
The hash code for this object.
no setterinherited
-
id
↔ Output<
String> -
getter/setter pairinherited
- isCustom → bool
-
Returns whether this resource is provider-managed.
no setterinherited
- isProtected → bool
-
Returns whether this resource is protected from deletion.
no setterinherited
- isRemote → bool
-
Whether this resource is registered as remote.
no setterinherited
- isResourceReference → bool
-
Whether this instance represents a resource value returned over RPC.
finalinherited
-
region
↔ Output<
String> -
Region where this resource will be managed. Defaults to the Region set in the provider configuration.
latefinal
-
resourceTransforms
→ List<
ResourceTransform> -
Inherited/explicit async transforms.
no setterinherited
-
routeServerEndpointId
↔ Output<
String> -
The unique identifier of the route server endpoint.
latefinal
-
routeServerId
↔ Output<
String> -
The ID of the route server for which to create an endpoint.
latefinal
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
subnetId
↔ Output<
String> -
The ID of the subnet in which to create the route server endpoint.
latefinal
-
A map of tags to assign to the resource. If configured with a provider
defaultTagsconfiguration block present, tags with matching keys will overwrite those defined at the provider-level.latefinal -
A map of tags assigned to the resource, including those inherited from the provider
defaultTagsconfiguration block.latefinal -
timeouts
↔ Output<
RouteServerEndpointTimeouts?> -
latefinal
-
transformations
→ List<
ResourceTransformation> -
Inherited/explicit legacy transformations.
no setterinherited
-
urn
↔ Output<
String> -
latefinalinherited
-
vpcId
↔ Output<
String> -
The ID of the VPC containing the endpoint.
latefinal
Methods
-
failId(
Object error) → void -
Completes this resource ID with an error when registration fails.
inherited
-
failOutputs(
Object error) → void -
Completes all output properties with
error.inherited -
failUrn(
Object error) → void -
Completes this resource URN with an error when registration fails.
inherited
-
getProvider(
String moduleMember) → ProviderResource? -
Returns provider for
moduleMember's package, if configured.inherited -
getResourceName(
) → String -
Returns this resource's logical name.
inherited
-
getResourceType(
) → String -
Returns this resource's Pulumi type token.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
registerOutput<
T> (String propertyName, {Object? decoder(Object?)?, bool isSecret = false}) → Output< T> -
Registers a dynamic output property for this resource.
inherited
-
resolveId(
String? value, {required bool isKnown}) → void -
Resolves the provider-assigned ID for this resource.
inherited
-
resolveOutputs(
Struct outputs) → void -
Resolves all output properties from a monitor response payload.
inherited
-
resolveUrn(
String value) → void -
Resolves this resource's URN once assigned by the engine.
inherited
-
serializeProperties(
Map< String, dynamic> properties) → Future<Struct> -
Serializes resource properties for RPC transmission.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
get(
String name, Input< String> id, {RouteServerEndpointState? state, CustomResourceOptions? options}) → RouteServerEndpoint -
Gets an existing RouteServerEndpoint resource's state with the given
nameandid.