com.hashicorp.cdktf.providers.snowflake.data_snowflake_databases.DataSnowflakeDatabases Maven / Gradle / Ivy
Show all versions of cdktf-provider-snowflake Show documentation
package com.hashicorp.cdktf.providers.snowflake.data_snowflake_databases;
/**
* Represents a {@link https://registry.terraform.io/providers/snowflake-labs/snowflake/0.94.1/docs/data-sources/databases snowflake_databases}.
*/
@javax.annotation.Generated(value = "jsii-pacmak/1.101.0 (build b95fe5d)", date = "2024-08-03T03:24:50.099Z")
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
@software.amazon.jsii.Jsii(module = com.hashicorp.cdktf.providers.snowflake.$Module.class, fqn = "@cdktf/provider-snowflake.dataSnowflakeDatabases.DataSnowflakeDatabases")
public class DataSnowflakeDatabases extends com.hashicorp.cdktf.TerraformDataSource {
protected DataSnowflakeDatabases(final software.amazon.jsii.JsiiObjectRef objRef) {
super(objRef);
}
protected DataSnowflakeDatabases(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) {
super(initializationMode);
}
static {
TF_RESOURCE_TYPE = software.amazon.jsii.JsiiObject.jsiiStaticGet(com.hashicorp.cdktf.providers.snowflake.data_snowflake_databases.DataSnowflakeDatabases.class, "tfResourceType", software.amazon.jsii.NativeType.forClass(java.lang.String.class));
}
/**
* Create a new {@link https://registry.terraform.io/providers/snowflake-labs/snowflake/0.94.1/docs/data-sources/databases snowflake_databases} Data Source.
*
* @param scope The scope in which to define this construct. This parameter is required.
* @param id The scoped construct ID. This parameter is required.
* @param config
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public DataSnowflakeDatabases(final @org.jetbrains.annotations.NotNull software.constructs.Construct scope, final @org.jetbrains.annotations.NotNull java.lang.String id, final @org.jetbrains.annotations.Nullable com.hashicorp.cdktf.providers.snowflake.data_snowflake_databases.DataSnowflakeDatabasesConfig config) {
super(software.amazon.jsii.JsiiObject.InitializationMode.JSII);
software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this, new Object[] { java.util.Objects.requireNonNull(scope, "scope is required"), java.util.Objects.requireNonNull(id, "id is required"), config });
}
/**
* Create a new {@link https://registry.terraform.io/providers/snowflake-labs/snowflake/0.94.1/docs/data-sources/databases snowflake_databases} Data Source.
*
* @param scope The scope in which to define this construct. This parameter is required.
* @param id The scoped construct ID. This parameter is required.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public DataSnowflakeDatabases(final @org.jetbrains.annotations.NotNull software.constructs.Construct scope, final @org.jetbrains.annotations.NotNull java.lang.String id) {
super(software.amazon.jsii.JsiiObject.InitializationMode.JSII);
software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this, new Object[] { java.util.Objects.requireNonNull(scope, "scope is required"), java.util.Objects.requireNonNull(id, "id is required") });
}
/**
* Generates CDKTF code for importing a DataSnowflakeDatabases resource upon running "cdktf plan ".
*
* @param scope The scope in which to define this construct. This parameter is required.
* @param importToId The construct id used in the generated config for the DataSnowflakeDatabases to import. This parameter is required.
* @param importFromId The id of the existing DataSnowflakeDatabases that should be imported. This parameter is required.
* @param provider ? Optional instance of the provider where the DataSnowflakeDatabases to import is found.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public static @org.jetbrains.annotations.NotNull com.hashicorp.cdktf.ImportableResource generateConfigForImport(final @org.jetbrains.annotations.NotNull software.constructs.Construct scope, final @org.jetbrains.annotations.NotNull java.lang.String importToId, final @org.jetbrains.annotations.NotNull java.lang.String importFromId, final @org.jetbrains.annotations.Nullable com.hashicorp.cdktf.TerraformProvider provider) {
return software.amazon.jsii.JsiiObject.jsiiStaticCall(com.hashicorp.cdktf.providers.snowflake.data_snowflake_databases.DataSnowflakeDatabases.class, "generateConfigForImport", software.amazon.jsii.NativeType.forClass(com.hashicorp.cdktf.ImportableResource.class), new Object[] { java.util.Objects.requireNonNull(scope, "scope is required"), java.util.Objects.requireNonNull(importToId, "importToId is required"), java.util.Objects.requireNonNull(importFromId, "importFromId is required"), provider });
}
/**
* Generates CDKTF code for importing a DataSnowflakeDatabases resource upon running "cdktf plan ".
*
* @param scope The scope in which to define this construct. This parameter is required.
* @param importToId The construct id used in the generated config for the DataSnowflakeDatabases to import. This parameter is required.
* @param importFromId The id of the existing DataSnowflakeDatabases that should be imported. This parameter is required.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public static @org.jetbrains.annotations.NotNull com.hashicorp.cdktf.ImportableResource generateConfigForImport(final @org.jetbrains.annotations.NotNull software.constructs.Construct scope, final @org.jetbrains.annotations.NotNull java.lang.String importToId, final @org.jetbrains.annotations.NotNull java.lang.String importFromId) {
return software.amazon.jsii.JsiiObject.jsiiStaticCall(com.hashicorp.cdktf.providers.snowflake.data_snowflake_databases.DataSnowflakeDatabases.class, "generateConfigForImport", software.amazon.jsii.NativeType.forClass(com.hashicorp.cdktf.ImportableResource.class), new Object[] { java.util.Objects.requireNonNull(scope, "scope is required"), java.util.Objects.requireNonNull(importToId, "importToId is required"), java.util.Objects.requireNonNull(importFromId, "importFromId is required") });
}
/**
* @param value This parameter is required.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public void putLimit(final @org.jetbrains.annotations.NotNull com.hashicorp.cdktf.providers.snowflake.data_snowflake_databases.DataSnowflakeDatabasesLimit value) {
software.amazon.jsii.Kernel.call(this, "putLimit", software.amazon.jsii.NativeType.VOID, new Object[] { java.util.Objects.requireNonNull(value, "value is required") });
}
/**
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public void resetId() {
software.amazon.jsii.Kernel.call(this, "resetId", software.amazon.jsii.NativeType.VOID);
}
/**
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public void resetLike() {
software.amazon.jsii.Kernel.call(this, "resetLike", software.amazon.jsii.NativeType.VOID);
}
/**
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public void resetLimit() {
software.amazon.jsii.Kernel.call(this, "resetLimit", software.amazon.jsii.NativeType.VOID);
}
/**
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public void resetStartsWith() {
software.amazon.jsii.Kernel.call(this, "resetStartsWith", software.amazon.jsii.NativeType.VOID);
}
/**
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public void resetWithDescribe() {
software.amazon.jsii.Kernel.call(this, "resetWithDescribe", software.amazon.jsii.NativeType.VOID);
}
/**
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public void resetWithParameters() {
software.amazon.jsii.Kernel.call(this, "resetWithParameters", software.amazon.jsii.NativeType.VOID);
}
/**
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
@Override
protected @org.jetbrains.annotations.NotNull java.util.Map synthesizeAttributes() {
return java.util.Collections.unmodifiableMap(software.amazon.jsii.Kernel.call(this, "synthesizeAttributes", software.amazon.jsii.NativeType.mapOf(software.amazon.jsii.NativeType.forClass(java.lang.Object.class))));
}
/**
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
@Override
protected @org.jetbrains.annotations.NotNull java.util.Map synthesizeHclAttributes() {
return java.util.Collections.unmodifiableMap(software.amazon.jsii.Kernel.call(this, "synthesizeHclAttributes", software.amazon.jsii.NativeType.mapOf(software.amazon.jsii.NativeType.forClass(java.lang.Object.class))));
}
/**
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public final static java.lang.String TF_RESOURCE_TYPE;
/**
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public @org.jetbrains.annotations.NotNull com.hashicorp.cdktf.providers.snowflake.data_snowflake_databases.DataSnowflakeDatabasesDatabasesList getDatabases() {
return software.amazon.jsii.Kernel.get(this, "databases", software.amazon.jsii.NativeType.forClass(com.hashicorp.cdktf.providers.snowflake.data_snowflake_databases.DataSnowflakeDatabasesDatabasesList.class));
}
/**
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public @org.jetbrains.annotations.NotNull com.hashicorp.cdktf.providers.snowflake.data_snowflake_databases.DataSnowflakeDatabasesLimitOutputReference getLimit() {
return software.amazon.jsii.Kernel.get(this, "limit", software.amazon.jsii.NativeType.forClass(com.hashicorp.cdktf.providers.snowflake.data_snowflake_databases.DataSnowflakeDatabasesLimitOutputReference.class));
}
/**
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public @org.jetbrains.annotations.Nullable java.lang.String getIdInput() {
return software.amazon.jsii.Kernel.get(this, "idInput", software.amazon.jsii.NativeType.forClass(java.lang.String.class));
}
/**
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public @org.jetbrains.annotations.Nullable java.lang.String getLikeInput() {
return software.amazon.jsii.Kernel.get(this, "likeInput", software.amazon.jsii.NativeType.forClass(java.lang.String.class));
}
/**
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public @org.jetbrains.annotations.Nullable com.hashicorp.cdktf.providers.snowflake.data_snowflake_databases.DataSnowflakeDatabasesLimit getLimitInput() {
return software.amazon.jsii.Kernel.get(this, "limitInput", software.amazon.jsii.NativeType.forClass(com.hashicorp.cdktf.providers.snowflake.data_snowflake_databases.DataSnowflakeDatabasesLimit.class));
}
/**
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public @org.jetbrains.annotations.Nullable java.lang.String getStartsWithInput() {
return software.amazon.jsii.Kernel.get(this, "startsWithInput", software.amazon.jsii.NativeType.forClass(java.lang.String.class));
}
/**
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public @org.jetbrains.annotations.Nullable java.lang.Object getWithDescribeInput() {
return software.amazon.jsii.Kernel.get(this, "withDescribeInput", software.amazon.jsii.NativeType.forClass(java.lang.Object.class));
}
/**
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public @org.jetbrains.annotations.Nullable java.lang.Object getWithParametersInput() {
return software.amazon.jsii.Kernel.get(this, "withParametersInput", software.amazon.jsii.NativeType.forClass(java.lang.Object.class));
}
/**
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public @org.jetbrains.annotations.NotNull java.lang.String getId() {
return software.amazon.jsii.Kernel.get(this, "id", software.amazon.jsii.NativeType.forClass(java.lang.String.class));
}
/**
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public void setId(final @org.jetbrains.annotations.NotNull java.lang.String value) {
software.amazon.jsii.Kernel.set(this, "id", java.util.Objects.requireNonNull(value, "id is required"));
}
/**
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public @org.jetbrains.annotations.NotNull java.lang.String getLike() {
return software.amazon.jsii.Kernel.get(this, "like", software.amazon.jsii.NativeType.forClass(java.lang.String.class));
}
/**
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public void setLike(final @org.jetbrains.annotations.NotNull java.lang.String value) {
software.amazon.jsii.Kernel.set(this, "like", java.util.Objects.requireNonNull(value, "like is required"));
}
/**
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public @org.jetbrains.annotations.NotNull java.lang.String getStartsWith() {
return software.amazon.jsii.Kernel.get(this, "startsWith", software.amazon.jsii.NativeType.forClass(java.lang.String.class));
}
/**
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public void setStartsWith(final @org.jetbrains.annotations.NotNull java.lang.String value) {
software.amazon.jsii.Kernel.set(this, "startsWith", java.util.Objects.requireNonNull(value, "startsWith is required"));
}
/**
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public @org.jetbrains.annotations.NotNull java.lang.Object getWithDescribe() {
return software.amazon.jsii.Kernel.get(this, "withDescribe", software.amazon.jsii.NativeType.forClass(java.lang.Object.class));
}
/**
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public void setWithDescribe(final @org.jetbrains.annotations.NotNull java.lang.Boolean value) {
software.amazon.jsii.Kernel.set(this, "withDescribe", java.util.Objects.requireNonNull(value, "withDescribe is required"));
}
/**
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public void setWithDescribe(final @org.jetbrains.annotations.NotNull com.hashicorp.cdktf.IResolvable value) {
software.amazon.jsii.Kernel.set(this, "withDescribe", java.util.Objects.requireNonNull(value, "withDescribe is required"));
}
/**
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public @org.jetbrains.annotations.NotNull java.lang.Object getWithParameters() {
return software.amazon.jsii.Kernel.get(this, "withParameters", software.amazon.jsii.NativeType.forClass(java.lang.Object.class));
}
/**
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public void setWithParameters(final @org.jetbrains.annotations.NotNull java.lang.Boolean value) {
software.amazon.jsii.Kernel.set(this, "withParameters", java.util.Objects.requireNonNull(value, "withParameters is required"));
}
/**
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public void setWithParameters(final @org.jetbrains.annotations.NotNull com.hashicorp.cdktf.IResolvable value) {
software.amazon.jsii.Kernel.set(this, "withParameters", java.util.Objects.requireNonNull(value, "withParameters is required"));
}
/**
* A fluent builder for {@link com.hashicorp.cdktf.providers.snowflake.data_snowflake_databases.DataSnowflakeDatabases}.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public static final class Builder implements software.amazon.jsii.Builder {
/**
* @return a new instance of {@link Builder}.
* @param scope The scope in which to define this construct. This parameter is required.
* @param id The scoped construct ID. This parameter is required.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public static Builder create(final software.constructs.Construct scope, final java.lang.String id) {
return new Builder(scope, id);
}
private final software.constructs.Construct scope;
private final java.lang.String id;
private com.hashicorp.cdktf.providers.snowflake.data_snowflake_databases.DataSnowflakeDatabasesConfig.Builder config;
private Builder(final software.constructs.Construct scope, final java.lang.String id) {
this.scope = scope;
this.id = id;
}
/**
* @return {@code this}
* @param connection This parameter is required.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public Builder connection(final com.hashicorp.cdktf.SSHProvisionerConnection connection) {
this.config().connection(connection);
return this;
}
/**
* @return {@code this}
* @param connection This parameter is required.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public Builder connection(final com.hashicorp.cdktf.WinrmProvisionerConnection connection) {
this.config().connection(connection);
return this;
}
/**
* @return {@code this}
* @param count This parameter is required.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public Builder count(final java.lang.Number count) {
this.config().count(count);
return this;
}
/**
* @return {@code this}
* @param count This parameter is required.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public Builder count(final com.hashicorp.cdktf.TerraformCount count) {
this.config().count(count);
return this;
}
/**
* @return {@code this}
* @param dependsOn This parameter is required.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public Builder dependsOn(final java.util.List dependsOn) {
this.config().dependsOn(dependsOn);
return this;
}
/**
* @return {@code this}
* @param forEach This parameter is required.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public Builder forEach(final com.hashicorp.cdktf.ITerraformIterator forEach) {
this.config().forEach(forEach);
return this;
}
/**
* @return {@code this}
* @param lifecycle This parameter is required.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public Builder lifecycle(final com.hashicorp.cdktf.TerraformResourceLifecycle lifecycle) {
this.config().lifecycle(lifecycle);
return this;
}
/**
* @return {@code this}
* @param provider This parameter is required.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public Builder provider(final com.hashicorp.cdktf.TerraformProvider provider) {
this.config().provider(provider);
return this;
}
/**
* @return {@code this}
* @param provisioners This parameter is required.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public Builder provisioners(final java.util.List provisioners) {
this.config().provisioners(provisioners);
return this;
}
/**
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/snowflake-labs/snowflake/0.94.1/docs/data-sources/databases#id DataSnowflakeDatabases#id}.
*
* Please be aware that the id field is automatically added to all resources in Terraform providers using a Terraform provider SDK version below 2.
* If you experience problems setting this value it might not be settable. Please take a look at the provider documentation to ensure it should be settable.
*
* @return {@code this}
* @param id Docs at Terraform Registry: {@link https://registry.terraform.io/providers/snowflake-labs/snowflake/0.94.1/docs/data-sources/databases#id DataSnowflakeDatabases#id}. This parameter is required.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public Builder id(final java.lang.String id) {
this.config().id(id);
return this;
}
/**
* Filters the output with case-insensitive pattern, with support for SQL wildcard characters (%
and _
).
*
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/snowflake-labs/snowflake/0.94.1/docs/data-sources/databases#like DataSnowflakeDatabases#like}
*
* @return {@code this}
* @param like Filters the output with case-insensitive pattern, with support for SQL wildcard characters (%
and _
). This parameter is required.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public Builder like(final java.lang.String like) {
this.config().like(like);
return this;
}
/**
* limit block.
*
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/snowflake-labs/snowflake/0.94.1/docs/data-sources/databases#limit DataSnowflakeDatabases#limit}
*
* @return {@code this}
* @param limit limit block. This parameter is required.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public Builder limit(final com.hashicorp.cdktf.providers.snowflake.data_snowflake_databases.DataSnowflakeDatabasesLimit limit) {
this.config().limit(limit);
return this;
}
/**
* Filters the output with case-sensitive characters indicating the beginning of the object name.
*
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/snowflake-labs/snowflake/0.94.1/docs/data-sources/databases#starts_with DataSnowflakeDatabases#starts_with}
*
* @return {@code this}
* @param startsWith Filters the output with case-sensitive characters indicating the beginning of the object name. This parameter is required.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public Builder startsWith(final java.lang.String startsWith) {
this.config().startsWith(startsWith);
return this;
}
/**
* Runs DESC DATABASE for each database returned by SHOW DATABASES.
*
* The output of describe is saved to the description field. By default this value is set to true.
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/snowflake-labs/snowflake/0.94.1/docs/data-sources/databases#with_describe DataSnowflakeDatabases#with_describe}
*
* @return {@code this}
* @param withDescribe Runs DESC DATABASE for each database returned by SHOW DATABASES. This parameter is required.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public Builder withDescribe(final java.lang.Boolean withDescribe) {
this.config().withDescribe(withDescribe);
return this;
}
/**
* Runs DESC DATABASE for each database returned by SHOW DATABASES.
*
* The output of describe is saved to the description field. By default this value is set to true.
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/snowflake-labs/snowflake/0.94.1/docs/data-sources/databases#with_describe DataSnowflakeDatabases#with_describe}
*
* @return {@code this}
* @param withDescribe Runs DESC DATABASE for each database returned by SHOW DATABASES. This parameter is required.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public Builder withDescribe(final com.hashicorp.cdktf.IResolvable withDescribe) {
this.config().withDescribe(withDescribe);
return this;
}
/**
* Runs SHOW PARAMETERS FOR DATABASE for each database returned by SHOW DATABASES.
*
* The output of describe is saved to the parameters field as a map. By default this value is set to true.
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/snowflake-labs/snowflake/0.94.1/docs/data-sources/databases#with_parameters DataSnowflakeDatabases#with_parameters}
*
* @return {@code this}
* @param withParameters Runs SHOW PARAMETERS FOR DATABASE for each database returned by SHOW DATABASES. This parameter is required.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public Builder withParameters(final java.lang.Boolean withParameters) {
this.config().withParameters(withParameters);
return this;
}
/**
* Runs SHOW PARAMETERS FOR DATABASE for each database returned by SHOW DATABASES.
*
* The output of describe is saved to the parameters field as a map. By default this value is set to true.
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/snowflake-labs/snowflake/0.94.1/docs/data-sources/databases#with_parameters DataSnowflakeDatabases#with_parameters}
*
* @return {@code this}
* @param withParameters Runs SHOW PARAMETERS FOR DATABASE for each database returned by SHOW DATABASES. This parameter is required.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public Builder withParameters(final com.hashicorp.cdktf.IResolvable withParameters) {
this.config().withParameters(withParameters);
return this;
}
/**
* @return a newly built instance of {@link com.hashicorp.cdktf.providers.snowflake.data_snowflake_databases.DataSnowflakeDatabases}.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
@Override
public com.hashicorp.cdktf.providers.snowflake.data_snowflake_databases.DataSnowflakeDatabases build() {
return new com.hashicorp.cdktf.providers.snowflake.data_snowflake_databases.DataSnowflakeDatabases(
this.scope,
this.id,
this.config != null ? this.config.build() : null
);
}
private com.hashicorp.cdktf.providers.snowflake.data_snowflake_databases.DataSnowflakeDatabasesConfig.Builder config() {
if (this.config == null) {
this.config = new com.hashicorp.cdktf.providers.snowflake.data_snowflake_databases.DataSnowflakeDatabasesConfig.Builder();
}
return this.config;
}
}
}