PolicyTableAssociation

class PolicyTableAssociation : KotlinCustomResource

Manages an EC2 Transit Gateway Policy Table association.

Example Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.ec2transitgateway.PolicyTableAssociation;
import com.pulumi.aws.ec2transitgateway.PolicyTableAssociationArgs;
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 PolicyTableAssociation("example", PolicyTableAssociationArgs.builder()
.transitGatewayAttachmentId(aws_networkmanager_transit_gateway_peering.example().transit_gateway_peering_attachment_id())
.transitGatewayPolicyTableId(aws_ec2_transit_gateway_policy_table.example().id())
.build());
}
}

Import

aws_ec2_transit_gateway_policy_table_association can be imported by using the EC2 Transit Gateway Policy Table identifier, an underscore, and the EC2 Transit Gateway Attachment identifier, e.g.,

$ pulumi import aws:ec2transitgateway/policyTableAssociation:PolicyTableAssociation example tgw-rtb-12345678_tgw-attach-87654321

Properties

Link copied to clipboard
val id: Output<String>
Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val resourceId: Output<String>

Identifier of the resource

Link copied to clipboard
val resourceType: Output<String>

Type of the resource

Link copied to clipboard

Identifier of EC2 Transit Gateway Attachment.

Link copied to clipboard

Identifier of EC2 Transit Gateway Policy Table.

Link copied to clipboard
val urn: Output<String>