@cdktf/provider-google
Version:
Prebuilt google Provider for Terraform CDK (cdktf)
149 lines (148 loc) • 7.3 kB
TypeScript
/**
* Copyright (c) HashiCorp, Inc.
* SPDX-License-Identifier: MPL-2.0
*/
import { Construct } from 'constructs';
import * as cdktf from 'cdktf';
export interface StorageBucketAccessControlConfig extends cdktf.TerraformMetaArguments {
/**
* The name of the bucket.
*
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.13.0/docs/resources/storage_bucket_access_control#bucket StorageBucketAccessControl#bucket}
*/
readonly bucket: string;
/**
* The entity holding the permission, in one of the following forms:
* user-userId
* user-email
* group-groupId
* group-email
* domain-domain
* project-team-projectId
* allUsers
* allAuthenticatedUsers
* Examples:
* The user liz@example.com would be user-liz@example.com.
* The group example@googlegroups.com would be
* group-example@googlegroups.com.
* To refer to all members of the Google Apps for Business domain
* example.com, the entity would be domain-example.com.
*
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.13.0/docs/resources/storage_bucket_access_control#entity StorageBucketAccessControl#entity}
*/
readonly entity: string;
/**
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.13.0/docs/resources/storage_bucket_access_control#id StorageBucketAccessControl#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 access permission for the entity. Possible values: ["OWNER", "READER", "WRITER"]
*
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.13.0/docs/resources/storage_bucket_access_control#role StorageBucketAccessControl#role}
*/
readonly role?: string;
/**
* timeouts block
*
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.13.0/docs/resources/storage_bucket_access_control#timeouts StorageBucketAccessControl#timeouts}
*/
readonly timeouts?: StorageBucketAccessControlTimeouts;
}
export interface StorageBucketAccessControlTimeouts {
/**
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.13.0/docs/resources/storage_bucket_access_control#create StorageBucketAccessControl#create}
*/
readonly create?: string;
/**
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.13.0/docs/resources/storage_bucket_access_control#delete StorageBucketAccessControl#delete}
*/
readonly delete?: string;
/**
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.13.0/docs/resources/storage_bucket_access_control#update StorageBucketAccessControl#update}
*/
readonly update?: string;
}
export declare function storageBucketAccessControlTimeoutsToTerraform(struct?: StorageBucketAccessControlTimeouts | cdktf.IResolvable): any;
export declare function storageBucketAccessControlTimeoutsToHclTerraform(struct?: StorageBucketAccessControlTimeouts | cdktf.IResolvable): any;
export declare class StorageBucketAccessControlTimeoutsOutputReference extends cdktf.ComplexObject {
private isEmptyObject;
private resolvableValue?;
/**
* @param terraformResource The parent resource
* @param terraformAttribute The attribute on the parent resource this class is referencing
*/
constructor(terraformResource: cdktf.IInterpolatingParent, terraformAttribute: string);
get internalValue(): StorageBucketAccessControlTimeouts | cdktf.IResolvable | undefined;
set internalValue(value: StorageBucketAccessControlTimeouts | cdktf.IResolvable | undefined);
private _create?;
get create(): string;
set create(value: string);
resetCreate(): void;
get createInput(): string | undefined;
private _delete?;
get delete(): string;
set delete(value: string);
resetDelete(): void;
get deleteInput(): string | undefined;
private _update?;
get update(): string;
set update(value: string);
resetUpdate(): void;
get updateInput(): string | undefined;
}
/**
* Represents a {@link https://registry.terraform.io/providers/hashicorp/google/6.13.0/docs/resources/storage_bucket_access_control google_storage_bucket_access_control}
*/
export declare class StorageBucketAccessControl extends cdktf.TerraformResource {
static readonly tfResourceType = "google_storage_bucket_access_control";
/**
* Generates CDKTF code for importing a StorageBucketAccessControl 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 StorageBucketAccessControl to import
* @param importFromId The id of the existing StorageBucketAccessControl that should be imported. Refer to the {@link https://registry.terraform.io/providers/hashicorp/google/6.13.0/docs/resources/storage_bucket_access_control#import import section} in the documentation of this resource for the id to use
* @param provider? Optional instance of the provider where the StorageBucketAccessControl 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_access_control google_storage_bucket_access_control} 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 StorageBucketAccessControlConfig
*/
constructor(scope: Construct, id: string, config: StorageBucketAccessControlConfig);
private _bucket?;
get bucket(): string;
set bucket(value: string);
get bucketInput(): string | undefined;
get domain(): string;
get email(): string;
private _entity?;
get entity(): string;
set entity(value: string);
get entityInput(): string | undefined;
private _id?;
get id(): string;
set id(value: string);
resetId(): void;
get idInput(): string | undefined;
private _role?;
get role(): string;
set role(value: string);
resetRole(): void;
get roleInput(): string | undefined;
private _timeouts;
get timeouts(): StorageBucketAccessControlTimeoutsOutputReference;
putTimeouts(value: StorageBucketAccessControlTimeouts): void;
resetTimeouts(): void;
get timeoutsInput(): cdktf.IResolvable | StorageBucketAccessControlTimeouts | undefined;
protected synthesizeAttributes(): {
[name: string]: any;
};
protected synthesizeHclAttributes(): {
[name: string]: any;
};
}