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.glue.inputs.ConnectionState Maven / Gradle / Ivy
// *** 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.glue.inputs;
import com.pulumi.aws.glue.inputs.ConnectionPhysicalConnectionRequirementsArgs;
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 ConnectionState extends com.pulumi.resources.ResourceArgs {
public static final ConnectionState Empty = new ConnectionState();
/**
* ARN of the Glue Connection.
*
*/
@Import(name="arn")
private @Nullable Output arn;
/**
* @return ARN of the Glue Connection.
*
*/
public Optional> arn() {
return Optional.ofNullable(this.arn);
}
/**
* ID of the Data Catalog in which to create the connection. If none is supplied, the AWS account ID is used by default.
*
*/
@Import(name="catalogId")
private @Nullable Output catalogId;
/**
* @return ID of the Data Catalog in which to create the connection. If none is supplied, the AWS account ID is used by default.
*
*/
public Optional> catalogId() {
return Optional.ofNullable(this.catalogId);
}
/**
* Map of key-value pairs used as parameters for this connection. For more information, see the [AWS Documentation](https://docs.aws.amazon.com/glue/latest/dg/connection-properties.html).
*
* **Note:** Some connection types require the `SparkProperties` property with a JSON document that contains the actual connection properties. For specific examples, refer to Example Usage.
*
*/
@Import(name="connectionProperties")
private @Nullable Output> connectionProperties;
/**
* @return Map of key-value pairs used as parameters for this connection. For more information, see the [AWS Documentation](https://docs.aws.amazon.com/glue/latest/dg/connection-properties.html).
*
* **Note:** Some connection types require the `SparkProperties` property with a JSON document that contains the actual connection properties. For specific examples, refer to Example Usage.
*
*/
public Optional>> connectionProperties() {
return Optional.ofNullable(this.connectionProperties);
}
/**
* Type of the connection. Valid values: `AZURECOSMOS`, `AZURESQL`, `BIGQUERY`, `CUSTOM`, `JDBC`, `KAFKA`, `MARKETPLACE`, `MONGODB`, `NETWORK`, `OPENSEARCH`, `SNOWFLAKE`. Defaults to `JDBC`.
*
*/
@Import(name="connectionType")
private @Nullable Output connectionType;
/**
* @return Type of the connection. Valid values: `AZURECOSMOS`, `AZURESQL`, `BIGQUERY`, `CUSTOM`, `JDBC`, `KAFKA`, `MARKETPLACE`, `MONGODB`, `NETWORK`, `OPENSEARCH`, `SNOWFLAKE`. Defaults to `JDBC`.
*
*/
public Optional> connectionType() {
return Optional.ofNullable(this.connectionType);
}
/**
* Description of the connection.
*
*/
@Import(name="description")
private @Nullable Output description;
/**
* @return Description of the connection.
*
*/
public Optional> description() {
return Optional.ofNullable(this.description);
}
/**
* List of criteria that can be used in selecting this connection.
*
*/
@Import(name="matchCriterias")
private @Nullable Output> matchCriterias;
/**
* @return List of criteria that can be used in selecting this connection.
*
*/
public Optional>> matchCriterias() {
return Optional.ofNullable(this.matchCriterias);
}
/**
* Name of the connection.
*
* The following arguments are optional:
*
*/
@Import(name="name")
private @Nullable Output name;
/**
* @return Name of the connection.
*
* The following arguments are optional:
*
*/
public Optional> name() {
return Optional.ofNullable(this.name);
}
/**
* Map of physical connection requirements, such as VPC and SecurityGroup. See `physical_connection_requirements` Block for details.
*
*/
@Import(name="physicalConnectionRequirements")
private @Nullable Output physicalConnectionRequirements;
/**
* @return Map of physical connection requirements, such as VPC and SecurityGroup. See `physical_connection_requirements` Block for details.
*
*/
public Optional> physicalConnectionRequirements() {
return Optional.ofNullable(this.physicalConnectionRequirements);
}
/**
* Key-value map of resource tags. 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 map of resource tags. 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);
}
private ConnectionState() {}
private ConnectionState(ConnectionState $) {
this.arn = $.arn;
this.catalogId = $.catalogId;
this.connectionProperties = $.connectionProperties;
this.connectionType = $.connectionType;
this.description = $.description;
this.matchCriterias = $.matchCriterias;
this.name = $.name;
this.physicalConnectionRequirements = $.physicalConnectionRequirements;
this.tags = $.tags;
this.tagsAll = $.tagsAll;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(ConnectionState defaults) {
return new Builder(defaults);
}
public static final class Builder {
private ConnectionState $;
public Builder() {
$ = new ConnectionState();
}
public Builder(ConnectionState defaults) {
$ = new ConnectionState(Objects.requireNonNull(defaults));
}
/**
* @param arn ARN of the Glue Connection.
*
* @return builder
*
*/
public Builder arn(@Nullable Output arn) {
$.arn = arn;
return this;
}
/**
* @param arn ARN of the Glue Connection.
*
* @return builder
*
*/
public Builder arn(String arn) {
return arn(Output.of(arn));
}
/**
* @param catalogId ID of the Data Catalog in which to create the connection. If none is supplied, the AWS account ID is used by default.
*
* @return builder
*
*/
public Builder catalogId(@Nullable Output catalogId) {
$.catalogId = catalogId;
return this;
}
/**
* @param catalogId ID of the Data Catalog in which to create the connection. If none is supplied, the AWS account ID is used by default.
*
* @return builder
*
*/
public Builder catalogId(String catalogId) {
return catalogId(Output.of(catalogId));
}
/**
* @param connectionProperties Map of key-value pairs used as parameters for this connection. For more information, see the [AWS Documentation](https://docs.aws.amazon.com/glue/latest/dg/connection-properties.html).
*
* **Note:** Some connection types require the `SparkProperties` property with a JSON document that contains the actual connection properties. For specific examples, refer to Example Usage.
*
* @return builder
*
*/
public Builder connectionProperties(@Nullable Output> connectionProperties) {
$.connectionProperties = connectionProperties;
return this;
}
/**
* @param connectionProperties Map of key-value pairs used as parameters for this connection. For more information, see the [AWS Documentation](https://docs.aws.amazon.com/glue/latest/dg/connection-properties.html).
*
* **Note:** Some connection types require the `SparkProperties` property with a JSON document that contains the actual connection properties. For specific examples, refer to Example Usage.
*
* @return builder
*
*/
public Builder connectionProperties(Map connectionProperties) {
return connectionProperties(Output.of(connectionProperties));
}
/**
* @param connectionType Type of the connection. Valid values: `AZURECOSMOS`, `AZURESQL`, `BIGQUERY`, `CUSTOM`, `JDBC`, `KAFKA`, `MARKETPLACE`, `MONGODB`, `NETWORK`, `OPENSEARCH`, `SNOWFLAKE`. Defaults to `JDBC`.
*
* @return builder
*
*/
public Builder connectionType(@Nullable Output connectionType) {
$.connectionType = connectionType;
return this;
}
/**
* @param connectionType Type of the connection. Valid values: `AZURECOSMOS`, `AZURESQL`, `BIGQUERY`, `CUSTOM`, `JDBC`, `KAFKA`, `MARKETPLACE`, `MONGODB`, `NETWORK`, `OPENSEARCH`, `SNOWFLAKE`. Defaults to `JDBC`.
*
* @return builder
*
*/
public Builder connectionType(String connectionType) {
return connectionType(Output.of(connectionType));
}
/**
* @param description Description of the connection.
*
* @return builder
*
*/
public Builder description(@Nullable Output description) {
$.description = description;
return this;
}
/**
* @param description Description of the connection.
*
* @return builder
*
*/
public Builder description(String description) {
return description(Output.of(description));
}
/**
* @param matchCriterias List of criteria that can be used in selecting this connection.
*
* @return builder
*
*/
public Builder matchCriterias(@Nullable Output> matchCriterias) {
$.matchCriterias = matchCriterias;
return this;
}
/**
* @param matchCriterias List of criteria that can be used in selecting this connection.
*
* @return builder
*
*/
public Builder matchCriterias(List matchCriterias) {
return matchCriterias(Output.of(matchCriterias));
}
/**
* @param matchCriterias List of criteria that can be used in selecting this connection.
*
* @return builder
*
*/
public Builder matchCriterias(String... matchCriterias) {
return matchCriterias(List.of(matchCriterias));
}
/**
* @param name Name of the connection.
*
* The following arguments are optional:
*
* @return builder
*
*/
public Builder name(@Nullable Output name) {
$.name = name;
return this;
}
/**
* @param name Name of the connection.
*
* The following arguments are optional:
*
* @return builder
*
*/
public Builder name(String name) {
return name(Output.of(name));
}
/**
* @param physicalConnectionRequirements Map of physical connection requirements, such as VPC and SecurityGroup. See `physical_connection_requirements` Block for details.
*
* @return builder
*
*/
public Builder physicalConnectionRequirements(@Nullable Output physicalConnectionRequirements) {
$.physicalConnectionRequirements = physicalConnectionRequirements;
return this;
}
/**
* @param physicalConnectionRequirements Map of physical connection requirements, such as VPC and SecurityGroup. See `physical_connection_requirements` Block for details.
*
* @return builder
*
*/
public Builder physicalConnectionRequirements(ConnectionPhysicalConnectionRequirementsArgs physicalConnectionRequirements) {
return physicalConnectionRequirements(Output.of(physicalConnectionRequirements));
}
/**
* @param tags Key-value map of resource tags. 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 map of resource tags. 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));
}
public ConnectionState build() {
return $;
}
}
}