import * as core from "@terrascript/core"; export interface ScopeArgs extends core.SchemaArgs { complianceResourceId?: string | core.StringOut; complianceResourceTypes?: core.Array | core.ArrayOut; tagKey?: string | core.StringOut; tagValue?: string | core.StringOut; } export class Scope extends core.Schema { @core.attr(String) public complianceResourceId?: string | core.StringOut; @core.attr(String, { kind: "array" }) public complianceResourceTypes?: | core.Array | core.ArrayOut; @core.attr(String) public tagKey?: string | core.StringOut; @core.attr(String) public tagValue?: string | core.StringOut; } export interface SourceDetailArgs extends core.SchemaArgs { eventSource?: string | core.StringOut; maximumExecutionFrequency?: string | core.StringOut; messageType?: string | core.StringOut; } export class SourceDetail extends core.Schema { @core.attr(String) public eventSource?: string | core.StringOut; @core.attr(String) public maximumExecutionFrequency?: string | core.StringOut; @core.attr(String) public messageType?: string | core.StringOut; } export interface CustomPolicyDetailsArgs extends core.SchemaArgs { enableDebugLogDelivery?: boolean | core.BooleanOut; policyRuntime: string | core.StringOut; policyText: string | core.StringOut; } export class CustomPolicyDetails extends core.Schema { @core.attr(Boolean) public enableDebugLogDelivery?: boolean | core.BooleanOut; @core.attr(String) public policyRuntime!: string | core.StringOut; @core.attr(String) public policyText!: string | core.StringOut; } export interface SourceArgs extends core.SchemaArgs { customPolicyDetails?: CustomPolicyDetails; owner: string | core.StringOut; sourceDetail?: core.Array | core.ArrayOut; sourceIdentifier?: string | core.StringOut; } export class Source extends core.Schema { @core.attr(CustomPolicyDetails) public customPolicyDetails?: CustomPolicyDetails; @core.attr(String) public owner!: string | core.StringOut; @core.attr(SourceDetail, { kind: "array" }) public sourceDetail?: core.Array | core.ArrayOut; @core.attr(String) public sourceIdentifier?: string | core.StringOut; } export interface ConfigRuleArgs extends core.ResourceArgs { /** * (Optional) Description of the rule */ description?: string | core.StringOut; /** * (Optional) A string in JSON format that is passed to the AWS Config rule Lambda function. */ inputParameters?: string | core.StringOut; /** * (Optional) The maximum frequency with which AWS Config runs evaluations for a rule. */ maximumExecutionFrequency?: string | core.StringOut; /** * (Required) The name of the rule */ name: string | core.StringOut; /** * (Optional) Scope defines which resources can trigger an evaluation for the rule. See [Source](#sourc * e) Below. */ scope?: Scope; /** * (Required) Source specifies the rule owner, the rule identifier, and the notifications that cause th * e function to evaluate your AWS resources. See [Scope](#scope) Below. */ source: Source; /** * (Optional) A map of tags to assign to the resource. If configured with a provider [`default_tags` co * nfiguration block](https://registry.terraform.io/providers/hashicorp/aws/latest/docs#default_tags-co * nfiguration-block) present, tags with matching keys will overwrite those defined at the provider-lev * el. */ 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; } export class ConfigRule extends core.Resource { /** * The ARN of the config rule */ @core.attr(String, { computed: true }) public arn!: string | core.StringOut; /** * (Optional) Description of the rule */ @core.attr(String) public description?: string | core.StringOut; @core.attr(String, { computed: true }) public id!: string | core.StringOut; /** * (Optional) A string in JSON format that is passed to the AWS Config rule Lambda function. */ @core.attr(String) public inputParameters?: string | core.StringOut; /** * (Optional) The maximum frequency with which AWS Config runs evaluations for a rule. */ @core.attr(String) public maximumExecutionFrequency?: string | core.StringOut; /** * (Required) The name of the rule */ @core.attr(String) public name!: string | core.StringOut; /** * The ID of the config rule */ @core.attr(String, { computed: true }) public ruleId!: string | core.StringOut; /** * (Optional) Scope defines which resources can trigger an evaluation for the rule. See [Source](#sourc * e) Below. */ @core.attr(Scope) public scope?: Scope; /** * (Required) Source specifies the rule owner, the rule identifier, and the notifications that cause th * e function to evaluate your AWS resources. See [Scope](#scope) Below. */ @core.attr(Source) public source!: Source; /** * (Optional) A map of tags to assign to the resource. If configured with a provider [`default_tags` co * nfiguration block](https://registry.terraform.io/providers/hashicorp/aws/latest/docs#default_tags-co * nfiguration-block) present, tags with matching keys will overwrite those defined at the provider-lev * el. */ @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; constructor(name: string, args?: ConfigRuleArgs) { super(name, "aws_config_config_rule", args); } public override getNamespace(): string { return "aws_config"; } }