@cdktf/provider-google
Version:
Prebuilt google Provider for Terraform CDK (cdktf)
92 lines (91 loc) • 4.52 kB
TypeScript
/**
* Copyright (c) HashiCorp, Inc.
* SPDX-License-Identifier: MPL-2.0
*/
import { Construct } from 'constructs';
import * as cdktf from 'cdktf';
export interface StorageBucketAclConfig extends cdktf.TerraformMetaArguments {
/**
* The name of the bucket it applies to.
*
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.13.0/docs/resources/storage_bucket_acl#bucket StorageBucketAcl#bucket}
*/
readonly bucket: string;
/**
* Configure this ACL to be the default ACL.
*
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.13.0/docs/resources/storage_bucket_acl#default_acl StorageBucketAcl#default_acl}
*/
readonly defaultAcl?: string;
/**
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.13.0/docs/resources/storage_bucket_acl#id StorageBucketAcl#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;
/**
* The canned GCS ACL to apply. Must be set if role_entity is not.
*
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.13.0/docs/resources/storage_bucket_acl#predefined_acl StorageBucketAcl#predefined_acl}
*/
readonly predefinedAcl?: string;
/**
* List of role/entity pairs in the form ROLE:entity. See GCS Bucket ACL documentation for more details. Must be set if predefined_acl is not.
*
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.13.0/docs/resources/storage_bucket_acl#role_entity StorageBucketAcl#role_entity}
*/
readonly roleEntity?: string[];
}
/**
* Represents a {@link https://registry.terraform.io/providers/hashicorp/google/6.13.0/docs/resources/storage_bucket_acl google_storage_bucket_acl}
*/
export declare class StorageBucketAcl extends cdktf.TerraformResource {
static readonly tfResourceType = "google_storage_bucket_acl";
/**
* Generates CDKTF code for importing a StorageBucketAcl resource upon running "cdktf plan <stack-name>"
* @param scope The scope in which to define this construct
* @param importToId The construct id used in the generated config for the StorageBucketAcl to import
* @param importFromId The id of the existing StorageBucketAcl that should be imported. Refer to the {@link https://registry.terraform.io/providers/hashicorp/google/6.13.0/docs/resources/storage_bucket_acl#import import section} in the documentation of this resource for the id to use
* @param provider? Optional instance of the provider where the StorageBucketAcl to import is found
*/
static generateConfigForImport(scope: Construct, importToId: string, importFromId: string, provider?: cdktf.TerraformProvider): cdktf.ImportableResource;
/**
* Create a new {@link https://registry.terraform.io/providers/hashicorp/google/6.13.0/docs/resources/storage_bucket_acl google_storage_bucket_acl} 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 StorageBucketAclConfig
*/
constructor(scope: Construct, id: string, config: StorageBucketAclConfig);
private _bucket?;
get bucket(): string;
set bucket(value: string);
get bucketInput(): string | undefined;
private _defaultAcl?;
get defaultAcl(): string;
set defaultAcl(value: string);
resetDefaultAcl(): void;
get defaultAclInput(): string | undefined;
private _id?;
get id(): string;
set id(value: string);
resetId(): void;
get idInput(): string | undefined;
private _predefinedAcl?;
get predefinedAcl(): string;
set predefinedAcl(value: string);
resetPredefinedAcl(): void;
get predefinedAclInput(): string | undefined;
private _roleEntity?;
get roleEntity(): string[];
set roleEntity(value: string[]);
resetRoleEntity(): void;
get roleEntityInput(): string[] | undefined;
protected synthesizeAttributes(): {
[name: string]: any;
};
protected synthesizeHclAttributes(): {
[name: string]: any;
};
}