import * as core from "@terrascript/core"; export interface EventSubscriptionArgs extends core.SchemaArgs { event: string | core.StringOut; topicArn: string | core.StringOut; } export class EventSubscription extends core.Schema { @core.attr(String) public event!: string | core.StringOut; @core.attr(String) public topicArn!: string | core.StringOut; } export interface AssessmentTemplateArgs extends core.ResourceArgs { /** * (Required) The duration of the inspector run. */ duration: number | core.NumberOut; /** * (Optional) A block that enables sending notifications about a specified assessment template event to * a designated SNS topic. See [Event Subscriptions](#event-subscriptions) for details. */ eventSubscription?: | core.Array | core.ArrayOut; /** * (Required) The name of the assessment template. */ name: string | core.StringOut; /** * (Required) The rules to be used during the run. */ rulesPackageArns: core.Array | core.ArrayOut; /** * (Optional) Key-value map of tags for the Inspector assessment template. If configured with a provide * r [`default_tags` configuration block](https://registry.terraform.io/providers/hashicorp/aws/latest/ * docs#default_tags-configuration-block) present, tags with matching keys will overwrite those defined * at the provider-level. */ tags?: core.Map | core.MapOut; /** * A map of tags assigned to the resource, including those inherited from the provider [`default_tags` * configuration block](https://registry.terraform.io/providers/hashicorp/aws/latest/docs#default_tags- * configuration-block). */ tagsAll?: core.Map | core.MapOut; /** * (Required) The assessment target ARN to attach the template to. */ targetArn: string | core.StringOut; } export class AssessmentTemplate extends core.Resource { /** * The template assessment ARN. */ @core.attr(String, { computed: true }) public arn!: string | core.StringOut; /** * (Required) The duration of the inspector run. */ @core.attr(Number) public duration!: number | core.NumberOut; /** * (Optional) A block that enables sending notifications about a specified assessment template event to * a designated SNS topic. See [Event Subscriptions](#event-subscriptions) for details. */ @core.attr(EventSubscription, { kind: "array" }) public eventSubscription?: | core.Array | core.ArrayOut; @core.attr(String, { computed: true }) public id!: string | core.StringOut; /** * (Required) The name of the assessment template. */ @core.attr(String) public name!: string | core.StringOut; /** * (Required) The rules to be used during the run. */ @core.attr(String, { kind: "array" }) public rulesPackageArns!: core.Array | core.ArrayOut; /** * (Optional) Key-value map of tags for the Inspector assessment template. If configured with a provide * r [`default_tags` configuration block](https://registry.terraform.io/providers/hashicorp/aws/latest/ * docs#default_tags-configuration-block) present, tags with matching keys will overwrite those defined * at the provider-level. */ @core.attr(String, { kind: "map" }) public tags?: core.Map | core.MapOut; /** * A map of tags assigned to the resource, including those inherited from the provider [`default_tags` * configuration block](https://registry.terraform.io/providers/hashicorp/aws/latest/docs#default_tags- * configuration-block). */ @core.attr(String, { computed: true, kind: "map" }) public tagsAll?: core.Map | core.MapOut; /** * (Required) The assessment target ARN to attach the template to. */ @core.attr(String) public targetArn!: string | core.StringOut; constructor(name: string, args?: AssessmentTemplateArgs) { super(name, "aws_inspector_assessment_template", args); } public override getNamespace(): string { return "aws_inspector"; } }