We recommend new projects start with resources from the AWS provider.
published on Wednesday, Nov 18, 2026 by Pulumi
We recommend new projects start with resources from the AWS provider.
published on Wednesday, Nov 18, 2026 by Pulumi
VPC Route Server
Create RouteServer Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new RouteServer(name: string, args: RouteServerArgs, opts?: CustomResourceOptions);@overload
def RouteServer(resource_name: str,
args: RouteServerArgs,
opts: Optional[ResourceOptions] = None)
@overload
def RouteServer(resource_name: str,
opts: Optional[ResourceOptions] = None,
amazon_side_asn: Optional[int] = None,
persist_routes: Optional[RouteServerPersistRoutes] = None,
persist_routes_duration: Optional[int] = None,
sns_notifications_enabled: Optional[bool] = None,
tags: Optional[Sequence[_root_inputs.TagArgs]] = None)func NewRouteServer(ctx *Context, name string, args RouteServerArgs, opts ...ResourceOption) (*RouteServer, error)public RouteServer(string name, RouteServerArgs args, CustomResourceOptions? opts = null)
public RouteServer(String name, RouteServerArgs args)
public RouteServer(String name, RouteServerArgs args, CustomResourceOptions options)
type: aws-native:ec2:RouteServer
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "aws-native_ec2_route_server" "name" {
# resource properties
}Parameters
- name string
- The unique name of the resource.
- args RouteServerArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args RouteServerArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args RouteServerArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args RouteServerArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args RouteServerArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
RouteServer Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The RouteServer resource accepts the following input properties:
- Amazon
Side intAsn - The Amazon-side ASN of the Route Server.
- Persist
Routes Pulumi.Aws Native. Ec2. Route Server Persist Routes - Whether to enable persistent routes
- Persist
Routes intDuration - The duration of persistent routes in minutes
- Sns
Notifications boolEnabled - Whether to enable SNS notifications
-
List<Pulumi.
Aws Native. Inputs. Tag> - An array of key-value pairs to apply to this resource.
- Amazon
Side intAsn - The Amazon-side ASN of the Route Server.
- Persist
Routes RouteServer Persist Routes - Whether to enable persistent routes
- Persist
Routes intDuration - The duration of persistent routes in minutes
- Sns
Notifications boolEnabled - Whether to enable SNS notifications
-
Tag
Args - An array of key-value pairs to apply to this resource.
- amazon_
side_ numberasn - The Amazon-side ASN of the Route Server.
- persist_
routes "enable" | "disable" - Whether to enable persistent routes
- persist_
routes_ numberduration - The duration of persistent routes in minutes
- sns_
notifications_ boolenabled - Whether to enable SNS notifications
- list(object)
- An array of key-value pairs to apply to this resource.
- amazon
Side IntegerAsn - The Amazon-side ASN of the Route Server.
- persist
Routes RouteServer Persist Routes - Whether to enable persistent routes
- persist
Routes IntegerDuration - The duration of persistent routes in minutes
- sns
Notifications BooleanEnabled - Whether to enable SNS notifications
- List<Tag>
- An array of key-value pairs to apply to this resource.
- amazon
Side numberAsn - The Amazon-side ASN of the Route Server.
- persist
Routes RouteServer Persist Routes - Whether to enable persistent routes
- persist
Routes numberDuration - The duration of persistent routes in minutes
- sns
Notifications booleanEnabled - Whether to enable SNS notifications
- Tag[]
- An array of key-value pairs to apply to this resource.
- amazon_
side_ intasn - The Amazon-side ASN of the Route Server.
- persist_
routes RouteServer Persist Routes - Whether to enable persistent routes
- persist_
routes_ intduration - The duration of persistent routes in minutes
- sns_
notifications_ boolenabled - Whether to enable SNS notifications
-
Sequence[Tag
Args] - An array of key-value pairs to apply to this resource.
- amazon
Side NumberAsn - The Amazon-side ASN of the Route Server.
- persist
Routes "enable" | "disable" - Whether to enable persistent routes
- persist
Routes NumberDuration - The duration of persistent routes in minutes
- sns
Notifications BooleanEnabled - Whether to enable SNS notifications
- List<Property Map>
- An array of key-value pairs to apply to this resource.
Outputs
All input properties are implicitly available as output properties. Additionally, the RouteServer resource produces the following output properties:
Look up Existing RouteServer Resource
Get an existing RouteServer 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>, opts?: CustomResourceOptions): RouteServer@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None) -> RouteServerfunc GetRouteServer(ctx *Context, name string, id IDInput, state *RouteServerState, opts ...ResourceOption) (*RouteServer, error)public static RouteServer Get(string name, Input<string> id, CustomResourceOptions? opts = null)public static RouteServer get(String name, Output<String> id, CustomResourceOptions options)resources: existingRouteServer: type: aws-native:ec2:RouteServer get: id: ${id}import {
to = aws-native_ec2_route_server.example
id = "${id}"
}
- name string
- The unique name of the resulting resource.
- id Input<ID>
- The unique provider ID of the resource to look up.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resulting resource.
- id str
- The unique provider ID of the resource to look up.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resulting resource.
- id IDInput
- The unique provider ID of the resource to look up.
- state RouteServerState
- Pass nil. This resource has no state arguments.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resulting resource.
- id Input<string>
- The unique provider ID of the resource to look up.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resulting resource.
- id Output<String>
- The unique provider ID of the resource to look up.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Supporting Types
RouteServerPersistRoutes
Whether to enable persistent routes
| Name | Value |
|---|---|
| Enable | enable |
| Disable | disable |
| Name | Value |
|---|---|
| Route | enable |
| Route | disable |
| Value |
|---|
enable |
disable |
| Name | Value |
|---|---|
| Enable | enable |
| Disable | disable |
| Name | Value |
|---|---|
| Enable | enable |
| Disable | disable |
| Name | Value |
|---|---|
| ENABLE | enable |
| DISABLE | disable |
| Value |
|---|
enable |
disable |
Tag, TagArgs
A set of tags to apply to the resource.
Package Details
- Repository
- AWS Native pulumi/pulumi-aws-native
- License
- Apache-2.0
We recommend new projects start with resources from the AWS provider.
published on Wednesday, Nov 18, 2026 by Pulumi