import * as core from "@terrascript/core"; export interface AccessPointPolicyArgs extends core.ResourceArgs { /** * (Required) The ARN of the access point that you want to associate with the specified policy. */ accessPointArn: string | core.StringOut; /** * (Required) The policy that you want to apply to the specified access point. */ policy: string | core.StringOut; } export class AccessPointPolicy extends core.Resource { /** * (Required) The ARN of the access point that you want to associate with the specified policy. */ @core.attr(String) public accessPointArn!: string | core.StringOut; /** * Indicates whether this access point currently has a policy that allows public access. */ @core.attr(Boolean, { computed: true }) public hasPublicAccessPolicy!: boolean | core.BooleanOut; /** * The AWS account ID and access point name separated by a colon (`:`). */ @core.attr(String, { computed: true }) public id!: string | core.StringOut; /** * (Required) The policy that you want to apply to the specified access point. */ @core.attr(String) public policy!: string | core.StringOut; constructor(name: string, args?: AccessPointPolicyArgs) { super(name, "aws_s3control_access_point_policy", args); } public override getNamespace(): string { return "aws_s3control"; } }