Please wait. This can take some minutes ...
Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance.
Project price only 1 $
You can buy this project and download/modify it how often you want.
com.pulumi.aws.ec2transitgateway.inputs.ConnectPeerState Maven / Gradle / Ivy
Go to download
A Pulumi package for creating and managing Amazon Web Services (AWS) cloud resources.
// *** WARNING: this file was generated by pulumi-java-gen. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
package com.pulumi.aws.ec2transitgateway.inputs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.lang.String;
import java.util.List;
import java.util.Map;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
public final class ConnectPeerState extends com.pulumi.resources.ResourceArgs {
public static final ConnectPeerState Empty = new ConnectPeerState();
/**
* EC2 Transit Gateway Connect Peer ARN
*
*/
@Import(name="arn")
private @Nullable Output arn;
/**
* @return EC2 Transit Gateway Connect Peer ARN
*
*/
public Optional> arn() {
return Optional.ofNullable(this.arn);
}
/**
* The BGP ASN number assigned customer device. If not provided, it will use the same BGP ASN as is associated with Transit Gateway.
*
*/
@Import(name="bgpAsn")
private @Nullable Output bgpAsn;
/**
* @return The BGP ASN number assigned customer device. If not provided, it will use the same BGP ASN as is associated with Transit Gateway.
*
*/
public Optional> bgpAsn() {
return Optional.ofNullable(this.bgpAsn);
}
/**
* The IP address assigned to customer device, which is used as BGP IP address.
*
*/
@Import(name="bgpPeerAddress")
private @Nullable Output bgpPeerAddress;
/**
* @return The IP address assigned to customer device, which is used as BGP IP address.
*
*/
public Optional> bgpPeerAddress() {
return Optional.ofNullable(this.bgpPeerAddress);
}
/**
* The IP addresses assigned to Transit Gateway, which are used as BGP IP addresses.
*
*/
@Import(name="bgpTransitGatewayAddresses")
private @Nullable Output> bgpTransitGatewayAddresses;
/**
* @return The IP addresses assigned to Transit Gateway, which are used as BGP IP addresses.
*
*/
public Optional>> bgpTransitGatewayAddresses() {
return Optional.ofNullable(this.bgpTransitGatewayAddresses);
}
/**
* The CIDR block that will be used for addressing within the tunnel. It must contain exactly one IPv4 CIDR block and up to one IPv6 CIDR block. The IPv4 CIDR block must be /29 size and must be within 169.254.0.0/16 range, with exception of: 169.254.0.0/29, 169.254.1.0/29, 169.254.2.0/29, 169.254.3.0/29, 169.254.4.0/29, 169.254.5.0/29, 169.254.169.248/29. The IPv6 CIDR block must be /125 size and must be within fd00::/8. The first IP from each CIDR block is assigned for customer gateway, the second and third is for Transit Gateway (An example: from range 169.254.100.0/29, .1 is assigned to customer gateway and .2 and .3 are assigned to Transit Gateway)
*
*/
@Import(name="insideCidrBlocks")
private @Nullable Output> insideCidrBlocks;
/**
* @return The CIDR block that will be used for addressing within the tunnel. It must contain exactly one IPv4 CIDR block and up to one IPv6 CIDR block. The IPv4 CIDR block must be /29 size and must be within 169.254.0.0/16 range, with exception of: 169.254.0.0/29, 169.254.1.0/29, 169.254.2.0/29, 169.254.3.0/29, 169.254.4.0/29, 169.254.5.0/29, 169.254.169.248/29. The IPv6 CIDR block must be /125 size and must be within fd00::/8. The first IP from each CIDR block is assigned for customer gateway, the second and third is for Transit Gateway (An example: from range 169.254.100.0/29, .1 is assigned to customer gateway and .2 and .3 are assigned to Transit Gateway)
*
*/
public Optional>> insideCidrBlocks() {
return Optional.ofNullable(this.insideCidrBlocks);
}
/**
* The IP addressed assigned to customer device, which will be used as tunnel endpoint. It can be IPv4 or IPv6 address, but must be the same address family as `transit_gateway_address`
*
*/
@Import(name="peerAddress")
private @Nullable Output peerAddress;
/**
* @return The IP addressed assigned to customer device, which will be used as tunnel endpoint. It can be IPv4 or IPv6 address, but must be the same address family as `transit_gateway_address`
*
*/
public Optional> peerAddress() {
return Optional.ofNullable(this.peerAddress);
}
/**
* Key-value tags for the EC2 Transit Gateway Connect Peer. If configured with a provider `default_tags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
*
*/
@Import(name="tags")
private @Nullable Output> tags;
/**
* @return Key-value tags for the EC2 Transit Gateway Connect Peer. If configured with a provider `default_tags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
*
*/
public Optional>> tags() {
return Optional.ofNullable(this.tags);
}
/**
* A map of tags assigned to the resource, including those inherited from the provider `default_tags` configuration block.
*
* @deprecated
* Please use `tags` instead.
*
*/
@Deprecated /* Please use `tags` instead. */
@Import(name="tagsAll")
private @Nullable Output> tagsAll;
/**
* @return A map of tags assigned to the resource, including those inherited from the provider `default_tags` configuration block.
*
* @deprecated
* Please use `tags` instead.
*
*/
@Deprecated /* Please use `tags` instead. */
public Optional>> tagsAll() {
return Optional.ofNullable(this.tagsAll);
}
/**
* The IP address assigned to Transit Gateway, which will be used as tunnel endpoint. This address must be from associated Transit Gateway CIDR block. The address must be from the same address family as `peer_address`. If not set explicitly, it will be selected from associated Transit Gateway CIDR blocks
*
*/
@Import(name="transitGatewayAddress")
private @Nullable Output transitGatewayAddress;
/**
* @return The IP address assigned to Transit Gateway, which will be used as tunnel endpoint. This address must be from associated Transit Gateway CIDR block. The address must be from the same address family as `peer_address`. If not set explicitly, it will be selected from associated Transit Gateway CIDR blocks
*
*/
public Optional> transitGatewayAddress() {
return Optional.ofNullable(this.transitGatewayAddress);
}
/**
* The Transit Gateway Connect
*
*/
@Import(name="transitGatewayAttachmentId")
private @Nullable Output transitGatewayAttachmentId;
/**
* @return The Transit Gateway Connect
*
*/
public Optional> transitGatewayAttachmentId() {
return Optional.ofNullable(this.transitGatewayAttachmentId);
}
private ConnectPeerState() {}
private ConnectPeerState(ConnectPeerState $) {
this.arn = $.arn;
this.bgpAsn = $.bgpAsn;
this.bgpPeerAddress = $.bgpPeerAddress;
this.bgpTransitGatewayAddresses = $.bgpTransitGatewayAddresses;
this.insideCidrBlocks = $.insideCidrBlocks;
this.peerAddress = $.peerAddress;
this.tags = $.tags;
this.tagsAll = $.tagsAll;
this.transitGatewayAddress = $.transitGatewayAddress;
this.transitGatewayAttachmentId = $.transitGatewayAttachmentId;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(ConnectPeerState defaults) {
return new Builder(defaults);
}
public static final class Builder {
private ConnectPeerState $;
public Builder() {
$ = new ConnectPeerState();
}
public Builder(ConnectPeerState defaults) {
$ = new ConnectPeerState(Objects.requireNonNull(defaults));
}
/**
* @param arn EC2 Transit Gateway Connect Peer ARN
*
* @return builder
*
*/
public Builder arn(@Nullable Output arn) {
$.arn = arn;
return this;
}
/**
* @param arn EC2 Transit Gateway Connect Peer ARN
*
* @return builder
*
*/
public Builder arn(String arn) {
return arn(Output.of(arn));
}
/**
* @param bgpAsn The BGP ASN number assigned customer device. If not provided, it will use the same BGP ASN as is associated with Transit Gateway.
*
* @return builder
*
*/
public Builder bgpAsn(@Nullable Output bgpAsn) {
$.bgpAsn = bgpAsn;
return this;
}
/**
* @param bgpAsn The BGP ASN number assigned customer device. If not provided, it will use the same BGP ASN as is associated with Transit Gateway.
*
* @return builder
*
*/
public Builder bgpAsn(String bgpAsn) {
return bgpAsn(Output.of(bgpAsn));
}
/**
* @param bgpPeerAddress The IP address assigned to customer device, which is used as BGP IP address.
*
* @return builder
*
*/
public Builder bgpPeerAddress(@Nullable Output bgpPeerAddress) {
$.bgpPeerAddress = bgpPeerAddress;
return this;
}
/**
* @param bgpPeerAddress The IP address assigned to customer device, which is used as BGP IP address.
*
* @return builder
*
*/
public Builder bgpPeerAddress(String bgpPeerAddress) {
return bgpPeerAddress(Output.of(bgpPeerAddress));
}
/**
* @param bgpTransitGatewayAddresses The IP addresses assigned to Transit Gateway, which are used as BGP IP addresses.
*
* @return builder
*
*/
public Builder bgpTransitGatewayAddresses(@Nullable Output> bgpTransitGatewayAddresses) {
$.bgpTransitGatewayAddresses = bgpTransitGatewayAddresses;
return this;
}
/**
* @param bgpTransitGatewayAddresses The IP addresses assigned to Transit Gateway, which are used as BGP IP addresses.
*
* @return builder
*
*/
public Builder bgpTransitGatewayAddresses(List bgpTransitGatewayAddresses) {
return bgpTransitGatewayAddresses(Output.of(bgpTransitGatewayAddresses));
}
/**
* @param bgpTransitGatewayAddresses The IP addresses assigned to Transit Gateway, which are used as BGP IP addresses.
*
* @return builder
*
*/
public Builder bgpTransitGatewayAddresses(String... bgpTransitGatewayAddresses) {
return bgpTransitGatewayAddresses(List.of(bgpTransitGatewayAddresses));
}
/**
* @param insideCidrBlocks The CIDR block that will be used for addressing within the tunnel. It must contain exactly one IPv4 CIDR block and up to one IPv6 CIDR block. The IPv4 CIDR block must be /29 size and must be within 169.254.0.0/16 range, with exception of: 169.254.0.0/29, 169.254.1.0/29, 169.254.2.0/29, 169.254.3.0/29, 169.254.4.0/29, 169.254.5.0/29, 169.254.169.248/29. The IPv6 CIDR block must be /125 size and must be within fd00::/8. The first IP from each CIDR block is assigned for customer gateway, the second and third is for Transit Gateway (An example: from range 169.254.100.0/29, .1 is assigned to customer gateway and .2 and .3 are assigned to Transit Gateway)
*
* @return builder
*
*/
public Builder insideCidrBlocks(@Nullable Output> insideCidrBlocks) {
$.insideCidrBlocks = insideCidrBlocks;
return this;
}
/**
* @param insideCidrBlocks The CIDR block that will be used for addressing within the tunnel. It must contain exactly one IPv4 CIDR block and up to one IPv6 CIDR block. The IPv4 CIDR block must be /29 size and must be within 169.254.0.0/16 range, with exception of: 169.254.0.0/29, 169.254.1.0/29, 169.254.2.0/29, 169.254.3.0/29, 169.254.4.0/29, 169.254.5.0/29, 169.254.169.248/29. The IPv6 CIDR block must be /125 size and must be within fd00::/8. The first IP from each CIDR block is assigned for customer gateway, the second and third is for Transit Gateway (An example: from range 169.254.100.0/29, .1 is assigned to customer gateway and .2 and .3 are assigned to Transit Gateway)
*
* @return builder
*
*/
public Builder insideCidrBlocks(List insideCidrBlocks) {
return insideCidrBlocks(Output.of(insideCidrBlocks));
}
/**
* @param insideCidrBlocks The CIDR block that will be used for addressing within the tunnel. It must contain exactly one IPv4 CIDR block and up to one IPv6 CIDR block. The IPv4 CIDR block must be /29 size and must be within 169.254.0.0/16 range, with exception of: 169.254.0.0/29, 169.254.1.0/29, 169.254.2.0/29, 169.254.3.0/29, 169.254.4.0/29, 169.254.5.0/29, 169.254.169.248/29. The IPv6 CIDR block must be /125 size and must be within fd00::/8. The first IP from each CIDR block is assigned for customer gateway, the second and third is for Transit Gateway (An example: from range 169.254.100.0/29, .1 is assigned to customer gateway and .2 and .3 are assigned to Transit Gateway)
*
* @return builder
*
*/
public Builder insideCidrBlocks(String... insideCidrBlocks) {
return insideCidrBlocks(List.of(insideCidrBlocks));
}
/**
* @param peerAddress The IP addressed assigned to customer device, which will be used as tunnel endpoint. It can be IPv4 or IPv6 address, but must be the same address family as `transit_gateway_address`
*
* @return builder
*
*/
public Builder peerAddress(@Nullable Output peerAddress) {
$.peerAddress = peerAddress;
return this;
}
/**
* @param peerAddress The IP addressed assigned to customer device, which will be used as tunnel endpoint. It can be IPv4 or IPv6 address, but must be the same address family as `transit_gateway_address`
*
* @return builder
*
*/
public Builder peerAddress(String peerAddress) {
return peerAddress(Output.of(peerAddress));
}
/**
* @param tags Key-value tags for the EC2 Transit Gateway Connect Peer. If configured with a provider `default_tags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
*
* @return builder
*
*/
public Builder tags(@Nullable Output> tags) {
$.tags = tags;
return this;
}
/**
* @param tags Key-value tags for the EC2 Transit Gateway Connect Peer. If configured with a provider `default_tags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
*
* @return builder
*
*/
public Builder tags(Map tags) {
return tags(Output.of(tags));
}
/**
* @param tagsAll A map of tags assigned to the resource, including those inherited from the provider `default_tags` configuration block.
*
* @return builder
*
* @deprecated
* Please use `tags` instead.
*
*/
@Deprecated /* Please use `tags` instead. */
public Builder tagsAll(@Nullable Output> tagsAll) {
$.tagsAll = tagsAll;
return this;
}
/**
* @param tagsAll A map of tags assigned to the resource, including those inherited from the provider `default_tags` configuration block.
*
* @return builder
*
* @deprecated
* Please use `tags` instead.
*
*/
@Deprecated /* Please use `tags` instead. */
public Builder tagsAll(Map tagsAll) {
return tagsAll(Output.of(tagsAll));
}
/**
* @param transitGatewayAddress The IP address assigned to Transit Gateway, which will be used as tunnel endpoint. This address must be from associated Transit Gateway CIDR block. The address must be from the same address family as `peer_address`. If not set explicitly, it will be selected from associated Transit Gateway CIDR blocks
*
* @return builder
*
*/
public Builder transitGatewayAddress(@Nullable Output transitGatewayAddress) {
$.transitGatewayAddress = transitGatewayAddress;
return this;
}
/**
* @param transitGatewayAddress The IP address assigned to Transit Gateway, which will be used as tunnel endpoint. This address must be from associated Transit Gateway CIDR block. The address must be from the same address family as `peer_address`. If not set explicitly, it will be selected from associated Transit Gateway CIDR blocks
*
* @return builder
*
*/
public Builder transitGatewayAddress(String transitGatewayAddress) {
return transitGatewayAddress(Output.of(transitGatewayAddress));
}
/**
* @param transitGatewayAttachmentId The Transit Gateway Connect
*
* @return builder
*
*/
public Builder transitGatewayAttachmentId(@Nullable Output transitGatewayAttachmentId) {
$.transitGatewayAttachmentId = transitGatewayAttachmentId;
return this;
}
/**
* @param transitGatewayAttachmentId The Transit Gateway Connect
*
* @return builder
*
*/
public Builder transitGatewayAttachmentId(String transitGatewayAttachmentId) {
return transitGatewayAttachmentId(Output.of(transitGatewayAttachmentId));
}
public ConnectPeerState build() {
return $;
}
}
}