import * as pulumi from "@pulumi/pulumi"; /** * Provides a resource for managing the main routing table of a VPC. * * > **NOTE:** **Do not** use both `aws.ec2.DefaultRouteTable` to manage a default route table **and** `aws.ec2.MainRouteTableAssociation` with the same VPC due to possible route conflicts. See aws.ec2.DefaultRouteTable documentation for more details. * For more information, see the Amazon VPC User Guide on [Route Tables](http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/VPC_Route_Tables.html#Route_Replacing_Main_Table). For information about managing normal route tables in Pulumi, see `aws.ec2.RouteTable`. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as aws from "@pulumi/aws"; * * const a = new aws.ec2.MainRouteTableAssociation("a", { * vpcId: foo.id, * routeTableId: bar.id, * }); * ``` */ export declare class MainRouteTableAssociation extends pulumi.CustomResource { /** * Get an existing MainRouteTableAssociation resource's state with the given name, ID, and optional extra * properties used to qualify the lookup. * * @param name The _unique_ name of the resulting resource. * @param id The _unique_ provider ID of the resource to lookup. * @param state Any extra arguments used during the lookup. * @param opts Optional settings to control the behavior of the CustomResource. */ static get(name: string, id: pulumi.Input, state?: MainRouteTableAssociationState, opts?: pulumi.CustomResourceOptions): MainRouteTableAssociation; /** * Returns true if the given object is an instance of MainRouteTableAssociation. This is designed to work even * when multiple copies of the Pulumi SDK have been loaded into the same process. */ static isInstance(obj: any): obj is MainRouteTableAssociation; /** * Used internally, see **Notes** below */ readonly originalRouteTableId: pulumi.Output; /** * Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration. */ readonly region: pulumi.Output; /** * The ID of the Route Table to set as the new * main route table for the target VPC */ readonly routeTableId: pulumi.Output; /** * The ID of the VPC whose main route table should be set */ readonly vpcId: pulumi.Output; /** * Create a MainRouteTableAssociation resource with the given unique name, arguments, and options. * * @param name The _unique_ name of the resource. * @param args The arguments to use to populate this resource's properties. * @param opts A bag of options that control this resource's behavior. */ constructor(name: string, args: MainRouteTableAssociationArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering MainRouteTableAssociation resources. */ export interface MainRouteTableAssociationState { /** * Used internally, see **Notes** below */ originalRouteTableId?: pulumi.Input; /** * Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration. */ region?: pulumi.Input; /** * The ID of the Route Table to set as the new * main route table for the target VPC */ routeTableId?: pulumi.Input; /** * The ID of the VPC whose main route table should be set */ vpcId?: pulumi.Input; } /** * The set of arguments for constructing a MainRouteTableAssociation resource. */ export interface MainRouteTableAssociationArgs { /** * Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration. */ region?: pulumi.Input; /** * The ID of the Route Table to set as the new * main route table for the target VPC */ routeTableId: pulumi.Input; /** * The ID of the VPC whose main route table should be set */ vpcId: pulumi.Input; } //# sourceMappingURL=mainRouteTableAssociation.d.ts.map