// generated from terraform resource schema import { Construct } from 'constructs'; import * as cdktf from 'cdktf'; /** * AWS Simple Storage Service */ export interface S3ControlObjectLambdaAccessPointPolicyConfig extends cdktf.TerraformMetaArguments { /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/s3control_object_lambda_access_point_policy.html#account_id S3ControlObjectLambdaAccessPointPolicy#account_id} */ readonly accountId?: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/s3control_object_lambda_access_point_policy.html#name S3ControlObjectLambdaAccessPointPolicy#name} */ readonly name: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/s3control_object_lambda_access_point_policy.html#policy S3ControlObjectLambdaAccessPointPolicy#policy} */ readonly policy: string; } /** * Represents a {@link https://www.terraform.io/docs/providers/aws/r/s3control_object_lambda_access_point_policy.html aws_s3control_object_lambda_access_point_policy} */ export class S3ControlObjectLambdaAccessPointPolicy extends cdktf.TerraformResource { // ================= // STATIC PROPERTIES // ================= public static readonly tfResourceType: string = "aws_s3control_object_lambda_access_point_policy"; // =========== // INITIALIZER // =========== /** * Create a new {@link https://www.terraform.io/docs/providers/aws/r/s3control_object_lambda_access_point_policy.html aws_s3control_object_lambda_access_point_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 S3ControlObjectLambdaAccessPointPolicyConfig */ public constructor(scope: Construct, id: string, config: S3ControlObjectLambdaAccessPointPolicyConfig) { super(scope, id, { terraformResourceType: 'aws_s3control_object_lambda_access_point_policy', terraformGeneratorMetadata: { providerName: 'aws' }, provider: config.provider, dependsOn: config.dependsOn, count: config.count, lifecycle: config.lifecycle }); this._accountId = config.accountId; this._name = config.name; this._policy = config.policy; } // ========== // ATTRIBUTES // ========== // account_id - computed: true, optional: true, required: false private _accountId?: string; public get accountId() { return this.getStringAttribute('account_id'); } public set accountId(value: string) { this._accountId = value; } public resetAccountId() { this._accountId = undefined; } // Temporarily expose input value. Use with caution. public get accountIdInput() { return this._accountId; } // has_public_access_policy - computed: true, optional: false, required: false public get hasPublicAccessPolicy() { return this.getBooleanAttribute('has_public_access_policy') as any; } // id - computed: true, optional: true, required: false public get id() { return this.getStringAttribute('id'); } // name - computed: false, optional: false, required: true private _name?: string; public get name() { return this.getStringAttribute('name'); } public set name(value: string) { this._name = value; } // Temporarily expose input value. Use with caution. public get nameInput() { return this._name; } // policy - computed: false, optional: false, required: true private _policy?: string; public get policy() { return this.getStringAttribute('policy'); } public set policy(value: string) { this._policy = value; } // Temporarily expose input value. Use with caution. public get policyInput() { return this._policy; } // ========= // SYNTHESIS // ========= protected synthesizeAttributes(): { [name: string]: any } { return { account_id: cdktf.stringToTerraform(this._accountId), name: cdktf.stringToTerraform(this._name), policy: cdktf.stringToTerraform(this._policy), }; } }