Skip to content

Commit

Permalink
Merge pull request #43 from hashicorp/auto/provider-upgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
team-tf-cdk authored Mar 23, 2022
2 parents c5d30a9 + 1dfb3d9 commit d1a2301
Show file tree
Hide file tree
Showing 24 changed files with 2,173 additions and 0 deletions.
1,539 changes: 1,539 additions & 0 deletions API.md

Large diffs are not rendered by default.

24 changes: 24 additions & 0 deletions src/account-grant.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,12 @@ import * as cdktf from 'cdktf';
// Configuration

export interface AccountGrantConfig extends cdktf.TerraformMetaArguments {
/**
* When this is set to true, multiple grants of the same type can be created. This will cause Terraform to not revoke grants applied to roles and objects outside Terraform.
*
* Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/snowflake/r/account_grant#enable_multiple_grants AccountGrant#enable_multiple_grants}
*/
readonly enableMultipleGrants?: boolean | cdktf.IResolvable;
/**
* The privilege to grant on the account.
*
Expand Down Expand Up @@ -59,6 +65,7 @@ export class AccountGrant extends cdktf.TerraformResource {
count: config.count,
lifecycle: config.lifecycle
});
this._enableMultipleGrants = config.enableMultipleGrants;
this._privilege = config.privilege;
this._roles = config.roles;
this._withGrantOption = config.withGrantOption;
Expand All @@ -68,6 +75,22 @@ export class AccountGrant extends cdktf.TerraformResource {
// ATTRIBUTES
// ==========

// enable_multiple_grants - computed: false, optional: true, required: false
private _enableMultipleGrants?: boolean | cdktf.IResolvable;
public get enableMultipleGrants() {
return this.getBooleanAttribute('enable_multiple_grants');
}
public set enableMultipleGrants(value: boolean | cdktf.IResolvable) {
this._enableMultipleGrants = value;
}
public resetEnableMultipleGrants() {
this._enableMultipleGrants = undefined;
}
// Temporarily expose input value. Use with caution.
public get enableMultipleGrantsInput() {
return this._enableMultipleGrants;
}

// id - computed: true, optional: true, required: false
public get id() {
return this.getStringAttribute('id');
Expand Down Expand Up @@ -127,6 +150,7 @@ export class AccountGrant extends cdktf.TerraformResource {

protected synthesizeAttributes(): { [name: string]: any } {
return {
enable_multiple_grants: cdktf.booleanToTerraform(this._enableMultipleGrants),
privilege: cdktf.stringToTerraform(this._privilege),
roles: cdktf.listMapper(cdktf.stringToTerraform)(this._roles),
with_grant_option: cdktf.booleanToTerraform(this._withGrantOption),
Expand Down
24 changes: 24 additions & 0 deletions src/database-grant.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,12 @@ export interface DatabaseGrantConfig extends cdktf.TerraformMetaArguments {
*/
readonly databaseName: string;
/**
* When this is set to true, multiple grants of the same type can be created. This will cause Terraform to not revoke grants applied to roles and objects outside Terraform.
*
* Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/snowflake/r/database_grant#enable_multiple_grants DatabaseGrant#enable_multiple_grants}
*/
readonly enableMultipleGrants?: boolean | cdktf.IResolvable;
/**
* The privilege to grant on the database.
*
* Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/snowflake/r/database_grant#privilege DatabaseGrant#privilege}
Expand Down Expand Up @@ -72,6 +78,7 @@ export class DatabaseGrant extends cdktf.TerraformResource {
lifecycle: config.lifecycle
});
this._databaseName = config.databaseName;
this._enableMultipleGrants = config.enableMultipleGrants;
this._privilege = config.privilege;
this._roles = config.roles;
this._shares = config.shares;
Expand All @@ -95,6 +102,22 @@ export class DatabaseGrant extends cdktf.TerraformResource {
return this._databaseName;
}

// enable_multiple_grants - computed: false, optional: true, required: false
private _enableMultipleGrants?: boolean | cdktf.IResolvable;
public get enableMultipleGrants() {
return this.getBooleanAttribute('enable_multiple_grants');
}
public set enableMultipleGrants(value: boolean | cdktf.IResolvable) {
this._enableMultipleGrants = value;
}
public resetEnableMultipleGrants() {
this._enableMultipleGrants = undefined;
}
// Temporarily expose input value. Use with caution.
public get enableMultipleGrantsInput() {
return this._enableMultipleGrants;
}

// id - computed: true, optional: true, required: false
public get id() {
return this.getStringAttribute('id');
Expand Down Expand Up @@ -171,6 +194,7 @@ export class DatabaseGrant extends cdktf.TerraformResource {
protected synthesizeAttributes(): { [name: string]: any } {
return {
database_name: cdktf.stringToTerraform(this._databaseName),
enable_multiple_grants: cdktf.booleanToTerraform(this._enableMultipleGrants),
privilege: cdktf.stringToTerraform(this._privilege),
roles: cdktf.listMapper(cdktf.stringToTerraform)(this._roles),
shares: cdktf.listMapper(cdktf.stringToTerraform)(this._shares),
Expand Down
24 changes: 24 additions & 0 deletions src/external-table-grant.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,12 @@ export interface ExternalTableGrantConfig extends cdktf.TerraformMetaArguments {
*/
readonly databaseName: string;
/**
* When this is set to true, multiple grants of the same type can be created. This will cause Terraform to not revoke grants applied to roles and objects outside Terraform.
*
* Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/snowflake/r/external_table_grant#enable_multiple_grants ExternalTableGrant#enable_multiple_grants}
*/
readonly enableMultipleGrants?: boolean | cdktf.IResolvable;
/**
* The name of the external table on which to grant privileges immediately (only valid if on_future is false).
*
* Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/snowflake/r/external_table_grant#external_table_name ExternalTableGrant#external_table_name}
Expand Down Expand Up @@ -90,6 +96,7 @@ export class ExternalTableGrant extends cdktf.TerraformResource {
lifecycle: config.lifecycle
});
this._databaseName = config.databaseName;
this._enableMultipleGrants = config.enableMultipleGrants;
this._externalTableName = config.externalTableName;
this._onFuture = config.onFuture;
this._privilege = config.privilege;
Expand All @@ -116,6 +123,22 @@ export class ExternalTableGrant extends cdktf.TerraformResource {
return this._databaseName;
}

// enable_multiple_grants - computed: false, optional: true, required: false
private _enableMultipleGrants?: boolean | cdktf.IResolvable;
public get enableMultipleGrants() {
return this.getBooleanAttribute('enable_multiple_grants');
}
public set enableMultipleGrants(value: boolean | cdktf.IResolvable) {
this._enableMultipleGrants = value;
}
public resetEnableMultipleGrants() {
this._enableMultipleGrants = undefined;
}
// Temporarily expose input value. Use with caution.
public get enableMultipleGrantsInput() {
return this._enableMultipleGrants;
}

// external_table_name - computed: false, optional: true, required: false
private _externalTableName?: string;
public get externalTableName() {
Expand Down Expand Up @@ -237,6 +260,7 @@ export class ExternalTableGrant extends cdktf.TerraformResource {
protected synthesizeAttributes(): { [name: string]: any } {
return {
database_name: cdktf.stringToTerraform(this._databaseName),
enable_multiple_grants: cdktf.booleanToTerraform(this._enableMultipleGrants),
external_table_name: cdktf.stringToTerraform(this._externalTableName),
on_future: cdktf.booleanToTerraform(this._onFuture),
privilege: cdktf.stringToTerraform(this._privilege),
Expand Down
24 changes: 24 additions & 0 deletions src/file-format-grant.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,12 @@ export interface FileFormatGrantConfig extends cdktf.TerraformMetaArguments {
*/
readonly databaseName: string;
/**
* When this is set to true, multiple grants of the same type can be created. This will cause Terraform to not revoke grants applied to roles and objects outside Terraform.
*
* Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/snowflake/r/file_format_grant#enable_multiple_grants FileFormatGrant#enable_multiple_grants}
*/
readonly enableMultipleGrants?: boolean | cdktf.IResolvable;
/**
* The name of the file format on which to grant privileges immediately (only valid if on_future is false).
*
* Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/snowflake/r/file_format_grant#file_format_name FileFormatGrant#file_format_name}
Expand Down Expand Up @@ -84,6 +90,7 @@ export class FileFormatGrant extends cdktf.TerraformResource {
lifecycle: config.lifecycle
});
this._databaseName = config.databaseName;
this._enableMultipleGrants = config.enableMultipleGrants;
this._fileFormatName = config.fileFormatName;
this._onFuture = config.onFuture;
this._privilege = config.privilege;
Expand All @@ -109,6 +116,22 @@ export class FileFormatGrant extends cdktf.TerraformResource {
return this._databaseName;
}

// enable_multiple_grants - computed: false, optional: true, required: false
private _enableMultipleGrants?: boolean | cdktf.IResolvable;
public get enableMultipleGrants() {
return this.getBooleanAttribute('enable_multiple_grants');
}
public set enableMultipleGrants(value: boolean | cdktf.IResolvable) {
this._enableMultipleGrants = value;
}
public resetEnableMultipleGrants() {
this._enableMultipleGrants = undefined;
}
// Temporarily expose input value. Use with caution.
public get enableMultipleGrantsInput() {
return this._enableMultipleGrants;
}

// file_format_name - computed: false, optional: true, required: false
private _fileFormatName?: string;
public get fileFormatName() {
Expand Down Expand Up @@ -214,6 +237,7 @@ export class FileFormatGrant extends cdktf.TerraformResource {
protected synthesizeAttributes(): { [name: string]: any } {
return {
database_name: cdktf.stringToTerraform(this._databaseName),
enable_multiple_grants: cdktf.booleanToTerraform(this._enableMultipleGrants),
file_format_name: cdktf.stringToTerraform(this._fileFormatName),
on_future: cdktf.booleanToTerraform(this._onFuture),
privilege: cdktf.stringToTerraform(this._privilege),
Expand Down
24 changes: 24 additions & 0 deletions src/function-grant.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,12 @@ export interface FunctionGrantConfig extends cdktf.TerraformMetaArguments {
*/
readonly databaseName: string;
/**
* When this is set to true, multiple grants of the same type can be created. This will cause Terraform to not revoke grants applied to roles and objects outside Terraform.
*
* Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/snowflake/r/function_grant#enable_multiple_grants FunctionGrant#enable_multiple_grants}
*/
readonly enableMultipleGrants?: boolean | cdktf.IResolvable;
/**
* The name of the function on which to grant privileges immediately (only valid if on_future is false).
*
* Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/snowflake/r/function_grant#function_name FunctionGrant#function_name}
Expand Down Expand Up @@ -128,6 +134,7 @@ export class FunctionGrant extends cdktf.TerraformResource {
lifecycle: config.lifecycle
});
this._databaseName = config.databaseName;
this._enableMultipleGrants = config.enableMultipleGrants;
this._functionName = config.functionName;
this._onFuture = config.onFuture;
this._privilege = config.privilege;
Expand Down Expand Up @@ -156,6 +163,22 @@ export class FunctionGrant extends cdktf.TerraformResource {
return this._databaseName;
}

// enable_multiple_grants - computed: false, optional: true, required: false
private _enableMultipleGrants?: boolean | cdktf.IResolvable;
public get enableMultipleGrants() {
return this.getBooleanAttribute('enable_multiple_grants');
}
public set enableMultipleGrants(value: boolean | cdktf.IResolvable) {
this._enableMultipleGrants = value;
}
public resetEnableMultipleGrants() {
this._enableMultipleGrants = undefined;
}
// Temporarily expose input value. Use with caution.
public get enableMultipleGrantsInput() {
return this._enableMultipleGrants;
}

// function_name - computed: false, optional: true, required: false
private _functionName?: string;
public get functionName() {
Expand Down Expand Up @@ -310,6 +333,7 @@ export class FunctionGrant extends cdktf.TerraformResource {
protected synthesizeAttributes(): { [name: string]: any } {
return {
database_name: cdktf.stringToTerraform(this._databaseName),
enable_multiple_grants: cdktf.booleanToTerraform(this._enableMultipleGrants),
function_name: cdktf.stringToTerraform(this._functionName),
on_future: cdktf.booleanToTerraform(this._onFuture),
privilege: cdktf.stringToTerraform(this._privilege),
Expand Down
1 change: 1 addition & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ export * from './resource-monitor';
export * from './resource-monitor-grant';
export * from './role';
export * from './role-grants';
export * from './role-ownership-grant';
export * from './row-access-policy';
export * from './row-access-policy-grant';
export * from './saml-integration';
Expand Down
24 changes: 24 additions & 0 deletions src/integration-grant.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,12 @@ import * as cdktf from 'cdktf';
// Configuration

export interface IntegrationGrantConfig extends cdktf.TerraformMetaArguments {
/**
* When this is set to true, multiple grants of the same type can be created. This will cause Terraform to not revoke grants applied to roles and objects outside Terraform.
*
* Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/snowflake/r/integration_grant#enable_multiple_grants IntegrationGrant#enable_multiple_grants}
*/
readonly enableMultipleGrants?: boolean | cdktf.IResolvable;
/**
* Identifier for the integration; must be unique for your account.
*
Expand Down Expand Up @@ -65,6 +71,7 @@ export class IntegrationGrant extends cdktf.TerraformResource {
count: config.count,
lifecycle: config.lifecycle
});
this._enableMultipleGrants = config.enableMultipleGrants;
this._integrationName = config.integrationName;
this._privilege = config.privilege;
this._roles = config.roles;
Expand All @@ -75,6 +82,22 @@ export class IntegrationGrant extends cdktf.TerraformResource {
// ATTRIBUTES
// ==========

// enable_multiple_grants - computed: false, optional: true, required: false
private _enableMultipleGrants?: boolean | cdktf.IResolvable;
public get enableMultipleGrants() {
return this.getBooleanAttribute('enable_multiple_grants');
}
public set enableMultipleGrants(value: boolean | cdktf.IResolvable) {
this._enableMultipleGrants = value;
}
public resetEnableMultipleGrants() {
this._enableMultipleGrants = undefined;
}
// Temporarily expose input value. Use with caution.
public get enableMultipleGrantsInput() {
return this._enableMultipleGrants;
}

// id - computed: true, optional: true, required: false
public get id() {
return this.getStringAttribute('id');
Expand Down Expand Up @@ -147,6 +170,7 @@ export class IntegrationGrant extends cdktf.TerraformResource {

protected synthesizeAttributes(): { [name: string]: any } {
return {
enable_multiple_grants: cdktf.booleanToTerraform(this._enableMultipleGrants),
integration_name: cdktf.stringToTerraform(this._integrationName),
privilege: cdktf.stringToTerraform(this._privilege),
roles: cdktf.listMapper(cdktf.stringToTerraform)(this._roles),
Expand Down
24 changes: 24 additions & 0 deletions src/masking-policy-grant.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,12 @@ export interface MaskingPolicyGrantConfig extends cdktf.TerraformMetaArguments {
*/
readonly databaseName: string;
/**
* When this is set to true, multiple grants of the same type can be created. This will cause Terraform to not revoke grants applied to roles and objects outside Terraform.
*
* Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/snowflake/r/masking_policy_grant#enable_multiple_grants MaskingPolicyGrant#enable_multiple_grants}
*/
readonly enableMultipleGrants?: boolean | cdktf.IResolvable;
/**
* The name of the masking policy on which to grant privileges immediately.
*
* Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/snowflake/r/masking_policy_grant#masking_policy_name MaskingPolicyGrant#masking_policy_name}
Expand Down Expand Up @@ -78,6 +84,7 @@ export class MaskingPolicyGrant extends cdktf.TerraformResource {
lifecycle: config.lifecycle
});
this._databaseName = config.databaseName;
this._enableMultipleGrants = config.enableMultipleGrants;
this._maskingPolicyName = config.maskingPolicyName;
this._privilege = config.privilege;
this._roles = config.roles;
Expand All @@ -102,6 +109,22 @@ export class MaskingPolicyGrant extends cdktf.TerraformResource {
return this._databaseName;
}

// enable_multiple_grants - computed: false, optional: true, required: false
private _enableMultipleGrants?: boolean | cdktf.IResolvable;
public get enableMultipleGrants() {
return this.getBooleanAttribute('enable_multiple_grants');
}
public set enableMultipleGrants(value: boolean | cdktf.IResolvable) {
this._enableMultipleGrants = value;
}
public resetEnableMultipleGrants() {
this._enableMultipleGrants = undefined;
}
// Temporarily expose input value. Use with caution.
public get enableMultipleGrantsInput() {
return this._enableMultipleGrants;
}

// id - computed: true, optional: true, required: false
public get id() {
return this.getStringAttribute('id');
Expand Down Expand Up @@ -188,6 +211,7 @@ export class MaskingPolicyGrant extends cdktf.TerraformResource {
protected synthesizeAttributes(): { [name: string]: any } {
return {
database_name: cdktf.stringToTerraform(this._databaseName),
enable_multiple_grants: cdktf.booleanToTerraform(this._enableMultipleGrants),
masking_policy_name: cdktf.stringToTerraform(this._maskingPolicyName),
privilege: cdktf.stringToTerraform(this._privilege),
roles: cdktf.listMapper(cdktf.stringToTerraform)(this._roles),
Expand Down
Loading

0 comments on commit d1a2301

Please sign in to comment.