aws.vpc.RouteServerPropagation
Explore with Pulumi AI
Provides a resource for managing propagation between VPC (Virtual Private Cloud) route server and a route table.
Example Usage
Basic Usage
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = new aws.vpc.RouteServerPropagation("example", {
routeServerId: exampleAwsVpcRouteServer.routeServerId,
routeTableId: exampleAwsRouteTable.id,
});
import pulumi
import pulumi_aws as aws
example = aws.vpc.RouteServerPropagation("example",
route_server_id=example_aws_vpc_route_server["routeServerId"],
route_table_id=example_aws_route_table["id"])
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/vpc"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := vpc.NewRouteServerPropagation(ctx, "example", &vpc.RouteServerPropagationArgs{
RouteServerId: pulumi.Any(exampleAwsVpcRouteServer.RouteServerId),
RouteTableId: pulumi.Any(exampleAwsRouteTable.Id),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var example = new Aws.Vpc.RouteServerPropagation("example", new()
{
RouteServerId = exampleAwsVpcRouteServer.RouteServerId,
RouteTableId = exampleAwsRouteTable.Id,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.vpc.RouteServerPropagation;
import com.pulumi.aws.vpc.RouteServerPropagationArgs;
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 RouteServerPropagation("example", RouteServerPropagationArgs.builder()
.routeServerId(exampleAwsVpcRouteServer.routeServerId())
.routeTableId(exampleAwsRouteTable.id())
.build());
}
}
resources:
example:
type: aws:vpc:RouteServerPropagation
properties:
routeServerId: ${exampleAwsVpcRouteServer.routeServerId}
routeTableId: ${exampleAwsRouteTable.id}
Create RouteServerPropagation Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new RouteServerPropagation(name: string, args: RouteServerPropagationArgs, opts?: CustomResourceOptions);
@overload
def RouteServerPropagation(resource_name: str,
args: RouteServerPropagationArgs,
opts: Optional[ResourceOptions] = None)
@overload
def RouteServerPropagation(resource_name: str,
opts: Optional[ResourceOptions] = None,
route_server_id: Optional[str] = None,
route_table_id: Optional[str] = None,
timeouts: Optional[RouteServerPropagationTimeoutsArgs] = None)
func NewRouteServerPropagation(ctx *Context, name string, args RouteServerPropagationArgs, opts ...ResourceOption) (*RouteServerPropagation, error)
public RouteServerPropagation(string name, RouteServerPropagationArgs args, CustomResourceOptions? opts = null)
public RouteServerPropagation(String name, RouteServerPropagationArgs args)
public RouteServerPropagation(String name, RouteServerPropagationArgs args, CustomResourceOptions options)
type: aws:vpc:RouteServerPropagation
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args RouteServerPropagationArgs
- 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 RouteServerPropagationArgs
- 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 RouteServerPropagationArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args RouteServerPropagationArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args RouteServerPropagationArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var routeServerPropagationResource = new Aws.Vpc.RouteServerPropagation("routeServerPropagationResource", new()
{
RouteServerId = "string",
RouteTableId = "string",
Timeouts = new Aws.Vpc.Inputs.RouteServerPropagationTimeoutsArgs
{
Create = "string",
Delete = "string",
},
});
example, err := vpc.NewRouteServerPropagation(ctx, "routeServerPropagationResource", &vpc.RouteServerPropagationArgs{
RouteServerId: pulumi.String("string"),
RouteTableId: pulumi.String("string"),
Timeouts: &vpc.RouteServerPropagationTimeoutsArgs{
Create: pulumi.String("string"),
Delete: pulumi.String("string"),
},
})
var routeServerPropagationResource = new RouteServerPropagation("routeServerPropagationResource", RouteServerPropagationArgs.builder()
.routeServerId("string")
.routeTableId("string")
.timeouts(RouteServerPropagationTimeoutsArgs.builder()
.create("string")
.delete("string")
.build())
.build());
route_server_propagation_resource = aws.vpc.RouteServerPropagation("routeServerPropagationResource",
route_server_id="string",
route_table_id="string",
timeouts={
"create": "string",
"delete": "string",
})
const routeServerPropagationResource = new aws.vpc.RouteServerPropagation("routeServerPropagationResource", {
routeServerId: "string",
routeTableId: "string",
timeouts: {
create: "string",
"delete": "string",
},
});
type: aws:vpc:RouteServerPropagation
properties:
routeServerId: string
routeTableId: string
timeouts:
create: string
delete: string
RouteServerPropagation 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 RouteServerPropagation resource accepts the following input properties:
- Route
Server stringId - The unique identifier for the route server to be associated.
- Route
Table stringId - The ID of the route table to which route server will propagate routes.
- Timeouts
Route
Server Propagation Timeouts
- Route
Server stringId - The unique identifier for the route server to be associated.
- Route
Table stringId - The ID of the route table to which route server will propagate routes.
- Timeouts
Route
Server Propagation Timeouts Args
- route
Server StringId - The unique identifier for the route server to be associated.
- route
Table StringId - The ID of the route table to which route server will propagate routes.
- timeouts
Route
Server Propagation Timeouts
- route
Server stringId - The unique identifier for the route server to be associated.
- route
Table stringId - The ID of the route table to which route server will propagate routes.
- timeouts
Route
Server Propagation Timeouts
- route_
server_ strid - The unique identifier for the route server to be associated.
- route_
table_ strid - The ID of the route table to which route server will propagate routes.
- timeouts
Route
Server Propagation Timeouts Args
- route
Server StringId - The unique identifier for the route server to be associated.
- route
Table StringId - The ID of the route table to which route server will propagate routes.
- timeouts Property Map
Outputs
All input properties are implicitly available as output properties. Additionally, the RouteServerPropagation resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing RouteServerPropagation Resource
Get an existing RouteServerPropagation 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?: RouteServerPropagationState, opts?: CustomResourceOptions): RouteServerPropagation
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
route_server_id: Optional[str] = None,
route_table_id: Optional[str] = None,
timeouts: Optional[RouteServerPropagationTimeoutsArgs] = None) -> RouteServerPropagation
func GetRouteServerPropagation(ctx *Context, name string, id IDInput, state *RouteServerPropagationState, opts ...ResourceOption) (*RouteServerPropagation, error)
public static RouteServerPropagation Get(string name, Input<string> id, RouteServerPropagationState? state, CustomResourceOptions? opts = null)
public static RouteServerPropagation get(String name, Output<String> id, RouteServerPropagationState state, CustomResourceOptions options)
resources: _: type: aws:vpc:RouteServerPropagation get: id: ${id}
- 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.
- 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.
- Route
Server stringId - The unique identifier for the route server to be associated.
- Route
Table stringId - The ID of the route table to which route server will propagate routes.
- Timeouts
Route
Server Propagation Timeouts
- Route
Server stringId - The unique identifier for the route server to be associated.
- Route
Table stringId - The ID of the route table to which route server will propagate routes.
- Timeouts
Route
Server Propagation Timeouts Args
- route
Server StringId - The unique identifier for the route server to be associated.
- route
Table StringId - The ID of the route table to which route server will propagate routes.
- timeouts
Route
Server Propagation Timeouts
- route
Server stringId - The unique identifier for the route server to be associated.
- route
Table stringId - The ID of the route table to which route server will propagate routes.
- timeouts
Route
Server Propagation Timeouts
- route_
server_ strid - The unique identifier for the route server to be associated.
- route_
table_ strid - The ID of the route table to which route server will propagate routes.
- timeouts
Route
Server Propagation Timeouts Args
- route
Server StringId - The unique identifier for the route server to be associated.
- route
Table StringId - The ID of the route table to which route server will propagate routes.
- timeouts Property Map
Supporting Types
RouteServerPropagationTimeouts, RouteServerPropagationTimeoutsArgs
- Create string
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
- Delete string
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.
- Create string
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
- Delete string
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.
- create String
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
- delete String
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.
- create string
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
- delete string
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.
- create str
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
- delete str
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.
- create String
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
- delete String
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.
Import
Using pulumi import
, to to import VPC (Virtual Private Cloud) Route Server Propagation using the associated resource ID and route table ID separated by a comma (,). For example:
$ pulumi import aws:vpc/routeServerPropagation:RouteServerPropagation example rs-12345678,rtb-656c65616e6f72
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- AWS Classic pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
aws
Terraform Provider.