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.directconnect.ConnectionArgs 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.directconnect;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Boolean;
import java.lang.String;
import java.util.Map;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
public final class ConnectionArgs extends com.pulumi.resources.ResourceArgs {
public static final ConnectionArgs Empty = new ConnectionArgs();
/**
* The bandwidth of the connection. Valid values for dedicated connections: 1Gbps, 10Gbps. Valid values for hosted connections: 50Mbps, 100Mbps, 200Mbps, 300Mbps, 400Mbps, 500Mbps, 1Gbps, 2Gbps, 5Gbps, 10Gbps and 100Gbps. Case sensitive.
*
*/
@Import(name="bandwidth", required=true)
private Output bandwidth;
/**
* @return The bandwidth of the connection. Valid values for dedicated connections: 1Gbps, 10Gbps. Valid values for hosted connections: 50Mbps, 100Mbps, 200Mbps, 300Mbps, 400Mbps, 500Mbps, 1Gbps, 2Gbps, 5Gbps, 10Gbps and 100Gbps. Case sensitive.
*
*/
public Output bandwidth() {
return this.bandwidth;
}
/**
* The connection MAC Security (MACsec) encryption mode. MAC Security (MACsec) is only available on dedicated connections. Valid values are `no_encrypt`, `should_encrypt`, and `must_encrypt`.
*
*/
@Import(name="encryptionMode")
private @Nullable Output encryptionMode;
/**
* @return The connection MAC Security (MACsec) encryption mode. MAC Security (MACsec) is only available on dedicated connections. Valid values are `no_encrypt`, `should_encrypt`, and `must_encrypt`.
*
*/
public Optional> encryptionMode() {
return Optional.ofNullable(this.encryptionMode);
}
/**
* The AWS Direct Connect location where the connection is located. See [DescribeLocations](https://docs.aws.amazon.com/directconnect/latest/APIReference/API_DescribeLocations.html) for the list of AWS Direct Connect locations. Use `locationCode`.
*
*/
@Import(name="location", required=true)
private Output location;
/**
* @return The AWS Direct Connect location where the connection is located. See [DescribeLocations](https://docs.aws.amazon.com/directconnect/latest/APIReference/API_DescribeLocations.html) for the list of AWS Direct Connect locations. Use `locationCode`.
*
*/
public Output location() {
return this.location;
}
/**
* The name of the connection.
*
*/
@Import(name="name")
private @Nullable Output name;
/**
* @return The name of the connection.
*
*/
public Optional> name() {
return Optional.ofNullable(this.name);
}
/**
* The name of the service provider associated with the connection.
*
*/
@Import(name="providerName")
private @Nullable Output providerName;
/**
* @return The name of the service provider associated with the connection.
*
*/
public Optional> providerName() {
return Optional.ofNullable(this.providerName);
}
/**
* Boolean value indicating whether you want the connection to support MAC Security (MACsec). MAC Security (MACsec) is only available on dedicated connections. See [MACsec prerequisites](https://docs.aws.amazon.com/directconnect/latest/UserGuide/direct-connect-mac-sec-getting-started.html#mac-sec-prerequisites) for more information about MAC Security (MACsec) prerequisites. Default value: `false`.
*
* > **NOTE:** Changing the value of `request_macsec` will cause the resource to be destroyed and re-created.
*
*/
@Import(name="requestMacsec")
private @Nullable Output requestMacsec;
/**
* @return Boolean value indicating whether you want the connection to support MAC Security (MACsec). MAC Security (MACsec) is only available on dedicated connections. See [MACsec prerequisites](https://docs.aws.amazon.com/directconnect/latest/UserGuide/direct-connect-mac-sec-getting-started.html#mac-sec-prerequisites) for more information about MAC Security (MACsec) prerequisites. Default value: `false`.
*
* > **NOTE:** Changing the value of `request_macsec` will cause the resource to be destroyed and re-created.
*
*/
public Optional> requestMacsec() {
return Optional.ofNullable(this.requestMacsec);
}
/**
* Set to true if you do not wish the connection to be deleted at destroy time, and instead just removed from the state.
*
*/
@Import(name="skipDestroy")
private @Nullable Output skipDestroy;
/**
* @return Set to true if you do not wish the connection to be deleted at destroy time, and instead just removed from the state.
*
*/
public Optional> skipDestroy() {
return Optional.ofNullable(this.skipDestroy);
}
/**
* 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.
*
*/
@Import(name="tags")
private @Nullable Output> tags;
/**
* @return 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.
*
*/
public Optional>> tags() {
return Optional.ofNullable(this.tags);
}
private ConnectionArgs() {}
private ConnectionArgs(ConnectionArgs $) {
this.bandwidth = $.bandwidth;
this.encryptionMode = $.encryptionMode;
this.location = $.location;
this.name = $.name;
this.providerName = $.providerName;
this.requestMacsec = $.requestMacsec;
this.skipDestroy = $.skipDestroy;
this.tags = $.tags;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(ConnectionArgs defaults) {
return new Builder(defaults);
}
public static final class Builder {
private ConnectionArgs $;
public Builder() {
$ = new ConnectionArgs();
}
public Builder(ConnectionArgs defaults) {
$ = new ConnectionArgs(Objects.requireNonNull(defaults));
}
/**
* @param bandwidth The bandwidth of the connection. Valid values for dedicated connections: 1Gbps, 10Gbps. Valid values for hosted connections: 50Mbps, 100Mbps, 200Mbps, 300Mbps, 400Mbps, 500Mbps, 1Gbps, 2Gbps, 5Gbps, 10Gbps and 100Gbps. Case sensitive.
*
* @return builder
*
*/
public Builder bandwidth(Output bandwidth) {
$.bandwidth = bandwidth;
return this;
}
/**
* @param bandwidth The bandwidth of the connection. Valid values for dedicated connections: 1Gbps, 10Gbps. Valid values for hosted connections: 50Mbps, 100Mbps, 200Mbps, 300Mbps, 400Mbps, 500Mbps, 1Gbps, 2Gbps, 5Gbps, 10Gbps and 100Gbps. Case sensitive.
*
* @return builder
*
*/
public Builder bandwidth(String bandwidth) {
return bandwidth(Output.of(bandwidth));
}
/**
* @param encryptionMode The connection MAC Security (MACsec) encryption mode. MAC Security (MACsec) is only available on dedicated connections. Valid values are `no_encrypt`, `should_encrypt`, and `must_encrypt`.
*
* @return builder
*
*/
public Builder encryptionMode(@Nullable Output encryptionMode) {
$.encryptionMode = encryptionMode;
return this;
}
/**
* @param encryptionMode The connection MAC Security (MACsec) encryption mode. MAC Security (MACsec) is only available on dedicated connections. Valid values are `no_encrypt`, `should_encrypt`, and `must_encrypt`.
*
* @return builder
*
*/
public Builder encryptionMode(String encryptionMode) {
return encryptionMode(Output.of(encryptionMode));
}
/**
* @param location The AWS Direct Connect location where the connection is located. See [DescribeLocations](https://docs.aws.amazon.com/directconnect/latest/APIReference/API_DescribeLocations.html) for the list of AWS Direct Connect locations. Use `locationCode`.
*
* @return builder
*
*/
public Builder location(Output location) {
$.location = location;
return this;
}
/**
* @param location The AWS Direct Connect location where the connection is located. See [DescribeLocations](https://docs.aws.amazon.com/directconnect/latest/APIReference/API_DescribeLocations.html) for the list of AWS Direct Connect locations. Use `locationCode`.
*
* @return builder
*
*/
public Builder location(String location) {
return location(Output.of(location));
}
/**
* @param name The name of the connection.
*
* @return builder
*
*/
public Builder name(@Nullable Output name) {
$.name = name;
return this;
}
/**
* @param name The name of the connection.
*
* @return builder
*
*/
public Builder name(String name) {
return name(Output.of(name));
}
/**
* @param providerName The name of the service provider associated with the connection.
*
* @return builder
*
*/
public Builder providerName(@Nullable Output providerName) {
$.providerName = providerName;
return this;
}
/**
* @param providerName The name of the service provider associated with the connection.
*
* @return builder
*
*/
public Builder providerName(String providerName) {
return providerName(Output.of(providerName));
}
/**
* @param requestMacsec Boolean value indicating whether you want the connection to support MAC Security (MACsec). MAC Security (MACsec) is only available on dedicated connections. See [MACsec prerequisites](https://docs.aws.amazon.com/directconnect/latest/UserGuide/direct-connect-mac-sec-getting-started.html#mac-sec-prerequisites) for more information about MAC Security (MACsec) prerequisites. Default value: `false`.
*
* > **NOTE:** Changing the value of `request_macsec` will cause the resource to be destroyed and re-created.
*
* @return builder
*
*/
public Builder requestMacsec(@Nullable Output requestMacsec) {
$.requestMacsec = requestMacsec;
return this;
}
/**
* @param requestMacsec Boolean value indicating whether you want the connection to support MAC Security (MACsec). MAC Security (MACsec) is only available on dedicated connections. See [MACsec prerequisites](https://docs.aws.amazon.com/directconnect/latest/UserGuide/direct-connect-mac-sec-getting-started.html#mac-sec-prerequisites) for more information about MAC Security (MACsec) prerequisites. Default value: `false`.
*
* > **NOTE:** Changing the value of `request_macsec` will cause the resource to be destroyed and re-created.
*
* @return builder
*
*/
public Builder requestMacsec(Boolean requestMacsec) {
return requestMacsec(Output.of(requestMacsec));
}
/**
* @param skipDestroy Set to true if you do not wish the connection to be deleted at destroy time, and instead just removed from the state.
*
* @return builder
*
*/
public Builder skipDestroy(@Nullable Output skipDestroy) {
$.skipDestroy = skipDestroy;
return this;
}
/**
* @param skipDestroy Set to true if you do not wish the connection to be deleted at destroy time, and instead just removed from the state.
*
* @return builder
*
*/
public Builder skipDestroy(Boolean skipDestroy) {
return skipDestroy(Output.of(skipDestroy));
}
/**
* @param 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.
*
* @return builder
*
*/
public Builder tags(@Nullable Output> tags) {
$.tags = tags;
return this;
}
/**
* @param 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.
*
* @return builder
*
*/
public Builder tags(Map tags) {
return tags(Output.of(tags));
}
public ConnectionArgs build() {
if ($.bandwidth == null) {
throw new MissingRequiredPropertyException("ConnectionArgs", "bandwidth");
}
if ($.location == null) {
throw new MissingRequiredPropertyException("ConnectionArgs", "location");
}
return $;
}
}
}