import * as core from "@terrascript/core"; export interface InputParameterArgs extends core.SchemaArgs { parameterName: string | core.StringOut; parameterValue: string | core.StringOut; } export class InputParameter extends core.Schema { @core.attr(String) public parameterName!: string | core.StringOut; @core.attr(String) public parameterValue!: string | core.StringOut; } export interface ConformancePackArgs extends core.ResourceArgs { /** * (Optional) Amazon S3 bucket where AWS Config stores conformance pack templates. Maximum length of 63 * . */ deliveryS3Bucket?: string | core.StringOut; /** * (Optional) The prefix for the Amazon S3 bucket. Maximum length of 1024. */ deliveryS3KeyPrefix?: string | core.StringOut; /** * (Optional) Set of configuration blocks describing input parameters passed to the conformance pack te * mplate. Documented below. When configured, the parameters must also be included in the `template_bod * y` or in the template stored in Amazon S3 if using `template_s3_uri`. */ inputParameter?: core.Array | core.ArrayOut; /** * (Required, Forces new resource) The name of the conformance pack. Must begin with a letter and conta * in from 1 to 256 alphanumeric characters and hyphens. */ name: string | core.StringOut; /** * (Optional, required if `template_s3_uri` is not provided) A string containing full conformance pack * template body. Maximum length of 51200. Drift detection is not possible with this argument. */ templateBody?: string | core.StringOut; /** * (Optional, required if `template_body` is not provided) Location of file, e.g., `s3://bucketname/pre * fix`, containing the template body. The uri must point to the conformance pack template that is loca * ted in an Amazon S3 bucket in the same region as the conformance pack. Maximum length of 1024. Drift * detection is not possible with this argument. */ templateS3Uri?: string | core.StringOut; } export class ConformancePack extends core.Resource { /** * Amazon Resource Name (ARN) of the conformance pack. */ @core.attr(String, { computed: true }) public arn!: string | core.StringOut; /** * (Optional) Amazon S3 bucket where AWS Config stores conformance pack templates. Maximum length of 63 * . */ @core.attr(String) public deliveryS3Bucket?: string | core.StringOut; /** * (Optional) The prefix for the Amazon S3 bucket. Maximum length of 1024. */ @core.attr(String) public deliveryS3KeyPrefix?: string | core.StringOut; @core.attr(String, { computed: true }) public id!: string | core.StringOut; /** * (Optional) Set of configuration blocks describing input parameters passed to the conformance pack te * mplate. Documented below. When configured, the parameters must also be included in the `template_bod * y` or in the template stored in Amazon S3 if using `template_s3_uri`. */ @core.attr(InputParameter, { kind: "array" }) public inputParameter?: | core.Array | core.ArrayOut; /** * (Required, Forces new resource) The name of the conformance pack. Must begin with a letter and conta * in from 1 to 256 alphanumeric characters and hyphens. */ @core.attr(String) public name!: string | core.StringOut; /** * (Optional, required if `template_s3_uri` is not provided) A string containing full conformance pack * template body. Maximum length of 51200. Drift detection is not possible with this argument. */ @core.attr(String) public templateBody?: string | core.StringOut; /** * (Optional, required if `template_body` is not provided) Location of file, e.g., `s3://bucketname/pre * fix`, containing the template body. The uri must point to the conformance pack template that is loca * ted in an Amazon S3 bucket in the same region as the conformance pack. Maximum length of 1024. Drift * detection is not possible with this argument. */ @core.attr(String) public templateS3Uri?: string | core.StringOut; constructor(name: string, args?: ConformancePackArgs) { super(name, "aws_config_conformance_pack", args); } public override getNamespace(): string { return "aws_config"; } }