import { Construct } from 'constructs'; import * as cdktf from 'cdktf'; export interface SosBucketPolicyConfig extends cdktf.TerraformMetaArguments { /** * ❗ The name of the bucket to which the policy is to be applied. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/exoscale/exoscale/0.67.1/docs/resources/sos_bucket_policy#bucket SosBucketPolicy#bucket} */ readonly bucket: string; /** * The content of the policy * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/exoscale/exoscale/0.67.1/docs/resources/sos_bucket_policy#policy SosBucketPolicy#policy} */ readonly policy: string; /** * ❗ The Exoscale [Zone](https://www.exoscale.com/datacenters/) name. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/exoscale/exoscale/0.67.1/docs/resources/sos_bucket_policy#zone SosBucketPolicy#zone} */ readonly zone: string; /** * timeouts block * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/exoscale/exoscale/0.67.1/docs/resources/sos_bucket_policy#timeouts SosBucketPolicy#timeouts} */ readonly timeouts?: SosBucketPolicyTimeouts; } export interface SosBucketPolicyTimeouts { /** * A string that can be [parsed as a duration](https://pkg.go.dev/time#ParseDuration) consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/exoscale/exoscale/0.67.1/docs/resources/sos_bucket_policy#create SosBucketPolicy#create} */ readonly create?: string; /** * A string that can be [parsed as a duration](https://pkg.go.dev/time#ParseDuration) consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/exoscale/exoscale/0.67.1/docs/resources/sos_bucket_policy#delete SosBucketPolicy#delete} */ readonly delete?: string; /** * A string that can be [parsed as a duration](https://pkg.go.dev/time#ParseDuration) consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Read operations occur during any refresh or planning operation when refresh is enabled. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/exoscale/exoscale/0.67.1/docs/resources/sos_bucket_policy#read SosBucketPolicy#read} */ readonly read?: string; /** * A string that can be [parsed as a duration](https://pkg.go.dev/time#ParseDuration) consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/exoscale/exoscale/0.67.1/docs/resources/sos_bucket_policy#update SosBucketPolicy#update} */ readonly update?: string; } export declare function sosBucketPolicyTimeoutsToTerraform(struct?: SosBucketPolicyTimeouts | cdktf.IResolvable): any; export declare function sosBucketPolicyTimeoutsToHclTerraform(struct?: SosBucketPolicyTimeouts | cdktf.IResolvable): any; export declare class SosBucketPolicyTimeoutsOutputReference 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(): SosBucketPolicyTimeouts | cdktf.IResolvable | undefined; set internalValue(value: SosBucketPolicyTimeouts | cdktf.IResolvable | undefined); private _create?; get create(): string; set create(value: string); resetCreate(): void; get createInput(): string; private _delete?; get delete(): string; set delete(value: string); resetDelete(): void; get deleteInput(): string; private _read?; get read(): string; set read(value: string); resetRead(): void; get readInput(): string; private _update?; get update(): string; set update(value: string); resetUpdate(): void; get updateInput(): string; } /** * Represents a {@link https://registry.terraform.io/providers/exoscale/exoscale/0.67.1/docs/resources/sos_bucket_policy exoscale_sos_bucket_policy} */ export declare class SosBucketPolicy extends cdktf.TerraformResource { static readonly tfResourceType = "exoscale_sos_bucket_policy"; /** * Generates CDKTF code for importing a SosBucketPolicy 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 SosBucketPolicy to import * @param importFromId The id of the existing SosBucketPolicy that should be imported. Refer to the {@link https://registry.terraform.io/providers/exoscale/exoscale/0.67.1/docs/resources/sos_bucket_policy#import import section} in the documentation of this resource for the id to use * @param provider? Optional instance of the provider where the SosBucketPolicy 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/exoscale/exoscale/0.67.1/docs/resources/sos_bucket_policy exoscale_sos_bucket_policy} 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 SosBucketPolicyConfig */ constructor(scope: Construct, id: string, config: SosBucketPolicyConfig); private _bucket?; get bucket(): string; set bucket(value: string); get bucketInput(): string; private _policy?; get policy(): string; set policy(value: string); get policyInput(): string; private _zone?; get zone(): string; set zone(value: string); get zoneInput(): string; private _timeouts; get timeouts(): SosBucketPolicyTimeoutsOutputReference; putTimeouts(value: SosBucketPolicyTimeouts): void; resetTimeouts(): void; get timeoutsInput(): any; protected synthesizeAttributes(): { [name: string]: any; }; protected synthesizeHclAttributes(): { [name: string]: any; }; }