import * as core from "@terrascript/core"; export interface StopConditionArgs extends core.SchemaArgs { source: string | core.StringOut; value?: string | core.StringOut; } export class StopCondition extends core.Schema { @core.attr(String) public source!: string | core.StringOut; @core.attr(String) public value?: string | core.StringOut; } export interface ResourceTagArgs extends core.SchemaArgs { key: string | core.StringOut; value: string | core.StringOut; } export class ResourceTag extends core.Schema { @core.attr(String) public key!: string | core.StringOut; @core.attr(String) public value!: string | core.StringOut; } export interface FilterArgs extends core.SchemaArgs { path: string | core.StringOut; values: core.Array | core.ArrayOut; } export class Filter extends core.Schema { @core.attr(String) public path!: string | core.StringOut; @core.attr(String, { kind: "array" }) public values!: core.Array | core.ArrayOut; } export interface TargetArgs extends core.SchemaArgs { filter?: core.Array | core.ArrayOut; name: string | core.StringOut; resourceArns?: core.Array | core.ArrayOut; resourceTag?: core.Array | core.ArrayOut; resourceType: string | core.StringOut; selectionMode: string | core.StringOut; } export class Target extends core.Schema { @core.attr(Filter, { kind: "array" }) public filter?: core.Array | core.ArrayOut; @core.attr(String) public name!: string | core.StringOut; @core.attr(String, { kind: "array" }) public resourceArns?: core.Array | core.ArrayOut; @core.attr(ResourceTag, { kind: "array" }) public resourceTag?: core.Array | core.ArrayOut; @core.attr(String) public resourceType!: string | core.StringOut; @core.attr(String) public selectionMode!: string | core.StringOut; } export interface ParameterArgs extends core.SchemaArgs { key: string | core.StringOut; value: string | core.StringOut; } export class Parameter extends core.Schema { @core.attr(String) public key!: string | core.StringOut; @core.attr(String) public value!: string | core.StringOut; } export interface ActionTargetArgs extends core.SchemaArgs { key: string | core.StringOut; value: string | core.StringOut; } export class ActionTarget extends core.Schema { @core.attr(String) public key!: string | core.StringOut; @core.attr(String) public value!: string | core.StringOut; } export interface ActionArgs extends core.SchemaArgs { actionId: string | core.StringOut; description?: string | core.StringOut; name: string | core.StringOut; parameter?: core.Array | core.ArrayOut; startAfter?: core.Array | core.ArrayOut; target?: ActionTarget; } export class Action extends core.Schema { @core.attr(String) public actionId!: string | core.StringOut; @core.attr(String) public description?: string | core.StringOut; @core.attr(String) public name!: string | core.StringOut; @core.attr(Parameter, { kind: "array" }) public parameter?: core.Array | core.ArrayOut; @core.attr(String, { kind: "array" }) public startAfter?: core.Array | core.ArrayOut; @core.attr(ActionTarget) public target?: ActionTarget; } export interface ExperimentTemplateArgs extends core.ResourceArgs { /** * (Required) Action to be performed during an experiment. See below. */ action: core.Array | core.ArrayOut; /** * (Required) Description for the experiment template. */ description: string | core.StringOut; /** * (Required) ARN of an IAM role that grants the AWS FIS service permission to perform service actions * on your behalf. */ roleArn: string | core.StringOut; /** * (Required) When an ongoing experiment should be stopped. See below. */ stopCondition: core.Array | core.ArrayOut; /** * (Optional) Key-value mapping of tags. If configured with a provider [`default_tags` configuration bl * ock](https://registry.terraform.io/providers/hashicorp/aws/latest/docs#default_tags-configuration-bl * ock) present, tags with matching keys will overwrite those defined at the provider-level. */ tags?: core.Map | core.MapOut; tagsAll?: core.Map | core.MapOut; /** * (Optional) Target of an action. See below. */ target?: core.Array | core.ArrayOut; } export class ExperimentTemplate extends core.Resource { /** * (Required) Action to be performed during an experiment. See below. */ @core.attr(Action, { kind: "array" }) public action!: core.Array | core.ArrayOut; /** * (Required) Description for the experiment template. */ @core.attr(String) public description!: string | core.StringOut; /** * Experiment Template ID. */ @core.attr(String, { computed: true }) public id!: string | core.StringOut; /** * (Required) ARN of an IAM role that grants the AWS FIS service permission to perform service actions * on your behalf. */ @core.attr(String) public roleArn!: string | core.StringOut; /** * (Required) When an ongoing experiment should be stopped. See below. */ @core.attr(StopCondition, { kind: "array" }) public stopCondition!: | core.Array | core.ArrayOut; /** * (Optional) Key-value mapping of tags. If configured with a provider [`default_tags` configuration bl * ock](https://registry.terraform.io/providers/hashicorp/aws/latest/docs#default_tags-configuration-bl * ock) present, tags with matching keys will overwrite those defined at the provider-level. */ @core.attr(String, { kind: "map" }) public tags?: core.Map | core.MapOut; @core.attr(String, { computed: true, kind: "map" }) public tagsAll?: core.Map | core.MapOut; /** * (Optional) Target of an action. See below. */ @core.attr(Target, { kind: "array" }) public target?: core.Array | core.ArrayOut; constructor(name: string, args?: ExperimentTemplateArgs) { super(name, "aws_fis_experiment_template", args); } public override getNamespace(): string { return "aws_fis"; } }