-
Notifications
You must be signed in to change notification settings - Fork 1
/
UserOwnershipGrantConfig.go
49 lines (45 loc) · 2.93 KB
/
UserOwnershipGrantConfig.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
// Copyright (c) HashiCorp, Inc.
// SPDX-License-Identifier: MPL-2.0
package userownershipgrant
import (
"github.com/hashicorp/terraform-cdk-go/cdktf"
)
type UserOwnershipGrantConfig struct {
// Experimental.
Connection interface{} `field:"optional" json:"connection" yaml:"connection"`
// Experimental.
Count interface{} `field:"optional" json:"count" yaml:"count"`
// Experimental.
DependsOn *[]cdktf.ITerraformDependable `field:"optional" json:"dependsOn" yaml:"dependsOn"`
// Experimental.
ForEach cdktf.ITerraformIterator `field:"optional" json:"forEach" yaml:"forEach"`
// Experimental.
Lifecycle *cdktf.TerraformResourceLifecycle `field:"optional" json:"lifecycle" yaml:"lifecycle"`
// Experimental.
Provider cdktf.TerraformProvider `field:"optional" json:"provider" yaml:"provider"`
// Experimental.
Provisioners *[]interface{} `field:"optional" json:"provisioners" yaml:"provisioners"`
// The name of the user ownership is granted on.
//
// Docs at Terraform Registry: {@link https://registry.terraform.io/providers/snowflake-labs/snowflake/0.92.0/docs/resources/user_ownership_grant#on_user_name UserOwnershipGrant#on_user_name}
OnUserName *string `field:"required" json:"onUserName" yaml:"onUserName"`
// 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://registry.terraform.io/providers/snowflake-labs/snowflake/0.92.0/docs/resources/user_ownership_grant#to_role_name UserOwnershipGrant#to_role_name}
ToRoleName *string `field:"required" json:"toRoleName" yaml:"toRoleName"`
// 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://registry.terraform.io/providers/snowflake-labs/snowflake/0.92.0/docs/resources/user_ownership_grant#current_grants UserOwnershipGrant#current_grants}
CurrentGrants *string `field:"optional" json:"currentGrants" yaml:"currentGrants"`
// Docs at Terraform Registry: {@link https://registry.terraform.io/providers/snowflake-labs/snowflake/0.92.0/docs/resources/user_ownership_grant#id UserOwnershipGrant#id}.
//
// Please be aware that the id field is automatically added to all resources in Terraform providers using a Terraform provider SDK version below 2.
// If you experience problems setting this value it might not be settable. Please take a look at the provider documentation to ensure it should be settable.
Id *string `field:"optional" json:"id" yaml:"id"`
// The name of the role to revert ownership to on destroy.
//
// Docs at Terraform Registry: {@link https://registry.terraform.io/providers/snowflake-labs/snowflake/0.92.0/docs/resources/user_ownership_grant#revert_ownership_to_role_name UserOwnershipGrant#revert_ownership_to_role_name}
RevertOwnershipToRoleName *string `field:"optional" json:"revertOwnershipToRoleName" yaml:"revertOwnershipToRoleName"`
}