Class VpcPeeringConnectionArgs.Builder

  • Enclosing class:
    VpcPeeringConnectionArgs

    public static final class VpcPeeringConnectionArgs.Builder
    extends java.lang.Object
    • Method Detail

      • accepter

        public VpcPeeringConnectionArgs.Builder accepter​(@Nullable
                                                         com.pulumi.core.Output<VpcPeeringConnectionAccepterArgs> accepter)
        Parameters:
        accepter - An optional configuration block that allows for [VPC Peering Connection](https://docs.aws.amazon.com/vpc/latest/peering/what-is-vpc-peering.html) options to be set for the VPC that accepts the peering connection (a maximum of one).
        Returns:
        builder
      • accepter

        public VpcPeeringConnectionArgs.Builder accepter​(VpcPeeringConnectionAccepterArgs accepter)
        Parameters:
        accepter - An optional configuration block that allows for [VPC Peering Connection](https://docs.aws.amazon.com/vpc/latest/peering/what-is-vpc-peering.html) options to be set for the VPC that accepts the peering connection (a maximum of one).
        Returns:
        builder
      • autoAccept

        public VpcPeeringConnectionArgs.Builder autoAccept​(@Nullable
                                                           com.pulumi.core.Output<java.lang.Boolean> autoAccept)
        Parameters:
        autoAccept - Accept the peering (both VPCs need to be in the same AWS account and region).
        Returns:
        builder
      • autoAccept

        public VpcPeeringConnectionArgs.Builder autoAccept​(java.lang.Boolean autoAccept)
        Parameters:
        autoAccept - Accept the peering (both VPCs need to be in the same AWS account and region).
        Returns:
        builder
      • peerOwnerId

        public VpcPeeringConnectionArgs.Builder peerOwnerId​(@Nullable
                                                            com.pulumi.core.Output<java.lang.String> peerOwnerId)
        Parameters:
        peerOwnerId - The AWS account ID of the target peer VPC. Defaults to the account ID the [AWS provider][1] is currently connected to, so must be managed if connecting cross-account.
        Returns:
        builder
      • peerOwnerId

        public VpcPeeringConnectionArgs.Builder peerOwnerId​(java.lang.String peerOwnerId)
        Parameters:
        peerOwnerId - The AWS account ID of the target peer VPC. Defaults to the account ID the [AWS provider][1] is currently connected to, so must be managed if connecting cross-account.
        Returns:
        builder
      • peerRegion

        public VpcPeeringConnectionArgs.Builder peerRegion​(@Nullable
                                                           com.pulumi.core.Output<java.lang.String> peerRegion)
        Parameters:
        peerRegion - The region of the accepter VPC of the VPC Peering Connection. `auto_accept` must be `false`, and use the `aws.ec2.VpcPeeringConnectionAccepter` to manage the accepter side.
        Returns:
        builder
      • peerRegion

        public VpcPeeringConnectionArgs.Builder peerRegion​(java.lang.String peerRegion)
        Parameters:
        peerRegion - The region of the accepter VPC of the VPC Peering Connection. `auto_accept` must be `false`, and use the `aws.ec2.VpcPeeringConnectionAccepter` to manage the accepter side.
        Returns:
        builder
      • peerVpcId

        public VpcPeeringConnectionArgs.Builder peerVpcId​(com.pulumi.core.Output<java.lang.String> peerVpcId)
        Parameters:
        peerVpcId - The ID of the target VPC with which you are creating the VPC Peering Connection.
        Returns:
        builder
      • peerVpcId

        public VpcPeeringConnectionArgs.Builder peerVpcId​(java.lang.String peerVpcId)
        Parameters:
        peerVpcId - The ID of the target VPC with which you are creating the VPC Peering Connection.
        Returns:
        builder
      • requester

        public VpcPeeringConnectionArgs.Builder requester​(@Nullable
                                                          com.pulumi.core.Output<VpcPeeringConnectionRequesterArgs> requester)
        Parameters:
        requester - A optional configuration block that allows for [VPC Peering Connection](https://docs.aws.amazon.com/vpc/latest/peering/what-is-vpc-peering.html) options to be set for the VPC that requests the peering connection (a maximum of one).
        Returns:
        builder
      • requester

        public VpcPeeringConnectionArgs.Builder requester​(VpcPeeringConnectionRequesterArgs requester)
        Parameters:
        requester - A optional configuration block that allows for [VPC Peering Connection](https://docs.aws.amazon.com/vpc/latest/peering/what-is-vpc-peering.html) options to be set for the VPC that requests the peering connection (a maximum of one).
        Returns:
        builder
      • tags

        public VpcPeeringConnectionArgs.Builder tags​(@Nullable
                                                     com.pulumi.core.Output<java.util.Map<java.lang.String,​java.lang.String>> tags)
        Parameters:
        tags - A map of tags to assign to the resource. .If configured with a provider `default_tags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
        Returns:
        builder
      • tags

        public VpcPeeringConnectionArgs.Builder tags​(java.util.Map<java.lang.String,​java.lang.String> tags)
        Parameters:
        tags - A map of tags to assign to the resource. .If configured with a provider `default_tags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
        Returns:
        builder
      • vpcId

        public VpcPeeringConnectionArgs.Builder vpcId​(com.pulumi.core.Output<java.lang.String> vpcId)
        Parameters:
        vpcId - The ID of the requester VPC.
        Returns:
        builder