From 1dfb3d952437ea70405fe0a5cee4af9b107ae16b Mon Sep 17 00:00:00 2001 From: Team Terraform CDK Date: Wed, 23 Mar 2022 20:07:16 +0000 Subject: [PATCH] chore: upgrade provider --- API.md | 1539 ++++++++++++++++++++++++++++++++ src/account-grant.ts | 24 + src/database-grant.ts | 24 + src/external-table-grant.ts | 24 + src/file-format-grant.ts | 24 + src/function-grant.ts | 24 + src/index.ts | 1 + src/integration-grant.ts | 24 + src/masking-policy-grant.ts | 24 + src/materialized-view-grant.ts | 24 + src/pipe-grant.ts | 24 + src/procedure-grant.ts | 24 + src/resource-monitor-grant.ts | 24 + src/role-grants.ts | 24 + src/role-ownership-grant.ts | 129 +++ src/row-access-policy-grant.ts | 24 + src/schema-grant.ts | 24 + src/sequence-grant.ts | 24 + src/stage-grant.ts | 24 + src/stream-grant.ts | 24 + src/table-grant.ts | 24 + src/task-grant.ts | 24 + src/view-grant.ts | 24 + src/warehouse-grant.ts | 24 + 24 files changed, 2173 insertions(+) create mode 100644 src/role-ownership-grant.ts diff --git a/API.md b/API.md index 86a234063..616dfce7c 100644 --- a/API.md +++ b/API.md @@ -66,6 +66,7 @@ Must be unique amongst siblings in the same scope | getStringAttribute | *No description.* | | getStringMapAttribute | *No description.* | | interpolationForAttribute | *No description.* | +| resetEnableMultipleGrants | *No description.* | | resetPrivilege | *No description.* | | resetRoles | *No description.* | | resetWithGrantOption | *No description.* | @@ -256,6 +257,12 @@ public interpolationForAttribute(terraformAttribute: string): IResolvable --- +##### `resetEnableMultipleGrants` + +```typescript +public resetEnableMultipleGrants(): void +``` + ##### `resetPrivilege` ```typescript @@ -316,9 +323,11 @@ Any object. | lifecycle | cdktf.TerraformResourceLifecycle | *No description.* | | provider | cdktf.TerraformProvider | *No description.* | | id | string | *No description.* | +| enableMultipleGrantsInput | boolean \| cdktf.IResolvable | *No description.* | | privilegeInput | string | *No description.* | | rolesInput | string[] | *No description.* | | withGrantOptionInput | boolean \| cdktf.IResolvable | *No description.* | +| enableMultipleGrants | boolean \| cdktf.IResolvable | *No description.* | | privilege | string | *No description.* | | roles | string[] | *No description.* | | withGrantOption | boolean \| cdktf.IResolvable | *No description.* | @@ -447,6 +456,16 @@ public readonly id: string; --- +##### `enableMultipleGrantsInput`Optional + +```typescript +public readonly enableMultipleGrantsInput: boolean | IResolvable; +``` + +- *Type:* boolean | cdktf.IResolvable + +--- + ##### `privilegeInput`Optional ```typescript @@ -477,6 +496,16 @@ public readonly withGrantOptionInput: boolean | IResolvable; --- +##### `enableMultipleGrants`Required + +```typescript +public readonly enableMultipleGrants: boolean | IResolvable; +``` + +- *Type:* boolean | cdktf.IResolvable + +--- + ##### `privilege`Required ```typescript @@ -1923,6 +1952,7 @@ Must be unique amongst siblings in the same scope | getStringAttribute | *No description.* | | getStringMapAttribute | *No description.* | | interpolationForAttribute | *No description.* | +| resetEnableMultipleGrants | *No description.* | | resetPrivilege | *No description.* | | resetRoles | *No description.* | | resetShares | *No description.* | @@ -2114,6 +2144,12 @@ public interpolationForAttribute(terraformAttribute: string): IResolvable --- +##### `resetEnableMultipleGrants` + +```typescript +public resetEnableMultipleGrants(): void +``` + ##### `resetPrivilege` ```typescript @@ -2181,11 +2217,13 @@ Any object. | provider | cdktf.TerraformProvider | *No description.* | | id | string | *No description.* | | databaseNameInput | string | *No description.* | +| enableMultipleGrantsInput | boolean \| cdktf.IResolvable | *No description.* | | privilegeInput | string | *No description.* | | rolesInput | string[] | *No description.* | | sharesInput | string[] | *No description.* | | withGrantOptionInput | boolean \| cdktf.IResolvable | *No description.* | | databaseName | string | *No description.* | +| enableMultipleGrants | boolean \| cdktf.IResolvable | *No description.* | | privilege | string | *No description.* | | roles | string[] | *No description.* | | shares | string[] | *No description.* | @@ -2325,6 +2363,16 @@ public readonly databaseNameInput: string; --- +##### `enableMultipleGrantsInput`Optional + +```typescript +public readonly enableMultipleGrantsInput: boolean | IResolvable; +``` + +- *Type:* boolean | cdktf.IResolvable + +--- + ##### `privilegeInput`Optional ```typescript @@ -2375,6 +2423,16 @@ public readonly databaseName: string; --- +##### `enableMultipleGrants`Required + +```typescript +public readonly enableMultipleGrants: boolean | IResolvable; +``` + +- *Type:* boolean | cdktf.IResolvable + +--- + ##### `privilege`Required ```typescript @@ -17545,6 +17603,7 @@ Must be unique amongst siblings in the same scope | getStringAttribute | *No description.* | | getStringMapAttribute | *No description.* | | interpolationForAttribute | *No description.* | +| resetEnableMultipleGrants | *No description.* | | resetExternalTableName | *No description.* | | resetOnFuture | *No description.* | | resetPrivilege | *No description.* | @@ -17738,6 +17797,12 @@ public interpolationForAttribute(terraformAttribute: string): IResolvable --- +##### `resetEnableMultipleGrants` + +```typescript +public resetEnableMultipleGrants(): void +``` + ##### `resetExternalTableName` ```typescript @@ -17817,6 +17882,7 @@ Any object. | provider | cdktf.TerraformProvider | *No description.* | | id | string | *No description.* | | databaseNameInput | string | *No description.* | +| enableMultipleGrantsInput | boolean \| cdktf.IResolvable | *No description.* | | externalTableNameInput | string | *No description.* | | onFutureInput | boolean \| cdktf.IResolvable | *No description.* | | privilegeInput | string | *No description.* | @@ -17825,6 +17891,7 @@ Any object. | sharesInput | string[] | *No description.* | | withGrantOptionInput | boolean \| cdktf.IResolvable | *No description.* | | databaseName | string | *No description.* | +| enableMultipleGrants | boolean \| cdktf.IResolvable | *No description.* | | externalTableName | string | *No description.* | | onFuture | boolean \| cdktf.IResolvable | *No description.* | | privilege | string | *No description.* | @@ -17967,6 +18034,16 @@ public readonly databaseNameInput: string; --- +##### `enableMultipleGrantsInput`Optional + +```typescript +public readonly enableMultipleGrantsInput: boolean | IResolvable; +``` + +- *Type:* boolean | cdktf.IResolvable + +--- + ##### `externalTableNameInput`Optional ```typescript @@ -18047,6 +18124,16 @@ public readonly databaseName: string; --- +##### `enableMultipleGrants`Required + +```typescript +public readonly enableMultipleGrants: boolean | IResolvable; +``` + +- *Type:* boolean | cdktf.IResolvable + +--- + ##### `externalTableName`Required ```typescript @@ -19651,6 +19738,7 @@ Must be unique amongst siblings in the same scope | getStringAttribute | *No description.* | | getStringMapAttribute | *No description.* | | interpolationForAttribute | *No description.* | +| resetEnableMultipleGrants | *No description.* | | resetFileFormatName | *No description.* | | resetOnFuture | *No description.* | | resetPrivilege | *No description.* | @@ -19843,6 +19931,12 @@ public interpolationForAttribute(terraformAttribute: string): IResolvable --- +##### `resetEnableMultipleGrants` + +```typescript +public resetEnableMultipleGrants(): void +``` + ##### `resetFileFormatName` ```typescript @@ -19916,6 +20010,7 @@ Any object. | provider | cdktf.TerraformProvider | *No description.* | | id | string | *No description.* | | databaseNameInput | string | *No description.* | +| enableMultipleGrantsInput | boolean \| cdktf.IResolvable | *No description.* | | fileFormatNameInput | string | *No description.* | | onFutureInput | boolean \| cdktf.IResolvable | *No description.* | | privilegeInput | string | *No description.* | @@ -19923,6 +20018,7 @@ Any object. | schemaNameInput | string | *No description.* | | withGrantOptionInput | boolean \| cdktf.IResolvable | *No description.* | | databaseName | string | *No description.* | +| enableMultipleGrants | boolean \| cdktf.IResolvable | *No description.* | | fileFormatName | string | *No description.* | | onFuture | boolean \| cdktf.IResolvable | *No description.* | | privilege | string | *No description.* | @@ -20064,6 +20160,16 @@ public readonly databaseNameInput: string; --- +##### `enableMultipleGrantsInput`Optional + +```typescript +public readonly enableMultipleGrantsInput: boolean | IResolvable; +``` + +- *Type:* boolean | cdktf.IResolvable + +--- + ##### `fileFormatNameInput`Optional ```typescript @@ -20134,6 +20240,16 @@ public readonly databaseName: string; --- +##### `enableMultipleGrants`Required + +```typescript +public readonly enableMultipleGrants: boolean | IResolvable; +``` + +- *Type:* boolean | cdktf.IResolvable + +--- + ##### `fileFormatName`Required ```typescript @@ -21055,6 +21171,7 @@ Must be unique amongst siblings in the same scope | getStringMapAttribute | *No description.* | | interpolationForAttribute | *No description.* | | resetArguments | *No description.* | +| resetEnableMultipleGrants | *No description.* | | resetFunctionName | *No description.* | | resetOnFuture | *No description.* | | resetPrivilege | *No description.* | @@ -21255,6 +21372,12 @@ public interpolationForAttribute(terraformAttribute: string): IResolvable public resetArguments(): void ``` +##### `resetEnableMultipleGrants` + +```typescript +public resetEnableMultipleGrants(): void +``` + ##### `resetFunctionName` ```typescript @@ -21341,6 +21464,7 @@ Any object. | id | string | *No description.* | | argumentsInput | cdktf.IResolvable \| FunctionGrantArguments[] | *No description.* | | databaseNameInput | string | *No description.* | +| enableMultipleGrantsInput | boolean \| cdktf.IResolvable | *No description.* | | functionNameInput | string | *No description.* | | onFutureInput | boolean \| cdktf.IResolvable | *No description.* | | privilegeInput | string | *No description.* | @@ -21351,6 +21475,7 @@ Any object. | withGrantOptionInput | boolean \| cdktf.IResolvable | *No description.* | | arguments | cdktf.IResolvable \| FunctionGrantArguments[] | *No description.* | | databaseName | string | *No description.* | +| enableMultipleGrants | boolean \| cdktf.IResolvable | *No description.* | | functionName | string | *No description.* | | onFuture | boolean \| cdktf.IResolvable | *No description.* | | privilege | string | *No description.* | @@ -21504,6 +21629,16 @@ public readonly databaseNameInput: string; --- +##### `enableMultipleGrantsInput`Optional + +```typescript +public readonly enableMultipleGrantsInput: boolean | IResolvable; +``` + +- *Type:* boolean | cdktf.IResolvable + +--- + ##### `functionNameInput`Optional ```typescript @@ -21604,6 +21739,16 @@ public readonly databaseName: string; --- +##### `enableMultipleGrants`Required + +```typescript +public readonly enableMultipleGrants: boolean | IResolvable; +``` + +- *Type:* boolean | cdktf.IResolvable + +--- + ##### `functionName`Required ```typescript @@ -21766,6 +21911,7 @@ Must be unique amongst siblings in the same scope | getStringAttribute | *No description.* | | getStringMapAttribute | *No description.* | | interpolationForAttribute | *No description.* | +| resetEnableMultipleGrants | *No description.* | | resetPrivilege | *No description.* | | resetRoles | *No description.* | | resetWithGrantOption | *No description.* | @@ -21956,6 +22102,12 @@ public interpolationForAttribute(terraformAttribute: string): IResolvable --- +##### `resetEnableMultipleGrants` + +```typescript +public resetEnableMultipleGrants(): void +``` + ##### `resetPrivilege` ```typescript @@ -22016,10 +22168,12 @@ Any object. | lifecycle | cdktf.TerraformResourceLifecycle | *No description.* | | provider | cdktf.TerraformProvider | *No description.* | | id | string | *No description.* | +| enableMultipleGrantsInput | boolean \| cdktf.IResolvable | *No description.* | | integrationNameInput | string | *No description.* | | privilegeInput | string | *No description.* | | rolesInput | string[] | *No description.* | | withGrantOptionInput | boolean \| cdktf.IResolvable | *No description.* | +| enableMultipleGrants | boolean \| cdktf.IResolvable | *No description.* | | integrationName | string | *No description.* | | privilege | string | *No description.* | | roles | string[] | *No description.* | @@ -22149,6 +22303,16 @@ public readonly id: string; --- +##### `enableMultipleGrantsInput`Optional + +```typescript +public readonly enableMultipleGrantsInput: boolean | IResolvable; +``` + +- *Type:* boolean | cdktf.IResolvable + +--- + ##### `integrationNameInput`Optional ```typescript @@ -22189,6 +22353,16 @@ public readonly withGrantOptionInput: boolean | IResolvable; --- +##### `enableMultipleGrants`Required + +```typescript +public readonly enableMultipleGrants: boolean | IResolvable; +``` + +- *Type:* boolean | cdktf.IResolvable + +--- + ##### `integrationName`Required ```typescript @@ -23523,6 +23697,7 @@ Must be unique amongst siblings in the same scope | getStringAttribute | *No description.* | | getStringMapAttribute | *No description.* | | interpolationForAttribute | *No description.* | +| resetEnableMultipleGrants | *No description.* | | resetPrivilege | *No description.* | | resetRoles | *No description.* | | resetWithGrantOption | *No description.* | @@ -23713,6 +23888,12 @@ public interpolationForAttribute(terraformAttribute: string): IResolvable --- +##### `resetEnableMultipleGrants` + +```typescript +public resetEnableMultipleGrants(): void +``` + ##### `resetPrivilege` ```typescript @@ -23774,12 +23955,14 @@ Any object. | provider | cdktf.TerraformProvider | *No description.* | | id | string | *No description.* | | databaseNameInput | string | *No description.* | +| enableMultipleGrantsInput | boolean \| cdktf.IResolvable | *No description.* | | maskingPolicyNameInput | string | *No description.* | | privilegeInput | string | *No description.* | | rolesInput | string[] | *No description.* | | schemaNameInput | string | *No description.* | | withGrantOptionInput | boolean \| cdktf.IResolvable | *No description.* | | databaseName | string | *No description.* | +| enableMultipleGrants | boolean \| cdktf.IResolvable | *No description.* | | maskingPolicyName | string | *No description.* | | privilege | string | *No description.* | | roles | string[] | *No description.* | @@ -23920,6 +24103,16 @@ public readonly databaseNameInput: string; --- +##### `enableMultipleGrantsInput`Optional + +```typescript +public readonly enableMultipleGrantsInput: boolean | IResolvable; +``` + +- *Type:* boolean | cdktf.IResolvable + +--- + ##### `maskingPolicyNameInput`Optional ```typescript @@ -23980,6 +24173,16 @@ public readonly databaseName: string; --- +##### `enableMultipleGrants`Required + +```typescript +public readonly enableMultipleGrants: boolean | IResolvable; +``` + +- *Type:* boolean | cdktf.IResolvable + +--- + ##### `maskingPolicyName`Required ```typescript @@ -24774,6 +24977,7 @@ Must be unique amongst siblings in the same scope | getStringAttribute | *No description.* | | getStringMapAttribute | *No description.* | | interpolationForAttribute | *No description.* | +| resetEnableMultipleGrants | *No description.* | | resetMaterializedViewName | *No description.* | | resetOnFuture | *No description.* | | resetPrivilege | *No description.* | @@ -24968,6 +25172,12 @@ public interpolationForAttribute(terraformAttribute: string): IResolvable --- +##### `resetEnableMultipleGrants` + +```typescript +public resetEnableMultipleGrants(): void +``` + ##### `resetMaterializedViewName` ```typescript @@ -25053,6 +25263,7 @@ Any object. | provider | cdktf.TerraformProvider | *No description.* | | id | string | *No description.* | | databaseNameInput | string | *No description.* | +| enableMultipleGrantsInput | boolean \| cdktf.IResolvable | *No description.* | | materializedViewNameInput | string | *No description.* | | onFutureInput | boolean \| cdktf.IResolvable | *No description.* | | privilegeInput | string | *No description.* | @@ -25061,6 +25272,7 @@ Any object. | sharesInput | string[] | *No description.* | | withGrantOptionInput | boolean \| cdktf.IResolvable | *No description.* | | databaseName | string | *No description.* | +| enableMultipleGrants | boolean \| cdktf.IResolvable | *No description.* | | materializedViewName | string | *No description.* | | onFuture | boolean \| cdktf.IResolvable | *No description.* | | privilege | string | *No description.* | @@ -25203,6 +25415,16 @@ public readonly databaseNameInput: string; --- +##### `enableMultipleGrantsInput`Optional + +```typescript +public readonly enableMultipleGrantsInput: boolean | IResolvable; +``` + +- *Type:* boolean | cdktf.IResolvable + +--- + ##### `materializedViewNameInput`Optional ```typescript @@ -25283,6 +25505,16 @@ public readonly databaseName: string; --- +##### `enableMultipleGrants`Required + +```typescript +public readonly enableMultipleGrants: boolean | IResolvable; +``` + +- *Type:* boolean | cdktf.IResolvable + +--- + ##### `materializedViewName`Required ```typescript @@ -28717,6 +28949,7 @@ Must be unique amongst siblings in the same scope | getStringAttribute | *No description.* | | getStringMapAttribute | *No description.* | | interpolationForAttribute | *No description.* | +| resetEnableMultipleGrants | *No description.* | | resetOnFuture | *No description.* | | resetPipeName | *No description.* | | resetPrivilege | *No description.* | @@ -28909,6 +29142,12 @@ public interpolationForAttribute(terraformAttribute: string): IResolvable --- +##### `resetEnableMultipleGrants` + +```typescript +public resetEnableMultipleGrants(): void +``` + ##### `resetOnFuture` ```typescript @@ -28982,6 +29221,7 @@ Any object. | provider | cdktf.TerraformProvider | *No description.* | | id | string | *No description.* | | databaseNameInput | string | *No description.* | +| enableMultipleGrantsInput | boolean \| cdktf.IResolvable | *No description.* | | onFutureInput | boolean \| cdktf.IResolvable | *No description.* | | pipeNameInput | string | *No description.* | | privilegeInput | string | *No description.* | @@ -28989,6 +29229,7 @@ Any object. | schemaNameInput | string | *No description.* | | withGrantOptionInput | boolean \| cdktf.IResolvable | *No description.* | | databaseName | string | *No description.* | +| enableMultipleGrants | boolean \| cdktf.IResolvable | *No description.* | | onFuture | boolean \| cdktf.IResolvable | *No description.* | | pipeName | string | *No description.* | | privilege | string | *No description.* | @@ -29130,6 +29371,16 @@ public readonly databaseNameInput: string; --- +##### `enableMultipleGrantsInput`Optional + +```typescript +public readonly enableMultipleGrantsInput: boolean | IResolvable; +``` + +- *Type:* boolean | cdktf.IResolvable + +--- + ##### `onFutureInput`Optional ```typescript @@ -29200,6 +29451,16 @@ public readonly databaseName: string; --- +##### `enableMultipleGrants`Required + +```typescript +public readonly enableMultipleGrants: boolean | IResolvable; +``` + +- *Type:* boolean | cdktf.IResolvable + +--- + ##### `onFuture`Required ```typescript @@ -30034,6 +30295,7 @@ Must be unique amongst siblings in the same scope | getStringMapAttribute | *No description.* | | interpolationForAttribute | *No description.* | | resetArguments | *No description.* | +| resetEnableMultipleGrants | *No description.* | | resetOnFuture | *No description.* | | resetPrivilege | *No description.* | | resetProcedureName | *No description.* | @@ -30234,6 +30496,12 @@ public interpolationForAttribute(terraformAttribute: string): IResolvable public resetArguments(): void ``` +##### `resetEnableMultipleGrants` + +```typescript +public resetEnableMultipleGrants(): void +``` + ##### `resetOnFuture` ```typescript @@ -30320,6 +30588,7 @@ Any object. | id | string | *No description.* | | argumentsInput | cdktf.IResolvable \| ProcedureGrantArguments[] | *No description.* | | databaseNameInput | string | *No description.* | +| enableMultipleGrantsInput | boolean \| cdktf.IResolvable | *No description.* | | onFutureInput | boolean \| cdktf.IResolvable | *No description.* | | privilegeInput | string | *No description.* | | procedureNameInput | string | *No description.* | @@ -30330,6 +30599,7 @@ Any object. | withGrantOptionInput | boolean \| cdktf.IResolvable | *No description.* | | arguments | cdktf.IResolvable \| ProcedureGrantArguments[] | *No description.* | | databaseName | string | *No description.* | +| enableMultipleGrants | boolean \| cdktf.IResolvable | *No description.* | | onFuture | boolean \| cdktf.IResolvable | *No description.* | | privilege | string | *No description.* | | procedureName | string | *No description.* | @@ -30483,6 +30753,16 @@ public readonly databaseNameInput: string; --- +##### `enableMultipleGrantsInput`Optional + +```typescript +public readonly enableMultipleGrantsInput: boolean | IResolvable; +``` + +- *Type:* boolean | cdktf.IResolvable + +--- + ##### `onFutureInput`Optional ```typescript @@ -30583,6 +30863,16 @@ public readonly databaseName: string; --- +##### `enableMultipleGrants`Required + +```typescript +public readonly enableMultipleGrants: boolean | IResolvable; +``` + +- *Type:* boolean | cdktf.IResolvable + +--- + ##### `onFuture`Required ```typescript @@ -31464,6 +31754,7 @@ Must be unique amongst siblings in the same scope | getStringAttribute | *No description.* | | getStringMapAttribute | *No description.* | | interpolationForAttribute | *No description.* | +| resetEnableMultipleGrants | *No description.* | | resetPrivilege | *No description.* | | resetRoles | *No description.* | | resetWithGrantOption | *No description.* | @@ -31654,6 +31945,12 @@ public interpolationForAttribute(terraformAttribute: string): IResolvable --- +##### `resetEnableMultipleGrants` + +```typescript +public resetEnableMultipleGrants(): void +``` + ##### `resetPrivilege` ```typescript @@ -31714,10 +32011,12 @@ Any object. | lifecycle | cdktf.TerraformResourceLifecycle | *No description.* | | provider | cdktf.TerraformProvider | *No description.* | | id | string | *No description.* | +| enableMultipleGrantsInput | boolean \| cdktf.IResolvable | *No description.* | | monitorNameInput | string | *No description.* | | privilegeInput | string | *No description.* | | rolesInput | string[] | *No description.* | | withGrantOptionInput | boolean \| cdktf.IResolvable | *No description.* | +| enableMultipleGrants | boolean \| cdktf.IResolvable | *No description.* | | monitorName | string | *No description.* | | privilege | string | *No description.* | | roles | string[] | *No description.* | @@ -31847,6 +32146,16 @@ public readonly id: string; --- +##### `enableMultipleGrantsInput`Optional + +```typescript +public readonly enableMultipleGrantsInput: boolean | IResolvable; +``` + +- *Type:* boolean | cdktf.IResolvable + +--- + ##### `monitorNameInput`Optional ```typescript @@ -31887,6 +32196,16 @@ public readonly withGrantOptionInput: boolean | IResolvable; --- +##### `enableMultipleGrants`Required + +```typescript +public readonly enableMultipleGrants: boolean | IResolvable; +``` + +- *Type:* boolean | cdktf.IResolvable + +--- + ##### `monitorName`Required ```typescript @@ -32525,6 +32844,7 @@ Must be unique amongst siblings in the same scope | getStringAttribute | *No description.* | | getStringMapAttribute | *No description.* | | interpolationForAttribute | *No description.* | +| resetEnableMultipleGrants | *No description.* | | resetRoles | *No description.* | | resetUsers | *No description.* | @@ -32714,6 +33034,12 @@ public interpolationForAttribute(terraformAttribute: string): IResolvable --- +##### `resetEnableMultipleGrants` + +```typescript +public resetEnableMultipleGrants(): void +``` + ##### `resetRoles` ```typescript @@ -32768,9 +33094,11 @@ Any object. | lifecycle | cdktf.TerraformResourceLifecycle | *No description.* | | provider | cdktf.TerraformProvider | *No description.* | | id | string | *No description.* | +| enableMultipleGrantsInput | boolean \| cdktf.IResolvable | *No description.* | | roleNameInput | string | *No description.* | | rolesInput | string[] | *No description.* | | usersInput | string[] | *No description.* | +| enableMultipleGrants | boolean \| cdktf.IResolvable | *No description.* | | roleName | string | *No description.* | | roles | string[] | *No description.* | | users | string[] | *No description.* | @@ -32899,6 +33227,16 @@ public readonly id: string; --- +##### `enableMultipleGrantsInput`Optional + +```typescript +public readonly enableMultipleGrantsInput: boolean | IResolvable; +``` + +- *Type:* boolean | cdktf.IResolvable + +--- + ##### `roleNameInput`Optional ```typescript @@ -32929,6 +33267,16 @@ public readonly usersInput: string[]; --- +##### `enableMultipleGrants`Required + +```typescript +public readonly enableMultipleGrants: boolean | IResolvable; +``` + +- *Type:* boolean | cdktf.IResolvable + +--- + ##### `roleName`Required ```typescript @@ -32977,6 +33325,515 @@ public readonly tfResourceType: string; --- +### RoleOwnershipGrant + +Represents a {@link https://www.terraform.io/docs/providers/snowflake/r/role_ownership_grant snowflake_role_ownership_grant}. + +#### Initializers + +```typescript +import { RoleOwnershipGrant } from '@cdktf/provider-snowflake' + +new RoleOwnershipGrant(scope: Construct, id: string, config: RoleOwnershipGrantConfig) +``` + +| **Name** | **Type** | **Description** | +| --- | --- | --- | +| scope | constructs.Construct | The scope in which to define this construct. | +| id | string | The scoped construct ID. | +| config | RoleOwnershipGrantConfig | *No description.* | + +--- + +##### `scope`Required + +- *Type:* constructs.Construct + +The scope in which to define this construct. + +--- + +##### `id`Required + +- *Type:* string + +The scoped construct ID. + +Must be unique amongst siblings in the same scope + +--- + +##### `config`Required + +- *Type:* RoleOwnershipGrantConfig + +--- + +#### Methods + +| **Name** | **Description** | +| --- | --- | +| toString | Returns a string representation of this construct. | +| addOverride | *No description.* | +| overrideLogicalId | Overrides the auto-generated logical ID with a specific ID. | +| resetOverrideLogicalId | Resets a previously passed logical Id to use the auto-generated logical id again. | +| toMetadata | *No description.* | +| toTerraform | Adds this resource to the terraform JSON output. | +| getAnyMapAttribute | *No description.* | +| getBooleanAttribute | *No description.* | +| getBooleanMapAttribute | *No description.* | +| getListAttribute | *No description.* | +| getNumberAttribute | *No description.* | +| getNumberListAttribute | *No description.* | +| getNumberMapAttribute | *No description.* | +| getStringAttribute | *No description.* | +| getStringMapAttribute | *No description.* | +| interpolationForAttribute | *No description.* | +| resetCurrentGrants | *No description.* | + +--- + +##### `toString` + +```typescript +public toString(): string +``` + +Returns a string representation of this construct. + +##### `addOverride` + +```typescript +public addOverride(path: string, value: any): void +``` + +###### `path`Required + +- *Type:* string + +--- + +###### `value`Required + +- *Type:* any + +--- + +##### `overrideLogicalId` + +```typescript +public overrideLogicalId(newLogicalId: string): void +``` + +Overrides the auto-generated logical ID with a specific ID. + +###### `newLogicalId`Required + +- *Type:* string + +The new logical ID to use for this stack element. + +--- + +##### `resetOverrideLogicalId` + +```typescript +public resetOverrideLogicalId(): void +``` + +Resets a previously passed logical Id to use the auto-generated logical id again. + +##### `toMetadata` + +```typescript +public toMetadata(): any +``` + +##### `toTerraform` + +```typescript +public toTerraform(): any +``` + +Adds this resource to the terraform JSON output. + +##### `getAnyMapAttribute` + +```typescript +public getAnyMapAttribute(terraformAttribute: string): {[ key: string ]: any} +``` + +###### `terraformAttribute`Required + +- *Type:* string + +--- + +##### `getBooleanAttribute` + +```typescript +public getBooleanAttribute(terraformAttribute: string): IResolvable +``` + +###### `terraformAttribute`Required + +- *Type:* string + +--- + +##### `getBooleanMapAttribute` + +```typescript +public getBooleanMapAttribute(terraformAttribute: string): {[ key: string ]: boolean} +``` + +###### `terraformAttribute`Required + +- *Type:* string + +--- + +##### `getListAttribute` + +```typescript +public getListAttribute(terraformAttribute: string): string[] +``` + +###### `terraformAttribute`Required + +- *Type:* string + +--- + +##### `getNumberAttribute` + +```typescript +public getNumberAttribute(terraformAttribute: string): number +``` + +###### `terraformAttribute`Required + +- *Type:* string + +--- + +##### `getNumberListAttribute` + +```typescript +public getNumberListAttribute(terraformAttribute: string): number[] +``` + +###### `terraformAttribute`Required + +- *Type:* string + +--- + +##### `getNumberMapAttribute` + +```typescript +public getNumberMapAttribute(terraformAttribute: string): {[ key: string ]: number} +``` + +###### `terraformAttribute`Required + +- *Type:* string + +--- + +##### `getStringAttribute` + +```typescript +public getStringAttribute(terraformAttribute: string): string +``` + +###### `terraformAttribute`Required + +- *Type:* string + +--- + +##### `getStringMapAttribute` + +```typescript +public getStringMapAttribute(terraformAttribute: string): {[ key: string ]: string} +``` + +###### `terraformAttribute`Required + +- *Type:* string + +--- + +##### `interpolationForAttribute` + +```typescript +public interpolationForAttribute(terraformAttribute: string): IResolvable +``` + +###### `terraformAttribute`Required + +- *Type:* string + +--- + +##### `resetCurrentGrants` + +```typescript +public resetCurrentGrants(): void +``` + +#### Static Functions + +| **Name** | **Description** | +| --- | --- | +| isConstruct | Checks if `x` is a construct. | + +--- + +##### ~~`isConstruct`~~ + +```typescript +import { RoleOwnershipGrant } from '@cdktf/provider-snowflake' + +RoleOwnershipGrant.isConstruct(x: any) +``` + +Checks if `x` is a construct. + +###### `x`Required + +- *Type:* any + +Any object. + +--- + +#### Properties + +| **Name** | **Type** | **Description** | +| --- | --- | --- | +| node | constructs.Node | The tree node. | +| cdktfStack | cdktf.TerraformStack | *No description.* | +| friendlyUniqueId | string | *No description.* | +| fqn | string | *No description.* | +| terraformMetaArguments | {[ key: string ]: any} | *No description.* | +| terraformResourceType | string | *No description.* | +| terraformGeneratorMetadata | cdktf.TerraformProviderGeneratorMetadata | *No description.* | +| count | number | *No description.* | +| dependsOn | string[] | *No description.* | +| lifecycle | cdktf.TerraformResourceLifecycle | *No description.* | +| provider | cdktf.TerraformProvider | *No description.* | +| id | string | *No description.* | +| currentGrantsInput | string | *No description.* | +| onRoleNameInput | string | *No description.* | +| toRoleNameInput | string | *No description.* | +| currentGrants | string | *No description.* | +| onRoleName | string | *No description.* | +| toRoleName | string | *No description.* | + +--- + +##### `node`Required + +```typescript +public readonly node: Node; +``` + +- *Type:* constructs.Node + +The tree node. + +--- + +##### `cdktfStack`Required + +```typescript +public readonly cdktfStack: TerraformStack; +``` + +- *Type:* cdktf.TerraformStack + +--- + +##### `friendlyUniqueId`Required + +```typescript +public readonly friendlyUniqueId: string; +``` + +- *Type:* string + +--- + +##### `fqn`Required + +```typescript +public readonly fqn: string; +``` + +- *Type:* string + +--- + +##### `terraformMetaArguments`Required + +```typescript +public readonly terraformMetaArguments: {[ key: string ]: any}; +``` + +- *Type:* {[ key: string ]: any} + +--- + +##### `terraformResourceType`Required + +```typescript +public readonly terraformResourceType: string; +``` + +- *Type:* string + +--- + +##### `terraformGeneratorMetadata`Optional + +```typescript +public readonly terraformGeneratorMetadata: TerraformProviderGeneratorMetadata; +``` + +- *Type:* cdktf.TerraformProviderGeneratorMetadata + +--- + +##### `count`Optional + +```typescript +public readonly count: number; +``` + +- *Type:* number + +--- + +##### `dependsOn`Optional + +```typescript +public readonly dependsOn: string[]; +``` + +- *Type:* string[] + +--- + +##### `lifecycle`Optional + +```typescript +public readonly lifecycle: TerraformResourceLifecycle; +``` + +- *Type:* cdktf.TerraformResourceLifecycle + +--- + +##### `provider`Optional + +```typescript +public readonly provider: TerraformProvider; +``` + +- *Type:* cdktf.TerraformProvider + +--- + +##### `id`Required + +```typescript +public readonly id: string; +``` + +- *Type:* string + +--- + +##### `currentGrantsInput`Optional + +```typescript +public readonly currentGrantsInput: string; +``` + +- *Type:* string + +--- + +##### `onRoleNameInput`Optional + +```typescript +public readonly onRoleNameInput: string; +``` + +- *Type:* string + +--- + +##### `toRoleNameInput`Optional + +```typescript +public readonly toRoleNameInput: string; +``` + +- *Type:* string + +--- + +##### `currentGrants`Required + +```typescript +public readonly currentGrants: string; +``` + +- *Type:* string + +--- + +##### `onRoleName`Required + +```typescript +public readonly onRoleName: string; +``` + +- *Type:* string + +--- + +##### `toRoleName`Required + +```typescript +public readonly toRoleName: string; +``` + +- *Type:* string + +--- + +#### Constants + +| **Name** | **Type** | **Description** | +| --- | --- | --- | +| tfResourceType | string | *No description.* | + +--- + +##### `tfResourceType`Required + +```typescript +public readonly tfResourceType: string; +``` + +- *Type:* string + +--- + ### RowAccessPolicy Represents a {@link https://www.terraform.io/docs/providers/snowflake/r/row_access_policy snowflake_row_access_policy}. @@ -33616,6 +34473,7 @@ Must be unique amongst siblings in the same scope | getStringAttribute | *No description.* | | getStringMapAttribute | *No description.* | | interpolationForAttribute | *No description.* | +| resetEnableMultipleGrants | *No description.* | | resetPrivilege | *No description.* | | resetRoles | *No description.* | | resetWithGrantOption | *No description.* | @@ -33806,6 +34664,12 @@ public interpolationForAttribute(terraformAttribute: string): IResolvable --- +##### `resetEnableMultipleGrants` + +```typescript +public resetEnableMultipleGrants(): void +``` + ##### `resetPrivilege` ```typescript @@ -33867,12 +34731,14 @@ Any object. | provider | cdktf.TerraformProvider | *No description.* | | id | string | *No description.* | | databaseNameInput | string | *No description.* | +| enableMultipleGrantsInput | boolean \| cdktf.IResolvable | *No description.* | | privilegeInput | string | *No description.* | | rolesInput | string[] | *No description.* | | rowAccessPolicyNameInput | string | *No description.* | | schemaNameInput | string | *No description.* | | withGrantOptionInput | boolean \| cdktf.IResolvable | *No description.* | | databaseName | string | *No description.* | +| enableMultipleGrants | boolean \| cdktf.IResolvable | *No description.* | | privilege | string | *No description.* | | roles | string[] | *No description.* | | rowAccessPolicyName | string | *No description.* | @@ -34013,6 +34879,16 @@ public readonly databaseNameInput: string; --- +##### `enableMultipleGrantsInput`Optional + +```typescript +public readonly enableMultipleGrantsInput: boolean | IResolvable; +``` + +- *Type:* boolean | cdktf.IResolvable + +--- + ##### `privilegeInput`Optional ```typescript @@ -34073,6 +34949,16 @@ public readonly databaseName: string; --- +##### `enableMultipleGrants`Required + +```typescript +public readonly enableMultipleGrants: boolean | IResolvable; +``` + +- *Type:* boolean | cdktf.IResolvable + +--- + ##### `privilege`Required ```typescript @@ -35710,6 +36596,7 @@ Must be unique amongst siblings in the same scope | getStringAttribute | *No description.* | | getStringMapAttribute | *No description.* | | interpolationForAttribute | *No description.* | +| resetEnableMultipleGrants | *No description.* | | resetOnFuture | *No description.* | | resetPrivilege | *No description.* | | resetRoles | *No description.* | @@ -35903,6 +36790,12 @@ public interpolationForAttribute(terraformAttribute: string): IResolvable --- +##### `resetEnableMultipleGrants` + +```typescript +public resetEnableMultipleGrants(): void +``` + ##### `resetOnFuture` ```typescript @@ -35982,6 +36875,7 @@ Any object. | provider | cdktf.TerraformProvider | *No description.* | | id | string | *No description.* | | databaseNameInput | string | *No description.* | +| enableMultipleGrantsInput | boolean \| cdktf.IResolvable | *No description.* | | onFutureInput | boolean \| cdktf.IResolvable | *No description.* | | privilegeInput | string | *No description.* | | rolesInput | string[] | *No description.* | @@ -35989,6 +36883,7 @@ Any object. | sharesInput | string[] | *No description.* | | withGrantOptionInput | boolean \| cdktf.IResolvable | *No description.* | | databaseName | string | *No description.* | +| enableMultipleGrants | boolean \| cdktf.IResolvable | *No description.* | | onFuture | boolean \| cdktf.IResolvable | *No description.* | | privilege | string | *No description.* | | roles | string[] | *No description.* | @@ -36130,6 +37025,16 @@ public readonly databaseNameInput: string; --- +##### `enableMultipleGrantsInput`Optional + +```typescript +public readonly enableMultipleGrantsInput: boolean | IResolvable; +``` + +- *Type:* boolean | cdktf.IResolvable + +--- + ##### `onFutureInput`Optional ```typescript @@ -36200,6 +37105,16 @@ public readonly databaseName: string; --- +##### `enableMultipleGrants`Required + +```typescript +public readonly enableMultipleGrants: boolean | IResolvable; +``` + +- *Type:* boolean | cdktf.IResolvable + +--- + ##### `onFuture`Required ```typescript @@ -37466,6 +38381,7 @@ Must be unique amongst siblings in the same scope | getStringAttribute | *No description.* | | getStringMapAttribute | *No description.* | | interpolationForAttribute | *No description.* | +| resetEnableMultipleGrants | *No description.* | | resetOnFuture | *No description.* | | resetPrivilege | *No description.* | | resetRoles | *No description.* | @@ -37658,6 +38574,12 @@ public interpolationForAttribute(terraformAttribute: string): IResolvable --- +##### `resetEnableMultipleGrants` + +```typescript +public resetEnableMultipleGrants(): void +``` + ##### `resetOnFuture` ```typescript @@ -37731,6 +38653,7 @@ Any object. | provider | cdktf.TerraformProvider | *No description.* | | id | string | *No description.* | | databaseNameInput | string | *No description.* | +| enableMultipleGrantsInput | boolean \| cdktf.IResolvable | *No description.* | | onFutureInput | boolean \| cdktf.IResolvable | *No description.* | | privilegeInput | string | *No description.* | | rolesInput | string[] | *No description.* | @@ -37738,6 +38661,7 @@ Any object. | sequenceNameInput | string | *No description.* | | withGrantOptionInput | boolean \| cdktf.IResolvable | *No description.* | | databaseName | string | *No description.* | +| enableMultipleGrants | boolean \| cdktf.IResolvable | *No description.* | | onFuture | boolean \| cdktf.IResolvable | *No description.* | | privilege | string | *No description.* | | roles | string[] | *No description.* | @@ -37879,6 +38803,16 @@ public readonly databaseNameInput: string; --- +##### `enableMultipleGrantsInput`Optional + +```typescript +public readonly enableMultipleGrantsInput: boolean | IResolvable; +``` + +- *Type:* boolean | cdktf.IResolvable + +--- + ##### `onFutureInput`Optional ```typescript @@ -37949,6 +38883,16 @@ public readonly databaseName: string; --- +##### `enableMultipleGrants`Required + +```typescript +public readonly enableMultipleGrants: boolean | IResolvable; +``` + +- *Type:* boolean | cdktf.IResolvable + +--- + ##### `onFuture`Required ```typescript @@ -40140,6 +41084,7 @@ Must be unique amongst siblings in the same scope | getStringAttribute | *No description.* | | getStringMapAttribute | *No description.* | | interpolationForAttribute | *No description.* | +| resetEnableMultipleGrants | *No description.* | | resetOnFuture | *No description.* | | resetPrivilege | *No description.* | | resetRoles | *No description.* | @@ -40332,6 +41277,12 @@ public interpolationForAttribute(terraformAttribute: string): IResolvable --- +##### `resetEnableMultipleGrants` + +```typescript +public resetEnableMultipleGrants(): void +``` + ##### `resetOnFuture` ```typescript @@ -40405,6 +41356,7 @@ Any object. | provider | cdktf.TerraformProvider | *No description.* | | id | string | *No description.* | | databaseNameInput | string | *No description.* | +| enableMultipleGrantsInput | boolean \| cdktf.IResolvable | *No description.* | | onFutureInput | boolean \| cdktf.IResolvable | *No description.* | | privilegeInput | string | *No description.* | | rolesInput | string[] | *No description.* | @@ -40412,6 +41364,7 @@ Any object. | stageNameInput | string | *No description.* | | withGrantOptionInput | boolean \| cdktf.IResolvable | *No description.* | | databaseName | string | *No description.* | +| enableMultipleGrants | boolean \| cdktf.IResolvable | *No description.* | | onFuture | boolean \| cdktf.IResolvable | *No description.* | | privilege | string | *No description.* | | roles | string[] | *No description.* | @@ -40553,6 +41506,16 @@ public readonly databaseNameInput: string; --- +##### `enableMultipleGrantsInput`Optional + +```typescript +public readonly enableMultipleGrantsInput: boolean | IResolvable; +``` + +- *Type:* boolean | cdktf.IResolvable + +--- + ##### `onFutureInput`Optional ```typescript @@ -40623,6 +41586,16 @@ public readonly databaseName: string; --- +##### `enableMultipleGrants`Required + +```typescript +public readonly enableMultipleGrants: boolean | IResolvable; +``` + +- *Type:* boolean | cdktf.IResolvable + +--- + ##### `onFuture`Required ```typescript @@ -42194,6 +43167,7 @@ Must be unique amongst siblings in the same scope | getStringAttribute | *No description.* | | getStringMapAttribute | *No description.* | | interpolationForAttribute | *No description.* | +| resetEnableMultipleGrants | *No description.* | | resetOnFuture | *No description.* | | resetPrivilege | *No description.* | | resetRoles | *No description.* | @@ -42386,6 +43360,12 @@ public interpolationForAttribute(terraformAttribute: string): IResolvable --- +##### `resetEnableMultipleGrants` + +```typescript +public resetEnableMultipleGrants(): void +``` + ##### `resetOnFuture` ```typescript @@ -42459,6 +43439,7 @@ Any object. | provider | cdktf.TerraformProvider | *No description.* | | id | string | *No description.* | | databaseNameInput | string | *No description.* | +| enableMultipleGrantsInput | boolean \| cdktf.IResolvable | *No description.* | | onFutureInput | boolean \| cdktf.IResolvable | *No description.* | | privilegeInput | string | *No description.* | | rolesInput | string[] | *No description.* | @@ -42466,6 +43447,7 @@ Any object. | streamNameInput | string | *No description.* | | withGrantOptionInput | boolean \| cdktf.IResolvable | *No description.* | | databaseName | string | *No description.* | +| enableMultipleGrants | boolean \| cdktf.IResolvable | *No description.* | | onFuture | boolean \| cdktf.IResolvable | *No description.* | | privilege | string | *No description.* | | roles | string[] | *No description.* | @@ -42607,6 +43589,16 @@ public readonly databaseNameInput: string; --- +##### `enableMultipleGrantsInput`Optional + +```typescript +public readonly enableMultipleGrantsInput: boolean | IResolvable; +``` + +- *Type:* boolean | cdktf.IResolvable + +--- + ##### `onFutureInput`Optional ```typescript @@ -42677,6 +43669,16 @@ public readonly databaseName: string; --- +##### `enableMultipleGrants`Required + +```typescript +public readonly enableMultipleGrants: boolean | IResolvable; +``` + +- *Type:* boolean | cdktf.IResolvable + +--- + ##### `onFuture`Required ```typescript @@ -43541,6 +44543,7 @@ Must be unique amongst siblings in the same scope | getStringAttribute | *No description.* | | getStringMapAttribute | *No description.* | | interpolationForAttribute | *No description.* | +| resetEnableMultipleGrants | *No description.* | | resetOnFuture | *No description.* | | resetPrivilege | *No description.* | | resetRoles | *No description.* | @@ -43735,6 +44738,12 @@ public interpolationForAttribute(terraformAttribute: string): IResolvable --- +##### `resetEnableMultipleGrants` + +```typescript +public resetEnableMultipleGrants(): void +``` + ##### `resetOnFuture` ```typescript @@ -43820,6 +44829,7 @@ Any object. | provider | cdktf.TerraformProvider | *No description.* | | id | string | *No description.* | | databaseNameInput | string | *No description.* | +| enableMultipleGrantsInput | boolean \| cdktf.IResolvable | *No description.* | | onFutureInput | boolean \| cdktf.IResolvable | *No description.* | | privilegeInput | string | *No description.* | | rolesInput | string[] | *No description.* | @@ -43828,6 +44838,7 @@ Any object. | tableNameInput | string | *No description.* | | withGrantOptionInput | boolean \| cdktf.IResolvable | *No description.* | | databaseName | string | *No description.* | +| enableMultipleGrants | boolean \| cdktf.IResolvable | *No description.* | | onFuture | boolean \| cdktf.IResolvable | *No description.* | | privilege | string | *No description.* | | roles | string[] | *No description.* | @@ -43970,6 +44981,16 @@ public readonly databaseNameInput: string; --- +##### `enableMultipleGrantsInput`Optional + +```typescript +public readonly enableMultipleGrantsInput: boolean | IResolvable; +``` + +- *Type:* boolean | cdktf.IResolvable + +--- + ##### `onFutureInput`Optional ```typescript @@ -44050,6 +45071,16 @@ public readonly databaseName: string; --- +##### `enableMultipleGrants`Required + +```typescript +public readonly enableMultipleGrants: boolean | IResolvable; +``` + +- *Type:* boolean | cdktf.IResolvable + +--- + ##### `onFuture`Required ```typescript @@ -45547,6 +46578,7 @@ Must be unique amongst siblings in the same scope | getStringAttribute | *No description.* | | getStringMapAttribute | *No description.* | | interpolationForAttribute | *No description.* | +| resetEnableMultipleGrants | *No description.* | | resetOnFuture | *No description.* | | resetPrivilege | *No description.* | | resetRoles | *No description.* | @@ -45739,6 +46771,12 @@ public interpolationForAttribute(terraformAttribute: string): IResolvable --- +##### `resetEnableMultipleGrants` + +```typescript +public resetEnableMultipleGrants(): void +``` + ##### `resetOnFuture` ```typescript @@ -45812,6 +46850,7 @@ Any object. | provider | cdktf.TerraformProvider | *No description.* | | id | string | *No description.* | | databaseNameInput | string | *No description.* | +| enableMultipleGrantsInput | boolean \| cdktf.IResolvable | *No description.* | | onFutureInput | boolean \| cdktf.IResolvable | *No description.* | | privilegeInput | string | *No description.* | | rolesInput | string[] | *No description.* | @@ -45819,6 +46858,7 @@ Any object. | taskNameInput | string | *No description.* | | withGrantOptionInput | boolean \| cdktf.IResolvable | *No description.* | | databaseName | string | *No description.* | +| enableMultipleGrants | boolean \| cdktf.IResolvable | *No description.* | | onFuture | boolean \| cdktf.IResolvable | *No description.* | | privilege | string | *No description.* | | roles | string[] | *No description.* | @@ -45960,6 +47000,16 @@ public readonly databaseNameInput: string; --- +##### `enableMultipleGrantsInput`Optional + +```typescript +public readonly enableMultipleGrantsInput: boolean | IResolvable; +``` + +- *Type:* boolean | cdktf.IResolvable + +--- + ##### `onFutureInput`Optional ```typescript @@ -46030,6 +47080,16 @@ public readonly databaseName: string; --- +##### `enableMultipleGrants`Required + +```typescript +public readonly enableMultipleGrants: boolean | IResolvable; +``` + +- *Type:* boolean | cdktf.IResolvable + +--- + ##### `onFuture`Required ```typescript @@ -48232,6 +49292,7 @@ Must be unique amongst siblings in the same scope | getStringAttribute | *No description.* | | getStringMapAttribute | *No description.* | | interpolationForAttribute | *No description.* | +| resetEnableMultipleGrants | *No description.* | | resetOnFuture | *No description.* | | resetPrivilege | *No description.* | | resetRoles | *No description.* | @@ -48426,6 +49487,12 @@ public interpolationForAttribute(terraformAttribute: string): IResolvable --- +##### `resetEnableMultipleGrants` + +```typescript +public resetEnableMultipleGrants(): void +``` + ##### `resetOnFuture` ```typescript @@ -48511,6 +49578,7 @@ Any object. | provider | cdktf.TerraformProvider | *No description.* | | id | string | *No description.* | | databaseNameInput | string | *No description.* | +| enableMultipleGrantsInput | boolean \| cdktf.IResolvable | *No description.* | | onFutureInput | boolean \| cdktf.IResolvable | *No description.* | | privilegeInput | string | *No description.* | | rolesInput | string[] | *No description.* | @@ -48519,6 +49587,7 @@ Any object. | viewNameInput | string | *No description.* | | withGrantOptionInput | boolean \| cdktf.IResolvable | *No description.* | | databaseName | string | *No description.* | +| enableMultipleGrants | boolean \| cdktf.IResolvable | *No description.* | | onFuture | boolean \| cdktf.IResolvable | *No description.* | | privilege | string | *No description.* | | roles | string[] | *No description.* | @@ -48661,6 +49730,16 @@ public readonly databaseNameInput: string; --- +##### `enableMultipleGrantsInput`Optional + +```typescript +public readonly enableMultipleGrantsInput: boolean | IResolvable; +``` + +- *Type:* boolean | cdktf.IResolvable + +--- + ##### `onFutureInput`Optional ```typescript @@ -48741,6 +49820,16 @@ public readonly databaseName: string; --- +##### `enableMultipleGrants`Required + +```typescript +public readonly enableMultipleGrants: boolean | IResolvable; +``` + +- *Type:* boolean | cdktf.IResolvable + +--- + ##### `onFuture`Required ```typescript @@ -49757,6 +50846,7 @@ Must be unique amongst siblings in the same scope | getStringAttribute | *No description.* | | getStringMapAttribute | *No description.* | | interpolationForAttribute | *No description.* | +| resetEnableMultipleGrants | *No description.* | | resetPrivilege | *No description.* | | resetRoles | *No description.* | | resetWithGrantOption | *No description.* | @@ -49947,6 +51037,12 @@ public interpolationForAttribute(terraformAttribute: string): IResolvable --- +##### `resetEnableMultipleGrants` + +```typescript +public resetEnableMultipleGrants(): void +``` + ##### `resetPrivilege` ```typescript @@ -50007,10 +51103,12 @@ Any object. | lifecycle | cdktf.TerraformResourceLifecycle | *No description.* | | provider | cdktf.TerraformProvider | *No description.* | | id | string | *No description.* | +| enableMultipleGrantsInput | boolean \| cdktf.IResolvable | *No description.* | | privilegeInput | string | *No description.* | | rolesInput | string[] | *No description.* | | warehouseNameInput | string | *No description.* | | withGrantOptionInput | boolean \| cdktf.IResolvable | *No description.* | +| enableMultipleGrants | boolean \| cdktf.IResolvable | *No description.* | | privilege | string | *No description.* | | roles | string[] | *No description.* | | warehouseName | string | *No description.* | @@ -50140,6 +51238,16 @@ public readonly id: string; --- +##### `enableMultipleGrantsInput`Optional + +```typescript +public readonly enableMultipleGrantsInput: boolean | IResolvable; +``` + +- *Type:* boolean | cdktf.IResolvable + +--- + ##### `privilegeInput`Optional ```typescript @@ -50180,6 +51288,16 @@ public readonly withGrantOptionInput: boolean | IResolvable; --- +##### `enableMultipleGrants`Required + +```typescript +public readonly enableMultipleGrants: boolean | IResolvable; +``` + +- *Type:* boolean | cdktf.IResolvable + +--- + ##### `privilege`Required ```typescript @@ -50258,6 +51376,7 @@ const accountGrantConfig: AccountGrantConfig = { ... } | dependsOn | cdktf.ITerraformDependable[] | *No description.* | | lifecycle | cdktf.TerraformResourceLifecycle | *No description.* | | provider | cdktf.TerraformProvider | *No description.* | +| enableMultipleGrants | boolean \| cdktf.IResolvable | When this is set to true, multiple grants of the same type can be created. | | privilege | string | The privilege to grant on the account. | | roles | string[] | Grants privilege to these roles. | | withGrantOption | boolean \| cdktf.IResolvable | When this is set to true, allows the recipient role to grant the privileges to other roles. | @@ -50304,6 +51423,20 @@ public readonly provider: TerraformProvider; --- +##### `enableMultipleGrants`Optional + +```typescript +public readonly enableMultipleGrants: boolean | IResolvable; +``` + +- *Type:* boolean | cdktf.IResolvable + +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} + +--- + ##### `privilege`Optional ```typescript @@ -50706,6 +51839,7 @@ const databaseGrantConfig: DatabaseGrantConfig = { ... } | lifecycle | cdktf.TerraformResourceLifecycle | *No description.* | | provider | cdktf.TerraformProvider | *No description.* | | databaseName | string | The name of the database on which to grant privileges. | +| enableMultipleGrants | boolean \| cdktf.IResolvable | When this is set to true, multiple grants of the same type can be created. | | privilege | string | The privilege to grant on the database. | | roles | string[] | Grants privilege to these roles. | | shares | string[] | Grants privilege to these shares. | @@ -50767,6 +51901,20 @@ Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/snowf --- +##### `enableMultipleGrants`Optional + +```typescript +public readonly enableMultipleGrants: boolean | IResolvable; +``` + +- *Type:* boolean | cdktf.IResolvable + +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} + +--- + ##### `privilege`Optional ```typescript @@ -54015,6 +55163,7 @@ const externalTableGrantConfig: ExternalTableGrantConfig = { ... } | provider | cdktf.TerraformProvider | *No description.* | | databaseName | string | The name of the database containing the current or future external tables on which to grant privileges. | | schemaName | string | The name of the schema containing the current or future external tables on which to grant privileges. | +| enableMultipleGrants | boolean \| cdktf.IResolvable | When this is set to true, multiple grants of the same type can be created. | | externalTableName | string | The name of the external table on which to grant privileges immediately (only valid if on_future is false). | | onFuture | boolean \| cdktf.IResolvable | When this is set to true and a schema_name is provided, apply this grant on all future external tables in the given schema. | | privilege | string | The privilege to grant on the current or future external table. | @@ -54092,6 +55241,20 @@ Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/snowf --- +##### `enableMultipleGrants`Optional + +```typescript +public readonly enableMultipleGrants: boolean | IResolvable; +``` + +- *Type:* boolean | cdktf.IResolvable + +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} + +--- + ##### `externalTableName`Optional ```typescript @@ -54874,6 +56037,7 @@ const fileFormatGrantConfig: FileFormatGrantConfig = { ... } | provider | cdktf.TerraformProvider | *No description.* | | databaseName | string | The name of the database containing the current or future file formats on which to grant privileges. | | schemaName | string | The name of the schema containing the current or future file formats on which to grant privileges. | +| enableMultipleGrants | boolean \| cdktf.IResolvable | When this is set to true, multiple grants of the same type can be created. | | fileFormatName | string | The name of the file format on which to grant privileges immediately (only valid if on_future is false). | | onFuture | boolean \| cdktf.IResolvable | When this is set to true and a schema_name is provided, apply this grant on all future file formats in the given schema. | | privilege | string | The privilege to grant on the current or future file format. | @@ -54950,6 +56114,20 @@ Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/snowf --- +##### `enableMultipleGrants`Optional + +```typescript +public readonly enableMultipleGrants: boolean | IResolvable; +``` + +- *Type:* boolean | cdktf.IResolvable + +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} + +--- + ##### `fileFormatName`Optional ```typescript @@ -55391,6 +56569,7 @@ const functionGrantConfig: FunctionGrantConfig = { ... } | databaseName | string | The name of the database containing the current or future functions on which to grant privileges. | | schemaName | string | The name of the schema containing the current or future functions on which to grant privileges. | | arguments | cdktf.IResolvable \| FunctionGrantArguments[] | arguments block. | +| enableMultipleGrants | boolean \| cdktf.IResolvable | When this is set to true, multiple grants of the same type can be created. | | functionName | string | The name of the function on which to grant privileges immediately (only valid if on_future is false). | | onFuture | boolean \| cdktf.IResolvable | When this is set to true and a schema_name is provided, apply this grant on all future functions in the given schema. | | privilege | string | The privilege to grant on the current or future function. Must be one of `USAGE` or `OWNERSHIP`. | @@ -55483,6 +56662,20 @@ Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/snowf --- +##### `enableMultipleGrants`Optional + +```typescript +public readonly enableMultipleGrants: boolean | IResolvable; +``` + +- *Type:* boolean | cdktf.IResolvable + +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} + +--- + ##### `functionName`Optional ```typescript @@ -55600,6 +56793,7 @@ const integrationGrantConfig: IntegrationGrantConfig = { ... } | lifecycle | cdktf.TerraformResourceLifecycle | *No description.* | | provider | cdktf.TerraformProvider | *No description.* | | integrationName | string | Identifier for the integration; must be unique for your account. | +| enableMultipleGrants | boolean \| cdktf.IResolvable | When this is set to true, multiple grants of the same type can be created. | | privilege | string | The privilege to grant on the integration. | | roles | string[] | Grants privilege to these roles. | | withGrantOption | boolean \| cdktf.IResolvable | When this is set to true, allows the recipient role to grant the privileges to other roles. | @@ -55660,6 +56854,20 @@ Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/snowf --- +##### `enableMultipleGrants`Optional + +```typescript +public readonly enableMultipleGrants: boolean | IResolvable; +``` + +- *Type:* boolean | cdktf.IResolvable + +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} + +--- + ##### `privilege`Optional ```typescript @@ -56025,6 +57233,7 @@ const maskingPolicyGrantConfig: MaskingPolicyGrantConfig = { ... } | databaseName | string | The name of the database containing the masking policy on which to grant privileges. | | maskingPolicyName | string | The name of the masking policy on which to grant privileges immediately. | | schemaName | string | The name of the schema containing the masking policy on which to grant privileges. | +| enableMultipleGrants | boolean \| cdktf.IResolvable | When this is set to true, multiple grants of the same type can be created. | | privilege | string | The privilege to grant on the masking policy. | | roles | string[] | Grants privilege to these roles. | | withGrantOption | boolean \| cdktf.IResolvable | When this is set to true, allows the recipient role to grant the privileges to other roles. | @@ -56113,6 +57322,20 @@ Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/snowf --- +##### `enableMultipleGrants`Optional + +```typescript +public readonly enableMultipleGrants: boolean | IResolvable; +``` + +- *Type:* boolean | cdktf.IResolvable + +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} + +--- + ##### `privilege`Optional ```typescript @@ -56370,6 +57593,7 @@ const materializedViewGrantConfig: MaterializedViewGrantConfig = { ... } | lifecycle | cdktf.TerraformResourceLifecycle | *No description.* | | provider | cdktf.TerraformProvider | *No description.* | | databaseName | string | The name of the database containing the current or future materialized views on which to grant privileges. | +| enableMultipleGrants | boolean \| cdktf.IResolvable | When this is set to true, multiple grants of the same type can be created. | | materializedViewName | string | The name of the materialized view on which to grant privileges immediately (only valid if on_future is false). | | onFuture | boolean \| cdktf.IResolvable | When this is set to true and a schema_name is provided, apply this grant on all future materialized views in the given schema. | | privilege | string | The privilege to grant on the current or future materialized view view. | @@ -56434,6 +57658,20 @@ Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/snowf --- +##### `enableMultipleGrants`Optional + +```typescript +public readonly enableMultipleGrants: boolean | IResolvable; +``` + +- *Type:* boolean | cdktf.IResolvable + +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/materialized_view_grant#enable_multiple_grants MaterializedViewGrant#enable_multiple_grants} + +--- + ##### `materializedViewName`Optional ```typescript @@ -57485,6 +58723,7 @@ const pipeGrantConfig: PipeGrantConfig = { ... } | provider | cdktf.TerraformProvider | *No description.* | | databaseName | string | The name of the database containing the current or future pipes on which to grant privileges. | | schemaName | string | The name of the schema containing the current or future pipes on which to grant privileges. | +| enableMultipleGrants | boolean \| cdktf.IResolvable | When this is set to true, multiple grants of the same type can be created. | | onFuture | boolean \| cdktf.IResolvable | When this is set to true and a schema_name is provided, apply this grant on all future pipes in the given schema. | | pipeName | string | The name of the pipe on which to grant privileges immediately (only valid if on_future is false). | | privilege | string | The privilege to grant on the current or future pipe. | @@ -57561,6 +58800,20 @@ Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/snowf --- +##### `enableMultipleGrants`Optional + +```typescript +public readonly enableMultipleGrants: boolean | IResolvable; +``` + +- *Type:* boolean | cdktf.IResolvable + +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/pipe_grant#enable_multiple_grants PipeGrant#enable_multiple_grants} + +--- + ##### `onFuture`Optional ```typescript @@ -57957,6 +59210,7 @@ const procedureGrantConfig: ProcedureGrantConfig = { ... } | databaseName | string | The name of the database containing the current or future procedures on which to grant privileges. | | schemaName | string | The name of the schema containing the current or future procedures on which to grant privileges. | | arguments | cdktf.IResolvable \| ProcedureGrantArguments[] | arguments block. | +| enableMultipleGrants | boolean \| cdktf.IResolvable | When this is set to true, multiple grants of the same type can be created. | | onFuture | boolean \| cdktf.IResolvable | When this is set to true and a schema_name is provided, apply this grant on all future procedures in the given schema. | | privilege | string | The privilege to grant on the current or future procedure. | | procedureName | string | The name of the procedure on which to grant privileges immediately (only valid if on_future is false). | @@ -58049,6 +59303,20 @@ Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/snowf --- +##### `enableMultipleGrants`Optional + +```typescript +public readonly enableMultipleGrants: boolean | IResolvable; +``` + +- *Type:* boolean | cdktf.IResolvable + +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/procedure_grant#enable_multiple_grants ProcedureGrant#enable_multiple_grants} + +--- + ##### `onFuture`Optional ```typescript @@ -58377,6 +59645,7 @@ const resourceMonitorGrantConfig: ResourceMonitorGrantConfig = { ... } | lifecycle | cdktf.TerraformResourceLifecycle | *No description.* | | provider | cdktf.TerraformProvider | *No description.* | | monitorName | string | Identifier for the resource monitor; must be unique for your account. | +| enableMultipleGrants | boolean \| cdktf.IResolvable | When this is set to true, multiple grants of the same type can be created. | | privilege | string | The privilege to grant on the resource monitor. | | roles | string[] | Grants privilege to these roles. | | withGrantOption | boolean \| cdktf.IResolvable | When this is set to true, allows the recipient role to grant the privileges to other roles. | @@ -58437,6 +59706,20 @@ Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/snowf --- +##### `enableMultipleGrants`Optional + +```typescript +public readonly enableMultipleGrants: boolean | IResolvable; +``` + +- *Type:* boolean | cdktf.IResolvable + +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/resource_monitor_grant#enable_multiple_grants ResourceMonitorGrant#enable_multiple_grants} + +--- + ##### `privilege`Optional ```typescript @@ -58600,6 +59883,7 @@ const roleGrantsConfig: RoleGrantsConfig = { ... } | lifecycle | cdktf.TerraformResourceLifecycle | *No description.* | | provider | cdktf.TerraformProvider | *No description.* | | roleName | string | The name of the role we are granting. | +| enableMultipleGrants | boolean \| cdktf.IResolvable | When this is set to true, multiple grants of the same type can be created. | | roles | string[] | Grants role to this specified role. | | users | string[] | Grants role to this specified user. | @@ -58659,6 +59943,20 @@ Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/snowf --- +##### `enableMultipleGrants`Optional + +```typescript +public readonly enableMultipleGrants: boolean | IResolvable; +``` + +- *Type:* boolean | cdktf.IResolvable + +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/role_grants#enable_multiple_grants RoleGrants#enable_multiple_grants} + +--- + ##### `roles`Optional ```typescript @@ -58687,6 +59985,112 @@ Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/snowf --- +### RoleOwnershipGrantConfig + +#### Initializer + +```typescript +import { RoleOwnershipGrantConfig } from '@cdktf/provider-snowflake' + +const roleOwnershipGrantConfig: RoleOwnershipGrantConfig = { ... } +``` + +#### Properties + +| **Name** | **Type** | **Description** | +| --- | --- | --- | +| count | number | *No description.* | +| dependsOn | cdktf.ITerraformDependable[] | *No description.* | +| lifecycle | cdktf.TerraformResourceLifecycle | *No description.* | +| provider | cdktf.TerraformProvider | *No description.* | +| onRoleName | string | The name of the role ownership is granted on. | +| toRoleName | string | The name of the role to grant ownership. | +| currentGrants | string | Specifies whether to remove or transfer all existing outbound privileges on the object when ownership is transferred to a new role. | + +--- + +##### `count`Optional + +```typescript +public readonly count: number; +``` + +- *Type:* number + +--- + +##### `dependsOn`Optional + +```typescript +public readonly dependsOn: ITerraformDependable[]; +``` + +- *Type:* cdktf.ITerraformDependable[] + +--- + +##### `lifecycle`Optional + +```typescript +public readonly lifecycle: TerraformResourceLifecycle; +``` + +- *Type:* cdktf.TerraformResourceLifecycle + +--- + +##### `provider`Optional + +```typescript +public readonly provider: TerraformProvider; +``` + +- *Type:* cdktf.TerraformProvider + +--- + +##### `onRoleName`Required + +```typescript +public readonly onRoleName: string; +``` + +- *Type:* string + +The name of the role ownership is granted on. + +Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/snowflake/r/role_ownership_grant#on_role_name RoleOwnershipGrant#on_role_name} + +--- + +##### `toRoleName`Required + +```typescript +public readonly toRoleName: string; +``` + +- *Type:* string + +The name of the role to grant ownership. + +Please ensure that the role that terraform is using is granted access. Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/snowflake/r/role_ownership_grant#to_role_name RoleOwnershipGrant#to_role_name} + +--- + +##### `currentGrants`Optional + +```typescript +public readonly currentGrants: string; +``` + +- *Type:* string + +Specifies whether to remove or transfer all existing outbound privileges on the object when ownership is transferred to a new role. + +Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/snowflake/r/role_ownership_grant#current_grants RoleOwnershipGrant#current_grants} + +--- + ### RoleTag #### Initializer @@ -58936,6 +60340,7 @@ const rowAccessPolicyGrantConfig: RowAccessPolicyGrantConfig = { ... } | databaseName | string | The name of the database containing the row access policy on which to grant privileges. | | rowAccessPolicyName | string | The name of the row access policy on which to grant privileges immediately. | | schemaName | string | The name of the schema containing the row access policy on which to grant privileges. | +| enableMultipleGrants | boolean \| cdktf.IResolvable | When this is set to true, multiple grants of the same type can be created. | | privilege | string | The privilege to grant on the row access policy. | | roles | string[] | Grants privilege to these roles. | | withGrantOption | boolean \| cdktf.IResolvable | When this is set to true, allows the recipient role to grant the privileges to other roles. | @@ -59024,6 +60429,20 @@ Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/snowf --- +##### `enableMultipleGrants`Optional + +```typescript +public readonly enableMultipleGrants: boolean | IResolvable; +``` + +- *Type:* boolean | cdktf.IResolvable + +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/row_access_policy_grant#enable_multiple_grants RowAccessPolicyGrant#enable_multiple_grants} + +--- + ##### `privilege`Optional ```typescript @@ -59537,6 +60956,7 @@ const schemaGrantConfig: SchemaGrantConfig = { ... } | lifecycle | cdktf.TerraformResourceLifecycle | *No description.* | | provider | cdktf.TerraformProvider | *No description.* | | databaseName | string | The name of the database containing the schema on which to grant privileges. | +| enableMultipleGrants | boolean \| cdktf.IResolvable | When this is set to true, multiple grants of the same type can be created. | | onFuture | boolean \| cdktf.IResolvable | When this is set to true, apply this grant on all future schemas in the given database. | | privilege | string | The privilege to grant on the current or future schema. | | roles | string[] | Grants privilege to these roles. | @@ -59600,6 +61020,20 @@ Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/snowf --- +##### `enableMultipleGrants`Optional + +```typescript +public readonly enableMultipleGrants: boolean | IResolvable; +``` + +- *Type:* boolean | cdktf.IResolvable + +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/schema_grant#enable_multiple_grants SchemaGrant#enable_multiple_grants} + +--- + ##### `onFuture`Optional ```typescript @@ -60038,6 +61472,7 @@ const sequenceGrantConfig: SequenceGrantConfig = { ... } | provider | cdktf.TerraformProvider | *No description.* | | databaseName | string | The name of the database containing the current or future sequences on which to grant privileges. | | schemaName | string | The name of the schema containing the current or future sequences on which to grant privileges. | +| enableMultipleGrants | boolean \| cdktf.IResolvable | When this is set to true, multiple grants of the same type can be created. | | onFuture | boolean \| cdktf.IResolvable | When this is set to true and a schema_name is provided, apply this grant on all future sequences in the given schema. | | privilege | string | The privilege to grant on the current or future sequence. | | roles | string[] | Grants privilege to these roles. | @@ -60114,6 +61549,20 @@ Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/snowf --- +##### `enableMultipleGrants`Optional + +```typescript +public readonly enableMultipleGrants: boolean | IResolvable; +``` + +- *Type:* boolean | cdktf.IResolvable + +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/sequence_grant#enable_multiple_grants SequenceGrant#enable_multiple_grants} + +--- + ##### `onFuture`Optional ```typescript @@ -60806,6 +62255,7 @@ const stageGrantConfig: StageGrantConfig = { ... } | provider | cdktf.TerraformProvider | *No description.* | | databaseName | string | The name of the database containing the current stage on which to grant privileges. | | schemaName | string | The name of the schema containing the current stage on which to grant privileges. | +| enableMultipleGrants | boolean \| cdktf.IResolvable | When this is set to true, multiple grants of the same type can be created. | | onFuture | boolean \| cdktf.IResolvable | When this is set to true and a schema_name is provided, apply this grant on all future stages in the given schema. | | privilege | string | The privilege to grant on the stage. | | roles | string[] | Grants privilege to these roles. | @@ -60882,6 +62332,20 @@ Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/snowf --- +##### `enableMultipleGrants`Optional + +```typescript +public readonly enableMultipleGrants: boolean | IResolvable; +``` + +- *Type:* boolean | cdktf.IResolvable + +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/stage_grant#enable_multiple_grants StageGrant#enable_multiple_grants} + +--- + ##### `onFuture`Optional ```typescript @@ -61427,6 +62891,7 @@ const streamGrantConfig: StreamGrantConfig = { ... } | provider | cdktf.TerraformProvider | *No description.* | | databaseName | string | The name of the database containing the current or future streams on which to grant privileges. | | schemaName | string | The name of the schema containing the current or future streams on which to grant privileges. | +| enableMultipleGrants | boolean \| cdktf.IResolvable | When this is set to true, multiple grants of the same type can be created. | | onFuture | boolean \| cdktf.IResolvable | When this is set to true and a schema_name is provided, apply this grant on all future streams in the given schema. | | privilege | string | The privilege to grant on the current or future stream. | | roles | string[] | Grants privilege to these roles. | @@ -61503,6 +62968,20 @@ Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/snowf --- +##### `enableMultipleGrants`Optional + +```typescript +public readonly enableMultipleGrants: boolean | IResolvable; +``` + +- *Type:* boolean | cdktf.IResolvable + +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/stream_grant#enable_multiple_grants StreamGrant#enable_multiple_grants} + +--- + ##### `onFuture`Optional ```typescript @@ -62019,6 +63498,7 @@ const tableGrantConfig: TableGrantConfig = { ... } | lifecycle | cdktf.TerraformResourceLifecycle | *No description.* | | provider | cdktf.TerraformProvider | *No description.* | | databaseName | string | The name of the database containing the current or future tables on which to grant privileges. | +| enableMultipleGrants | boolean \| cdktf.IResolvable | When this is set to true, multiple grants of the same type can be created. | | onFuture | boolean \| cdktf.IResolvable | When this is set to true and a schema_name is provided, apply this grant on all future tables in the given schema. | | privilege | string | The privilege to grant on the current or future table. | | roles | string[] | Grants privilege to these roles. | @@ -62083,6 +63563,20 @@ Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/snowf --- +##### `enableMultipleGrants`Optional + +```typescript +public readonly enableMultipleGrants: boolean | IResolvable; +``` + +- *Type:* boolean | cdktf.IResolvable + +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/table_grant#enable_multiple_grants TableGrant#enable_multiple_grants} + +--- + ##### `onFuture`Optional ```typescript @@ -62717,6 +64211,7 @@ const taskGrantConfig: TaskGrantConfig = { ... } | provider | cdktf.TerraformProvider | *No description.* | | databaseName | string | The name of the database containing the current or future tasks on which to grant privileges. | | schemaName | string | The name of the schema containing the current or future tasks on which to grant privileges. | +| enableMultipleGrants | boolean \| cdktf.IResolvable | When this is set to true, multiple grants of the same type can be created. | | onFuture | boolean \| cdktf.IResolvable | When this is set to true and a schema_name is provided, apply this grant on all future tasks in the given schema. | | privilege | string | The privilege to grant on the current or future task. | | roles | string[] | Grants privilege to these roles. | @@ -62793,6 +64288,20 @@ Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/snowf --- +##### `enableMultipleGrants`Optional + +```typescript +public readonly enableMultipleGrants: boolean | IResolvable; +``` + +- *Type:* boolean | cdktf.IResolvable + +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/task_grant#enable_multiple_grants TaskGrant#enable_multiple_grants} + +--- + ##### `onFuture`Optional ```typescript @@ -63543,6 +65052,7 @@ const viewGrantConfig: ViewGrantConfig = { ... } | lifecycle | cdktf.TerraformResourceLifecycle | *No description.* | | provider | cdktf.TerraformProvider | *No description.* | | databaseName | string | The name of the database containing the current or future views on which to grant privileges. | +| enableMultipleGrants | boolean \| cdktf.IResolvable | When this is set to true, multiple grants of the same type can be created. | | onFuture | boolean \| cdktf.IResolvable | When this is set to true and a schema_name is provided, apply this grant on all future views in the given schema. | | privilege | string | The privilege to grant on the current or future view. | | roles | string[] | Grants privilege to these roles. | @@ -63607,6 +65117,20 @@ Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/snowf --- +##### `enableMultipleGrants`Optional + +```typescript +public readonly enableMultipleGrants: boolean | IResolvable; +``` + +- *Type:* boolean | cdktf.IResolvable + +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/view_grant#enable_multiple_grants ViewGrant#enable_multiple_grants} + +--- + ##### `onFuture`Optional ```typescript @@ -64085,6 +65609,7 @@ const warehouseGrantConfig: WarehouseGrantConfig = { ... } | lifecycle | cdktf.TerraformResourceLifecycle | *No description.* | | provider | cdktf.TerraformProvider | *No description.* | | warehouseName | string | The name of the warehouse on which to grant privileges. | +| enableMultipleGrants | boolean \| cdktf.IResolvable | When this is set to true, multiple grants of the same type can be created. | | privilege | string | The privilege to grant on the warehouse. | | roles | string[] | Grants privilege to these roles. | | withGrantOption | boolean \| cdktf.IResolvable | When this is set to true, allows the recipient role to grant the privileges to other roles. | @@ -64145,6 +65670,20 @@ Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/snowf --- +##### `enableMultipleGrants`Optional + +```typescript +public readonly enableMultipleGrants: boolean | IResolvable; +``` + +- *Type:* boolean | cdktf.IResolvable + +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/warehouse_grant#enable_multiple_grants WarehouseGrant#enable_multiple_grants} + +--- + ##### `privilege`Optional ```typescript diff --git a/src/account-grant.ts b/src/account-grant.ts index 62cf2547f..b4d7a2cb2 100644 --- a/src/account-grant.ts +++ b/src/account-grant.ts @@ -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. * @@ -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; @@ -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'); @@ -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), diff --git a/src/database-grant.ts b/src/database-grant.ts index 4073d5647..e9b2596f0 100644 --- a/src/database-grant.ts +++ b/src/database-grant.ts @@ -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} @@ -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; @@ -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'); @@ -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), diff --git a/src/external-table-grant.ts b/src/external-table-grant.ts index 697ee887f..ce7659d2b 100644 --- a/src/external-table-grant.ts +++ b/src/external-table-grant.ts @@ -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} @@ -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; @@ -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() { @@ -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), diff --git a/src/file-format-grant.ts b/src/file-format-grant.ts index dec548fe6..f923e7c25 100644 --- a/src/file-format-grant.ts +++ b/src/file-format-grant.ts @@ -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} @@ -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; @@ -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() { @@ -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), diff --git a/src/function-grant.ts b/src/function-grant.ts index 0430b05f3..d5d425de7 100644 --- a/src/function-grant.ts +++ b/src/function-grant.ts @@ -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} @@ -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; @@ -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() { @@ -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), diff --git a/src/index.ts b/src/index.ts index 33a96e1bf..a315a6b05 100644 --- a/src/index.ts +++ b/src/index.ts @@ -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'; diff --git a/src/integration-grant.ts b/src/integration-grant.ts index aacdcc069..89b2a0217 100644 --- a/src/integration-grant.ts +++ b/src/integration-grant.ts @@ -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. * @@ -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; @@ -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'); @@ -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), diff --git a/src/masking-policy-grant.ts b/src/masking-policy-grant.ts index 1158494a9..83e7c76ab 100644 --- a/src/masking-policy-grant.ts +++ b/src/masking-policy-grant.ts @@ -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} @@ -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; @@ -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'); @@ -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), diff --git a/src/materialized-view-grant.ts b/src/materialized-view-grant.ts index b0018e615..c01193fd8 100644 --- a/src/materialized-view-grant.ts +++ b/src/materialized-view-grant.ts @@ -14,6 +14,12 @@ export interface MaterializedViewGrantConfig extends cdktf.TerraformMetaArgument */ 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/materialized_view_grant#enable_multiple_grants MaterializedViewGrant#enable_multiple_grants} + */ + readonly enableMultipleGrants?: boolean | cdktf.IResolvable; + /** * The name of the materialized view 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/materialized_view_grant#materialized_view_name MaterializedViewGrant#materialized_view_name} @@ -90,6 +96,7 @@ export class MaterializedViewGrant extends cdktf.TerraformResource { lifecycle: config.lifecycle }); this._databaseName = config.databaseName; + this._enableMultipleGrants = config.enableMultipleGrants; this._materializedViewName = config.materializedViewName; this._onFuture = config.onFuture; this._privilege = config.privilege; @@ -116,6 +123,22 @@ export class MaterializedViewGrant 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'); @@ -240,6 +263,7 @@ export class MaterializedViewGrant extends cdktf.TerraformResource { protected synthesizeAttributes(): { [name: string]: any } { return { database_name: cdktf.stringToTerraform(this._databaseName), + enable_multiple_grants: cdktf.booleanToTerraform(this._enableMultipleGrants), materialized_view_name: cdktf.stringToTerraform(this._materializedViewName), on_future: cdktf.booleanToTerraform(this._onFuture), privilege: cdktf.stringToTerraform(this._privilege), diff --git a/src/pipe-grant.ts b/src/pipe-grant.ts index ffe057bf0..4e8cd5138 100644 --- a/src/pipe-grant.ts +++ b/src/pipe-grant.ts @@ -14,6 +14,12 @@ export interface PipeGrantConfig 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/pipe_grant#enable_multiple_grants PipeGrant#enable_multiple_grants} + */ + readonly enableMultipleGrants?: boolean | cdktf.IResolvable; + /** * When this is set to true and a schema_name is provided, apply this grant on all future pipes in the given schema. When this is true and no schema_name is provided apply this grant on all future pipes in the given database. The pipe_name field must be unset in order to use on_future. * * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/snowflake/r/pipe_grant#on_future PipeGrant#on_future} @@ -84,6 +90,7 @@ export class PipeGrant extends cdktf.TerraformResource { lifecycle: config.lifecycle }); this._databaseName = config.databaseName; + this._enableMultipleGrants = config.enableMultipleGrants; this._onFuture = config.onFuture; this._pipeName = config.pipeName; this._privilege = config.privilege; @@ -109,6 +116,22 @@ export class PipeGrant 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'); @@ -214,6 +237,7 @@ export class PipeGrant extends cdktf.TerraformResource { protected synthesizeAttributes(): { [name: string]: any } { return { database_name: cdktf.stringToTerraform(this._databaseName), + enable_multiple_grants: cdktf.booleanToTerraform(this._enableMultipleGrants), on_future: cdktf.booleanToTerraform(this._onFuture), pipe_name: cdktf.stringToTerraform(this._pipeName), privilege: cdktf.stringToTerraform(this._privilege), diff --git a/src/procedure-grant.ts b/src/procedure-grant.ts index 11f1479a9..f6504b18d 100644 --- a/src/procedure-grant.ts +++ b/src/procedure-grant.ts @@ -14,6 +14,12 @@ export interface ProcedureGrantConfig 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/procedure_grant#enable_multiple_grants ProcedureGrant#enable_multiple_grants} + */ + readonly enableMultipleGrants?: boolean | cdktf.IResolvable; + /** * When this is set to true and a schema_name is provided, apply this grant on all future procedures in the given schema. When this is true and no schema_name is provided apply this grant on all future procedures in the given database. The procedure_name and shares fields must be unset in order to use on_future. * * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/snowflake/r/procedure_grant#on_future ProcedureGrant#on_future} @@ -128,6 +134,7 @@ export class ProcedureGrant extends cdktf.TerraformResource { lifecycle: config.lifecycle }); this._databaseName = config.databaseName; + this._enableMultipleGrants = config.enableMultipleGrants; this._onFuture = config.onFuture; this._privilege = config.privilege; this._procedureName = config.procedureName; @@ -156,6 +163,22 @@ export class ProcedureGrant 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'); @@ -310,6 +333,7 @@ export class ProcedureGrant extends cdktf.TerraformResource { protected synthesizeAttributes(): { [name: string]: any } { return { database_name: cdktf.stringToTerraform(this._databaseName), + enable_multiple_grants: cdktf.booleanToTerraform(this._enableMultipleGrants), on_future: cdktf.booleanToTerraform(this._onFuture), privilege: cdktf.stringToTerraform(this._privilege), procedure_name: cdktf.stringToTerraform(this._procedureName), diff --git a/src/resource-monitor-grant.ts b/src/resource-monitor-grant.ts index a8a5ce08c..4376f1acb 100644 --- a/src/resource-monitor-grant.ts +++ b/src/resource-monitor-grant.ts @@ -7,6 +7,12 @@ import * as cdktf from 'cdktf'; // Configuration export interface ResourceMonitorGrantConfig 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/resource_monitor_grant#enable_multiple_grants ResourceMonitorGrant#enable_multiple_grants} + */ + readonly enableMultipleGrants?: boolean | cdktf.IResolvable; /** * Identifier for the resource monitor; must be unique for your account. * @@ -65,6 +71,7 @@ export class ResourceMonitorGrant extends cdktf.TerraformResource { count: config.count, lifecycle: config.lifecycle }); + this._enableMultipleGrants = config.enableMultipleGrants; this._monitorName = config.monitorName; this._privilege = config.privilege; this._roles = config.roles; @@ -75,6 +82,22 @@ export class ResourceMonitorGrant 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'); @@ -147,6 +170,7 @@ export class ResourceMonitorGrant extends cdktf.TerraformResource { protected synthesizeAttributes(): { [name: string]: any } { return { + enable_multiple_grants: cdktf.booleanToTerraform(this._enableMultipleGrants), monitor_name: cdktf.stringToTerraform(this._monitorName), privilege: cdktf.stringToTerraform(this._privilege), roles: cdktf.listMapper(cdktf.stringToTerraform)(this._roles), diff --git a/src/role-grants.ts b/src/role-grants.ts index b7bd01311..d72cf0615 100644 --- a/src/role-grants.ts +++ b/src/role-grants.ts @@ -7,6 +7,12 @@ import * as cdktf from 'cdktf'; // Configuration export interface RoleGrantsConfig 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/role_grants#enable_multiple_grants RoleGrants#enable_multiple_grants} + */ + readonly enableMultipleGrants?: boolean | cdktf.IResolvable; /** * The name of the role we are granting. * @@ -59,6 +65,7 @@ export class RoleGrants extends cdktf.TerraformResource { count: config.count, lifecycle: config.lifecycle }); + this._enableMultipleGrants = config.enableMultipleGrants; this._roleName = config.roleName; this._roles = config.roles; this._users = config.users; @@ -68,6 +75,22 @@ export class RoleGrants 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'); @@ -124,6 +147,7 @@ export class RoleGrants extends cdktf.TerraformResource { protected synthesizeAttributes(): { [name: string]: any } { return { + enable_multiple_grants: cdktf.booleanToTerraform(this._enableMultipleGrants), role_name: cdktf.stringToTerraform(this._roleName), roles: cdktf.listMapper(cdktf.stringToTerraform)(this._roles), users: cdktf.listMapper(cdktf.stringToTerraform)(this._users), diff --git a/src/role-ownership-grant.ts b/src/role-ownership-grant.ts new file mode 100644 index 000000000..1021fed43 --- /dev/null +++ b/src/role-ownership-grant.ts @@ -0,0 +1,129 @@ +// https://www.terraform.io/docs/providers/snowflake/r/role_ownership_grant +// generated from terraform resource schema + +import { Construct } from 'constructs'; +import * as cdktf from 'cdktf'; + +// Configuration + +export interface RoleOwnershipGrantConfig extends cdktf.TerraformMetaArguments { + /** + * Specifies whether to remove or transfer all existing outbound privileges on the object when ownership is transferred to a new role. + * + * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/snowflake/r/role_ownership_grant#current_grants RoleOwnershipGrant#current_grants} + */ + readonly currentGrants?: string; + /** + * The name of the role ownership is granted on. + * + * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/snowflake/r/role_ownership_grant#on_role_name RoleOwnershipGrant#on_role_name} + */ + readonly onRoleName: string; + /** + * The name of the role to grant ownership. Please ensure that the role that terraform is using is granted access. + * + * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/snowflake/r/role_ownership_grant#to_role_name RoleOwnershipGrant#to_role_name} + */ + readonly toRoleName: string; +} + +/** +* Represents a {@link https://www.terraform.io/docs/providers/snowflake/r/role_ownership_grant snowflake_role_ownership_grant} +*/ +export class RoleOwnershipGrant extends cdktf.TerraformResource { + + // ================= + // STATIC PROPERTIES + // ================= + public static readonly tfResourceType: string = "snowflake_role_ownership_grant"; + + // =========== + // INITIALIZER + // =========== + + /** + * Create a new {@link https://www.terraform.io/docs/providers/snowflake/r/role_ownership_grant snowflake_role_ownership_grant} Resource + * + * @param scope The scope in which to define this construct + * @param id The scoped construct ID. Must be unique amongst siblings in the same scope + * @param options RoleOwnershipGrantConfig + */ + public constructor(scope: Construct, id: string, config: RoleOwnershipGrantConfig) { + super(scope, id, { + terraformResourceType: 'snowflake_role_ownership_grant', + terraformGeneratorMetadata: { + providerName: 'snowflake' + }, + provider: config.provider, + dependsOn: config.dependsOn, + count: config.count, + lifecycle: config.lifecycle + }); + this._currentGrants = config.currentGrants; + this._onRoleName = config.onRoleName; + this._toRoleName = config.toRoleName; + } + + // ========== + // ATTRIBUTES + // ========== + + // current_grants - computed: false, optional: true, required: false + private _currentGrants?: string; + public get currentGrants() { + return this.getStringAttribute('current_grants'); + } + public set currentGrants(value: string) { + this._currentGrants = value; + } + public resetCurrentGrants() { + this._currentGrants = undefined; + } + // Temporarily expose input value. Use with caution. + public get currentGrantsInput() { + return this._currentGrants; + } + + // id - computed: true, optional: true, required: false + public get id() { + return this.getStringAttribute('id'); + } + + // on_role_name - computed: false, optional: false, required: true + private _onRoleName?: string; + public get onRoleName() { + return this.getStringAttribute('on_role_name'); + } + public set onRoleName(value: string) { + this._onRoleName = value; + } + // Temporarily expose input value. Use with caution. + public get onRoleNameInput() { + return this._onRoleName; + } + + // to_role_name - computed: false, optional: false, required: true + private _toRoleName?: string; + public get toRoleName() { + return this.getStringAttribute('to_role_name'); + } + public set toRoleName(value: string) { + this._toRoleName = value; + } + // Temporarily expose input value. Use with caution. + public get toRoleNameInput() { + return this._toRoleName; + } + + // ========= + // SYNTHESIS + // ========= + + protected synthesizeAttributes(): { [name: string]: any } { + return { + current_grants: cdktf.stringToTerraform(this._currentGrants), + on_role_name: cdktf.stringToTerraform(this._onRoleName), + to_role_name: cdktf.stringToTerraform(this._toRoleName), + }; + } +} diff --git a/src/row-access-policy-grant.ts b/src/row-access-policy-grant.ts index 9ec7513aa..722bfa707 100644 --- a/src/row-access-policy-grant.ts +++ b/src/row-access-policy-grant.ts @@ -14,6 +14,12 @@ export interface RowAccessPolicyGrantConfig 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/row_access_policy_grant#enable_multiple_grants RowAccessPolicyGrant#enable_multiple_grants} + */ + readonly enableMultipleGrants?: boolean | cdktf.IResolvable; + /** * The privilege to grant on the row access policy. * * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/snowflake/r/row_access_policy_grant#privilege RowAccessPolicyGrant#privilege} @@ -78,6 +84,7 @@ export class RowAccessPolicyGrant extends cdktf.TerraformResource { lifecycle: config.lifecycle }); this._databaseName = config.databaseName; + this._enableMultipleGrants = config.enableMultipleGrants; this._privilege = config.privilege; this._roles = config.roles; this._rowAccessPolicyName = config.rowAccessPolicyName; @@ -102,6 +109,22 @@ export class RowAccessPolicyGrant 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'); @@ -188,6 +211,7 @@ export class RowAccessPolicyGrant 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), row_access_policy_name: cdktf.stringToTerraform(this._rowAccessPolicyName), diff --git a/src/schema-grant.ts b/src/schema-grant.ts index c18ff7eb7..e16f39f3e 100644 --- a/src/schema-grant.ts +++ b/src/schema-grant.ts @@ -14,6 +14,12 @@ export interface SchemaGrantConfig 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/schema_grant#enable_multiple_grants SchemaGrant#enable_multiple_grants} + */ + readonly enableMultipleGrants?: boolean | cdktf.IResolvable; + /** * When this is set to true, apply this grant on all future schemas in the given database. The schema_name and shares fields must be unset in order to use on_future. * * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/snowflake/r/schema_grant#on_future SchemaGrant#on_future} @@ -84,6 +90,7 @@ export class SchemaGrant extends cdktf.TerraformResource { lifecycle: config.lifecycle }); this._databaseName = config.databaseName; + this._enableMultipleGrants = config.enableMultipleGrants; this._onFuture = config.onFuture; this._privilege = config.privilege; this._roles = config.roles; @@ -109,6 +116,22 @@ export class SchemaGrant 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'); @@ -217,6 +240,7 @@ export class SchemaGrant extends cdktf.TerraformResource { protected synthesizeAttributes(): { [name: string]: any } { return { database_name: cdktf.stringToTerraform(this._databaseName), + enable_multiple_grants: cdktf.booleanToTerraform(this._enableMultipleGrants), on_future: cdktf.booleanToTerraform(this._onFuture), privilege: cdktf.stringToTerraform(this._privilege), roles: cdktf.listMapper(cdktf.stringToTerraform)(this._roles), diff --git a/src/sequence-grant.ts b/src/sequence-grant.ts index ff25a5106..c312d455c 100644 --- a/src/sequence-grant.ts +++ b/src/sequence-grant.ts @@ -14,6 +14,12 @@ export interface SequenceGrantConfig 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/sequence_grant#enable_multiple_grants SequenceGrant#enable_multiple_grants} + */ + readonly enableMultipleGrants?: boolean | cdktf.IResolvable; + /** * When this is set to true and a schema_name is provided, apply this grant on all future sequences in the given schema. When this is true and no schema_name is provided apply this grant on all future sequences in the given database. The sequence_name field must be unset in order to use on_future. * * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/snowflake/r/sequence_grant#on_future SequenceGrant#on_future} @@ -84,6 +90,7 @@ export class SequenceGrant extends cdktf.TerraformResource { lifecycle: config.lifecycle }); this._databaseName = config.databaseName; + this._enableMultipleGrants = config.enableMultipleGrants; this._onFuture = config.onFuture; this._privilege = config.privilege; this._roles = config.roles; @@ -109,6 +116,22 @@ export class SequenceGrant 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'); @@ -214,6 +237,7 @@ export class SequenceGrant extends cdktf.TerraformResource { protected synthesizeAttributes(): { [name: string]: any } { return { database_name: cdktf.stringToTerraform(this._databaseName), + enable_multiple_grants: cdktf.booleanToTerraform(this._enableMultipleGrants), on_future: cdktf.booleanToTerraform(this._onFuture), privilege: cdktf.stringToTerraform(this._privilege), roles: cdktf.listMapper(cdktf.stringToTerraform)(this._roles), diff --git a/src/stage-grant.ts b/src/stage-grant.ts index eaa237eea..7cabd58fe 100644 --- a/src/stage-grant.ts +++ b/src/stage-grant.ts @@ -14,6 +14,12 @@ export interface StageGrantConfig 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/stage_grant#enable_multiple_grants StageGrant#enable_multiple_grants} + */ + readonly enableMultipleGrants?: boolean | cdktf.IResolvable; + /** * When this is set to true and a schema_name is provided, apply this grant on all future stages in the given schema. When this is true and no schema_name is provided apply this grant on all future stages in the given database. The stage_name field must be unset in order to use on_future. * * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/snowflake/r/stage_grant#on_future StageGrant#on_future} @@ -84,6 +90,7 @@ export class StageGrant extends cdktf.TerraformResource { lifecycle: config.lifecycle }); this._databaseName = config.databaseName; + this._enableMultipleGrants = config.enableMultipleGrants; this._onFuture = config.onFuture; this._privilege = config.privilege; this._roles = config.roles; @@ -109,6 +116,22 @@ export class StageGrant 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'); @@ -214,6 +237,7 @@ export class StageGrant extends cdktf.TerraformResource { protected synthesizeAttributes(): { [name: string]: any } { return { database_name: cdktf.stringToTerraform(this._databaseName), + enable_multiple_grants: cdktf.booleanToTerraform(this._enableMultipleGrants), on_future: cdktf.booleanToTerraform(this._onFuture), privilege: cdktf.stringToTerraform(this._privilege), roles: cdktf.listMapper(cdktf.stringToTerraform)(this._roles), diff --git a/src/stream-grant.ts b/src/stream-grant.ts index 3edda9bf9..683aba4e9 100644 --- a/src/stream-grant.ts +++ b/src/stream-grant.ts @@ -14,6 +14,12 @@ export interface StreamGrantConfig 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/stream_grant#enable_multiple_grants StreamGrant#enable_multiple_grants} + */ + readonly enableMultipleGrants?: boolean | cdktf.IResolvable; + /** * When this is set to true and a schema_name is provided, apply this grant on all future streams in the given schema. When this is true and no schema_name is provided apply this grant on all future streams in the given database. The stream_name field must be unset in order to use on_future. * * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/snowflake/r/stream_grant#on_future StreamGrant#on_future} @@ -84,6 +90,7 @@ export class StreamGrant extends cdktf.TerraformResource { lifecycle: config.lifecycle }); this._databaseName = config.databaseName; + this._enableMultipleGrants = config.enableMultipleGrants; this._onFuture = config.onFuture; this._privilege = config.privilege; this._roles = config.roles; @@ -109,6 +116,22 @@ export class StreamGrant 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'); @@ -214,6 +237,7 @@ export class StreamGrant extends cdktf.TerraformResource { protected synthesizeAttributes(): { [name: string]: any } { return { database_name: cdktf.stringToTerraform(this._databaseName), + enable_multiple_grants: cdktf.booleanToTerraform(this._enableMultipleGrants), on_future: cdktf.booleanToTerraform(this._onFuture), privilege: cdktf.stringToTerraform(this._privilege), roles: cdktf.listMapper(cdktf.stringToTerraform)(this._roles), diff --git a/src/table-grant.ts b/src/table-grant.ts index 9f174db13..774b69b72 100644 --- a/src/table-grant.ts +++ b/src/table-grant.ts @@ -14,6 +14,12 @@ export interface TableGrantConfig 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/table_grant#enable_multiple_grants TableGrant#enable_multiple_grants} + */ + readonly enableMultipleGrants?: boolean | cdktf.IResolvable; + /** * When this is set to true and a schema_name is provided, apply this grant on all future tables in the given schema. When this is true and no schema_name is provided apply this grant on all future tables in the given database. The table_name and shares fields must be unset in order to use on_future. * * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/snowflake/r/table_grant#on_future TableGrant#on_future} @@ -90,6 +96,7 @@ export class TableGrant extends cdktf.TerraformResource { lifecycle: config.lifecycle }); this._databaseName = config.databaseName; + this._enableMultipleGrants = config.enableMultipleGrants; this._onFuture = config.onFuture; this._privilege = config.privilege; this._roles = config.roles; @@ -116,6 +123,22 @@ export class TableGrant 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'); @@ -240,6 +263,7 @@ export class TableGrant extends cdktf.TerraformResource { protected synthesizeAttributes(): { [name: string]: any } { return { database_name: cdktf.stringToTerraform(this._databaseName), + enable_multiple_grants: cdktf.booleanToTerraform(this._enableMultipleGrants), on_future: cdktf.booleanToTerraform(this._onFuture), privilege: cdktf.stringToTerraform(this._privilege), roles: cdktf.listMapper(cdktf.stringToTerraform)(this._roles), diff --git a/src/task-grant.ts b/src/task-grant.ts index 70896762a..12305c988 100644 --- a/src/task-grant.ts +++ b/src/task-grant.ts @@ -14,6 +14,12 @@ export interface TaskGrantConfig 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/task_grant#enable_multiple_grants TaskGrant#enable_multiple_grants} + */ + readonly enableMultipleGrants?: boolean | cdktf.IResolvable; + /** * When this is set to true and a schema_name is provided, apply this grant on all future tasks in the given schema. When this is true and no schema_name is provided apply this grant on all future tasks in the given database. The task_name field must be unset in order to use on_future. * * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/snowflake/r/task_grant#on_future TaskGrant#on_future} @@ -84,6 +90,7 @@ export class TaskGrant extends cdktf.TerraformResource { lifecycle: config.lifecycle }); this._databaseName = config.databaseName; + this._enableMultipleGrants = config.enableMultipleGrants; this._onFuture = config.onFuture; this._privilege = config.privilege; this._roles = config.roles; @@ -109,6 +116,22 @@ export class TaskGrant 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'); @@ -214,6 +237,7 @@ export class TaskGrant extends cdktf.TerraformResource { protected synthesizeAttributes(): { [name: string]: any } { return { database_name: cdktf.stringToTerraform(this._databaseName), + enable_multiple_grants: cdktf.booleanToTerraform(this._enableMultipleGrants), on_future: cdktf.booleanToTerraform(this._onFuture), privilege: cdktf.stringToTerraform(this._privilege), roles: cdktf.listMapper(cdktf.stringToTerraform)(this._roles), diff --git a/src/view-grant.ts b/src/view-grant.ts index 578f784e9..3308e4295 100644 --- a/src/view-grant.ts +++ b/src/view-grant.ts @@ -14,6 +14,12 @@ export interface ViewGrantConfig 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/view_grant#enable_multiple_grants ViewGrant#enable_multiple_grants} + */ + readonly enableMultipleGrants?: boolean | cdktf.IResolvable; + /** * When this is set to true and a schema_name is provided, apply this grant on all future views in the given schema. When this is true and no schema_name is provided apply this grant on all future views in the given database. The view_name and shares fields must be unset in order to use on_future. * * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/snowflake/r/view_grant#on_future ViewGrant#on_future} @@ -90,6 +96,7 @@ export class ViewGrant extends cdktf.TerraformResource { lifecycle: config.lifecycle }); this._databaseName = config.databaseName; + this._enableMultipleGrants = config.enableMultipleGrants; this._onFuture = config.onFuture; this._privilege = config.privilege; this._roles = config.roles; @@ -116,6 +123,22 @@ export class ViewGrant 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'); @@ -240,6 +263,7 @@ export class ViewGrant extends cdktf.TerraformResource { protected synthesizeAttributes(): { [name: string]: any } { return { database_name: cdktf.stringToTerraform(this._databaseName), + enable_multiple_grants: cdktf.booleanToTerraform(this._enableMultipleGrants), on_future: cdktf.booleanToTerraform(this._onFuture), privilege: cdktf.stringToTerraform(this._privilege), roles: cdktf.listMapper(cdktf.stringToTerraform)(this._roles), diff --git a/src/warehouse-grant.ts b/src/warehouse-grant.ts index e7c1395ae..6ab777f48 100644 --- a/src/warehouse-grant.ts +++ b/src/warehouse-grant.ts @@ -7,6 +7,12 @@ import * as cdktf from 'cdktf'; // Configuration export interface WarehouseGrantConfig 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/warehouse_grant#enable_multiple_grants WarehouseGrant#enable_multiple_grants} + */ + readonly enableMultipleGrants?: boolean | cdktf.IResolvable; /** * The privilege to grant on the warehouse. * @@ -65,6 +71,7 @@ export class WarehouseGrant extends cdktf.TerraformResource { count: config.count, lifecycle: config.lifecycle }); + this._enableMultipleGrants = config.enableMultipleGrants; this._privilege = config.privilege; this._roles = config.roles; this._warehouseName = config.warehouseName; @@ -75,6 +82,22 @@ export class WarehouseGrant 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'); @@ -147,6 +170,7 @@ export class WarehouseGrant 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), warehouse_name: cdktf.stringToTerraform(this._warehouseName),