import { Construct } from 'constructs'; import * as cdktf from 'cdktf'; export interface StorageBucketGrantAConfig extends cdktf.TerraformMetaArguments { /** * The access key to use when applying changes. This value can also be provided as `storage_access_key` specified in provider config (explicitly or within `shared_credentials_file`) is used. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/yandex-cloud/yandex/0.177.0/docs/resources/storage_bucket_grant#access_key StorageBucketGrantA#access_key} */ readonly accessKey?: string; /** * The [predefined ACL](https://yandex.cloud/docs/storage/concepts/acl#predefined_acls) to apply. Defaults to `private`. Conflicts with `grant`. * * ~> To change ACL after creation, service account with `storage.admin` role should be used, though this role is not necessary to create a bucket with any ACL. * * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/yandex-cloud/yandex/0.177.0/docs/resources/storage_bucket_grant#acl StorageBucketGrantA#acl} */ readonly acl?: string; /** * The name of the bucket. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/yandex-cloud/yandex/0.177.0/docs/resources/storage_bucket_grant#bucket StorageBucketGrantA#bucket} */ readonly bucket: string; /** * The secret key to use when applying changes. This value can also be provided as `storage_secret_key` specified in provider config (explicitly or within `shared_credentials_file`) is used. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/yandex-cloud/yandex/0.177.0/docs/resources/storage_bucket_grant#secret_key StorageBucketGrantA#secret_key} */ readonly secretKey?: string; /** * grant block * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/yandex-cloud/yandex/0.177.0/docs/resources/storage_bucket_grant#grant StorageBucketGrantA#grant} */ readonly grant?: StorageBucketGrantGrant[] | cdktf.IResolvable; } export interface StorageBucketGrantGrant { /** * Canonical user id to grant for. Used only when type is `CanonicalUser`. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/yandex-cloud/yandex/0.177.0/docs/resources/storage_bucket_grant#id StorageBucketGrantA#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. */ readonly id?: string; /** * List of permissions to apply for grantee. Valid values are `READ`, `WRITE`, `FULL_CONTROL`. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/yandex-cloud/yandex/0.177.0/docs/resources/storage_bucket_grant#permissions StorageBucketGrantA#permissions} */ readonly permissions: string[]; /** * Type of grantee to apply for. Valid values are `CanonicalUser` and `Group`. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/yandex-cloud/yandex/0.177.0/docs/resources/storage_bucket_grant#type StorageBucketGrantA#type} */ readonly type: string; /** * URI address to grant for. Used only when type is Group. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/yandex-cloud/yandex/0.177.0/docs/resources/storage_bucket_grant#uri StorageBucketGrantA#uri} */ readonly uri?: string; } export declare function storageBucketGrantGrantToTerraform(struct?: StorageBucketGrantGrant | cdktf.IResolvable): any; export declare function storageBucketGrantGrantToHclTerraform(struct?: StorageBucketGrantGrant | cdktf.IResolvable): any; export declare class StorageBucketGrantGrantOutputReference extends cdktf.ComplexObject { private isEmptyObject; private resolvableValue?; /** * @param terraformResource The parent resource * @param terraformAttribute The attribute on the parent resource this class is referencing * @param complexObjectIndex the index of this item in the list * @param complexObjectIsFromSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index) */ constructor(terraformResource: cdktf.IInterpolatingParent, terraformAttribute: string, complexObjectIndex: number, complexObjectIsFromSet: boolean); get internalValue(): StorageBucketGrantGrant | cdktf.IResolvable | undefined; set internalValue(value: StorageBucketGrantGrant | cdktf.IResolvable | undefined); private _id?; get id(): string; set id(value: string); resetId(): void; get idInput(): string; private _permissions?; get permissions(): string[]; set permissions(value: string[]); get permissionsInput(): string[]; private _type?; get type(): string; set type(value: string); get typeInput(): string; private _uri?; get uri(): string; set uri(value: string); resetUri(): void; get uriInput(): string; } export declare class StorageBucketGrantGrantList extends cdktf.ComplexList { protected terraformResource: cdktf.IInterpolatingParent; protected terraformAttribute: string; protected wrapsSet: boolean; internalValue?: StorageBucketGrantGrant[] | cdktf.IResolvable; /** * @param terraformResource The parent resource * @param terraformAttribute The attribute on the parent resource this class is referencing * @param wrapsSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index) */ constructor(terraformResource: cdktf.IInterpolatingParent, terraformAttribute: string, wrapsSet: boolean); /** * @param index the index of the item to return */ get(index: number): StorageBucketGrantGrantOutputReference; } /** * Represents a {@link https://registry.terraform.io/providers/yandex-cloud/yandex/0.177.0/docs/resources/storage_bucket_grant yandex_storage_bucket_grant} */ export declare class StorageBucketGrantA extends cdktf.TerraformResource { static readonly tfResourceType = "yandex_storage_bucket_grant"; /** * Generates CDKTF code for importing a StorageBucketGrantA resource upon running "cdktf plan " * @param scope The scope in which to define this construct * @param importToId The construct id used in the generated config for the StorageBucketGrantA to import * @param importFromId The id of the existing StorageBucketGrantA that should be imported. Refer to the {@link https://registry.terraform.io/providers/yandex-cloud/yandex/0.177.0/docs/resources/storage_bucket_grant#import import section} in the documentation of this resource for the id to use * @param provider? Optional instance of the provider where the StorageBucketGrantA to import is found */ static generateConfigForImport(scope: Construct, importToId: string, importFromId: string, provider?: cdktf.TerraformProvider): any; /** * Create a new {@link https://registry.terraform.io/providers/yandex-cloud/yandex/0.177.0/docs/resources/storage_bucket_grant yandex_storage_bucket_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 StorageBucketGrantAConfig */ constructor(scope: Construct, id: string, config: StorageBucketGrantAConfig); private _accessKey?; get accessKey(): string; set accessKey(value: string); resetAccessKey(): void; get accessKeyInput(): string; private _acl?; get acl(): string; set acl(value: string); resetAcl(): void; get aclInput(): string; private _bucket?; get bucket(): string; set bucket(value: string); get bucketInput(): string; private _secretKey?; get secretKey(): string; set secretKey(value: string); resetSecretKey(): void; get secretKeyInput(): string; private _grant; get grant(): StorageBucketGrantGrantList; putGrant(value: StorageBucketGrantGrant[] | cdktf.IResolvable): void; resetGrant(): void; get grantInput(): any; protected synthesizeAttributes(): { [name: string]: any; }; protected synthesizeHclAttributes(): { [name: string]: any; }; }