All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.aws.ec2transitgateway.kotlin.DefaultRouteTablePropagationArgs.kt Maven / Gradle / Ivy

@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.aws.ec2transitgateway.kotlin

import com.pulumi.aws.ec2transitgateway.DefaultRouteTablePropagationArgs.builder
import com.pulumi.aws.ec2transitgateway.kotlin.inputs.DefaultRouteTablePropagationTimeoutsArgs
import com.pulumi.aws.ec2transitgateway.kotlin.inputs.DefaultRouteTablePropagationTimeoutsArgsBuilder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName

/**
 * Resource for managing an AWS EC2 (Elastic Compute Cloud) Transit Gateway Default Route Table Propagation.
 * ## Example Usage
 * ### Basic Usage
 * 
 * ```typescript
 * import * as pulumi from "@pulumi/pulumi";
 * import * as aws from "@pulumi/aws";
 * const example = new aws.ec2transitgateway.DefaultRouteTablePropagation("example", {
 *     transitGatewayId: exampleAwsEc2TransitGateway.id,
 *     transitGatewayRouteTableId: exampleAwsEc2TransitGatewayRouteTable.id,
 * });
 * ```
 * ```python
 * import pulumi
 * import pulumi_aws as aws
 * example = aws.ec2transitgateway.DefaultRouteTablePropagation("example",
 *     transit_gateway_id=example_aws_ec2_transit_gateway["id"],
 *     transit_gateway_route_table_id=example_aws_ec2_transit_gateway_route_table["id"])
 * ```
 * ```csharp
 * using System.Collections.Generic;
 * using System.Linq;
 * using Pulumi;
 * using Aws = Pulumi.Aws;
 * return await Deployment.RunAsync(() =>
 * {
 *     var example = new Aws.Ec2TransitGateway.DefaultRouteTablePropagation("example", new()
 *     {
 *         TransitGatewayId = exampleAwsEc2TransitGateway.Id,
 *         TransitGatewayRouteTableId = exampleAwsEc2TransitGatewayRouteTable.Id,
 *     });
 * });
 * ```
 * ```go
 * 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.NewDefaultRouteTablePropagation(ctx, "example", &ec2transitgateway.DefaultRouteTablePropagationArgs{
 * 			TransitGatewayId:           pulumi.Any(exampleAwsEc2TransitGateway.Id),
 * 			TransitGatewayRouteTableId: pulumi.Any(exampleAwsEc2TransitGatewayRouteTable.Id),
 * 		})
 * 		if err != nil {
 * 			return err
 * 		}
 * 		return nil
 * 	})
 * }
 * ```
 * ```java
 * package generated_program;
 * import com.pulumi.Context;
 * import com.pulumi.Pulumi;
 * import com.pulumi.core.Output;
 * import com.pulumi.aws.ec2transitgateway.DefaultRouteTablePropagation;
 * import com.pulumi.aws.ec2transitgateway.DefaultRouteTablePropagationArgs;
 * 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 DefaultRouteTablePropagation("example", DefaultRouteTablePropagationArgs.builder()
 *             .transitGatewayId(exampleAwsEc2TransitGateway.id())
 *             .transitGatewayRouteTableId(exampleAwsEc2TransitGatewayRouteTable.id())
 *             .build());
 *     }
 * }
 * ```
 * ```yaml
 * resources:
 *   example:
 *     type: aws:ec2transitgateway:DefaultRouteTablePropagation
 *     properties:
 *       transitGatewayId: ${exampleAwsEc2TransitGateway.id}
 *       transitGatewayRouteTableId: ${exampleAwsEc2TransitGatewayRouteTable.id}
 * ```
 * 
 * @property timeouts
 * @property transitGatewayId ID of the Transit Gateway to change the default association route table on.
 * @property transitGatewayRouteTableId ID of the Transit Gateway Route Table to be made the default association route table.
 */
public data class DefaultRouteTablePropagationArgs(
    public val timeouts: Output? = null,
    public val transitGatewayId: Output? = null,
    public val transitGatewayRouteTableId: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.aws.ec2transitgateway.DefaultRouteTablePropagationArgs =
        com.pulumi.aws.ec2transitgateway.DefaultRouteTablePropagationArgs.builder()
            .timeouts(timeouts?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .transitGatewayId(transitGatewayId?.applyValue({ args0 -> args0 }))
            .transitGatewayRouteTableId(transitGatewayRouteTableId?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [DefaultRouteTablePropagationArgs].
 */
@PulumiTagMarker
public class DefaultRouteTablePropagationArgsBuilder internal constructor() {
    private var timeouts: Output? = null

    private var transitGatewayId: Output? = null

    private var transitGatewayRouteTableId: Output? = null

    /**
     * @param value
     */
    @JvmName("vrdjsnmjhyqvxsgq")
    public suspend fun timeouts(`value`: Output) {
        this.timeouts = value
    }

    /**
     * @param value ID of the Transit Gateway to change the default association route table on.
     */
    @JvmName("idltgxorcjolcofp")
    public suspend fun transitGatewayId(`value`: Output) {
        this.transitGatewayId = value
    }

    /**
     * @param value ID of the Transit Gateway Route Table to be made the default association route table.
     */
    @JvmName("rkfirnuttabsxiqi")
    public suspend fun transitGatewayRouteTableId(`value`: Output) {
        this.transitGatewayRouteTableId = value
    }

    /**
     * @param value
     */
    @JvmName("xomlmjqmdypqqtgu")
    public suspend fun timeouts(`value`: DefaultRouteTablePropagationTimeoutsArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.timeouts = mapped
    }

    /**
     * @param argument
     */
    @JvmName("wlunfiwvurvnvqcl")
    public suspend fun timeouts(argument: suspend DefaultRouteTablePropagationTimeoutsArgsBuilder.() -> Unit) {
        val toBeMapped = DefaultRouteTablePropagationTimeoutsArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.timeouts = mapped
    }

    /**
     * @param value ID of the Transit Gateway to change the default association route table on.
     */
    @JvmName("nbouyfiehnfsxsjq")
    public suspend fun transitGatewayId(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.transitGatewayId = mapped
    }

    /**
     * @param value ID of the Transit Gateway Route Table to be made the default association route table.
     */
    @JvmName("aoygfljiilqsqiwj")
    public suspend fun transitGatewayRouteTableId(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.transitGatewayRouteTableId = mapped
    }

    internal fun build(): DefaultRouteTablePropagationArgs = DefaultRouteTablePropagationArgs(
        timeouts = timeouts,
        transitGatewayId = transitGatewayId,
        transitGatewayRouteTableId = transitGatewayRouteTableId,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy