aws logo
AWS Classic v5.28.0, Jan 23 23

aws.fis.ExperimentTemplate

Provides an FIS Experiment Template, which can be used to run an experiment. An experiment template contains one or more actions to run on specified targets during an experiment. It also contains the stop conditions that prevent the experiment from going out of bounds. See Amazon Fault Injection Simulator for more information.

Example Usage

using System.Collections.Generic;
using Pulumi;
using Aws = Pulumi.Aws;

return await Deployment.RunAsync(() => 
{
    var example = new Aws.Fis.ExperimentTemplate("example", new()
    {
        Description = "example",
        RoleArn = aws_iam_role.Example.Arn,
        StopConditions = new[]
        {
            new Aws.Fis.Inputs.ExperimentTemplateStopConditionArgs
            {
                Source = "none",
            },
        },
        Actions = new[]
        {
            new Aws.Fis.Inputs.ExperimentTemplateActionArgs
            {
                Name = "example-action",
                ActionId = "aws:ec2:terminate-instances",
                Target = new Aws.Fis.Inputs.ExperimentTemplateActionTargetArgs
                {
                    Key = "Instances",
                    Value = "example-target",
                },
            },
        },
        Targets = new[]
        {
            new Aws.Fis.Inputs.ExperimentTemplateTargetArgs
            {
                Name = "example-target",
                ResourceType = "aws:ec2:instance",
                SelectionMode = "COUNT(1)",
                ResourceTags = new[]
                {
                    new Aws.Fis.Inputs.ExperimentTemplateTargetResourceTagArgs
                    {
                        Key = "env",
                        Value = "example",
                    },
                },
            },
        },
    });

});
package main

import (
	"github.com/pulumi/pulumi-aws/sdk/v5/go/aws/fis"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := fis.NewExperimentTemplate(ctx, "example", &fis.ExperimentTemplateArgs{
			Description: pulumi.String("example"),
			RoleArn:     pulumi.Any(aws_iam_role.Example.Arn),
			StopConditions: fis.ExperimentTemplateStopConditionArray{
				&fis.ExperimentTemplateStopConditionArgs{
					Source: pulumi.String("none"),
				},
			},
			Actions: fis.ExperimentTemplateActionArray{
				&fis.ExperimentTemplateActionArgs{
					Name:     pulumi.String("example-action"),
					ActionId: pulumi.String("aws:ec2:terminate-instances"),
					Target: &fis.ExperimentTemplateActionTargetArgs{
						Key:   pulumi.String("Instances"),
						Value: pulumi.String("example-target"),
					},
				},
			},
			Targets: fis.ExperimentTemplateTargetArray{
				&fis.ExperimentTemplateTargetArgs{
					Name:          pulumi.String("example-target"),
					ResourceType:  pulumi.String("aws:ec2:instance"),
					SelectionMode: pulumi.String("COUNT(1)"),
					ResourceTags: fis.ExperimentTemplateTargetResourceTagArray{
						&fis.ExperimentTemplateTargetResourceTagArgs{
							Key:   pulumi.String("env"),
							Value: pulumi.String("example"),
						},
					},
				},
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.fis.ExperimentTemplate;
import com.pulumi.aws.fis.ExperimentTemplateArgs;
import com.pulumi.aws.fis.inputs.ExperimentTemplateStopConditionArgs;
import com.pulumi.aws.fis.inputs.ExperimentTemplateActionArgs;
import com.pulumi.aws.fis.inputs.ExperimentTemplateActionTargetArgs;
import com.pulumi.aws.fis.inputs.ExperimentTemplateTargetArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;

public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }

    public static void stack(Context ctx) {
        var example = new ExperimentTemplate("example", ExperimentTemplateArgs.builder()        
            .description("example")
            .roleArn(aws_iam_role.example().arn())
            .stopConditions(ExperimentTemplateStopConditionArgs.builder()
                .source("none")
                .build())
            .actions(ExperimentTemplateActionArgs.builder()
                .name("example-action")
                .actionId("aws:ec2:terminate-instances")
                .target(ExperimentTemplateActionTargetArgs.builder()
                    .key("Instances")
                    .value("example-target")
                    .build())
                .build())
            .targets(ExperimentTemplateTargetArgs.builder()
                .name("example-target")
                .resourceType("aws:ec2:instance")
                .selectionMode("COUNT(1)")
                .resourceTags(ExperimentTemplateTargetResourceTagArgs.builder()
                    .key("env")
                    .value("example")
                    .build())
                .build())
            .build());

    }
}
import pulumi
import pulumi_aws as aws

example = aws.fis.ExperimentTemplate("example",
    description="example",
    role_arn=aws_iam_role["example"]["arn"],
    stop_conditions=[aws.fis.ExperimentTemplateStopConditionArgs(
        source="none",
    )],
    actions=[aws.fis.ExperimentTemplateActionArgs(
        name="example-action",
        action_id="aws:ec2:terminate-instances",
        target=aws.fis.ExperimentTemplateActionTargetArgs(
            key="Instances",
            value="example-target",
        ),
    )],
    targets=[aws.fis.ExperimentTemplateTargetArgs(
        name="example-target",
        resource_type="aws:ec2:instance",
        selection_mode="COUNT(1)",
        resource_tags=[aws.fis.ExperimentTemplateTargetResourceTagArgs(
            key="env",
            value="example",
        )],
    )])
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";

const example = new aws.fis.ExperimentTemplate("example", {
    description: "example",
    roleArn: aws_iam_role.example.arn,
    stopConditions: [{
        source: "none",
    }],
    actions: [{
        name: "example-action",
        actionId: "aws:ec2:terminate-instances",
        target: {
            key: "Instances",
            value: "example-target",
        },
    }],
    targets: [{
        name: "example-target",
        resourceType: "aws:ec2:instance",
        selectionMode: "COUNT(1)",
        resourceTags: [{
            key: "env",
            value: "example",
        }],
    }],
});
resources:
  example:
    type: aws:fis:ExperimentTemplate
    properties:
      description: example
      roleArn: ${aws_iam_role.example.arn}
      stopConditions:
        - source: none
      actions:
        - name: example-action
          actionId: aws:ec2:terminate-instances
          target:
            key: Instances
            value: example-target
      targets:
        - name: example-target
          resourceType: aws:ec2:instance
          selectionMode: COUNT(1)
          resourceTags:
            - key: env
              value: example

Create ExperimentTemplate Resource

new ExperimentTemplate(name: string, args: ExperimentTemplateArgs, opts?: CustomResourceOptions);
@overload
def ExperimentTemplate(resource_name: str,
                       opts: Optional[ResourceOptions] = None,
                       actions: Optional[Sequence[ExperimentTemplateActionArgs]] = None,
                       description: Optional[str] = None,
                       role_arn: Optional[str] = None,
                       stop_conditions: Optional[Sequence[ExperimentTemplateStopConditionArgs]] = None,
                       tags: Optional[Mapping[str, str]] = None,
                       targets: Optional[Sequence[ExperimentTemplateTargetArgs]] = None)
@overload
def ExperimentTemplate(resource_name: str,
                       args: ExperimentTemplateArgs,
                       opts: Optional[ResourceOptions] = None)
func NewExperimentTemplate(ctx *Context, name string, args ExperimentTemplateArgs, opts ...ResourceOption) (*ExperimentTemplate, error)
public ExperimentTemplate(string name, ExperimentTemplateArgs args, CustomResourceOptions? opts = null)
public ExperimentTemplate(String name, ExperimentTemplateArgs args)
public ExperimentTemplate(String name, ExperimentTemplateArgs args, CustomResourceOptions options)
type: aws:fis:ExperimentTemplate
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

name string
The unique name of the resource.
args ExperimentTemplateArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name str
The unique name of the resource.
args ExperimentTemplateArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name string
The unique name of the resource.
args ExperimentTemplateArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args ExperimentTemplateArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name String
The unique name of the resource.
args ExperimentTemplateArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

ExperimentTemplate Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

Inputs

The ExperimentTemplate resource accepts the following input properties:

Actions List<Pulumi.Aws.Fis.Inputs.ExperimentTemplateActionArgs>

Action to be performed during an experiment. See below.

Description string

Description for the experiment template.

RoleArn string

ARN of an IAM role that grants the AWS FIS service permission to perform service actions on your behalf.

StopConditions List<Pulumi.Aws.Fis.Inputs.ExperimentTemplateStopConditionArgs>

When an ongoing experiment should be stopped. See below.

Tags Dictionary<string, string>

Key-value mapping of tags. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

Targets List<Pulumi.Aws.Fis.Inputs.ExperimentTemplateTargetArgs>

Target of an action. See below.

Actions []ExperimentTemplateActionArgs

Action to be performed during an experiment. See below.

Description string

Description for the experiment template.

RoleArn string

ARN of an IAM role that grants the AWS FIS service permission to perform service actions on your behalf.

StopConditions []ExperimentTemplateStopConditionArgs

When an ongoing experiment should be stopped. See below.

Tags map[string]string

Key-value mapping of tags. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

Targets []ExperimentTemplateTargetArgs

Target of an action. See below.

actions List<ExperimentTemplateActionArgs>

Action to be performed during an experiment. See below.

description String

Description for the experiment template.

roleArn String

ARN of an IAM role that grants the AWS FIS service permission to perform service actions on your behalf.

stopConditions List<ExperimentTemplateStopConditionArgs>

When an ongoing experiment should be stopped. See below.

tags Map<String,String>

Key-value mapping of tags. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

targets List<ExperimentTemplateTargetArgs>

Target of an action. See below.

actions ExperimentTemplateActionArgs[]

Action to be performed during an experiment. See below.

description string

Description for the experiment template.

roleArn string

ARN of an IAM role that grants the AWS FIS service permission to perform service actions on your behalf.

stopConditions ExperimentTemplateStopConditionArgs[]

When an ongoing experiment should be stopped. See below.

tags {[key: string]: string}

Key-value mapping of tags. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

targets ExperimentTemplateTargetArgs[]

Target of an action. See below.

actions Sequence[ExperimentTemplateActionArgs]

Action to be performed during an experiment. See below.

description str

Description for the experiment template.

role_arn str

ARN of an IAM role that grants the AWS FIS service permission to perform service actions on your behalf.

stop_conditions Sequence[ExperimentTemplateStopConditionArgs]

When an ongoing experiment should be stopped. See below.

tags Mapping[str, str]

Key-value mapping of tags. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

targets Sequence[ExperimentTemplateTargetArgs]

Target of an action. See below.

actions List<Property Map>

Action to be performed during an experiment. See below.

description String

Description for the experiment template.

roleArn String

ARN of an IAM role that grants the AWS FIS service permission to perform service actions on your behalf.

stopConditions List<Property Map>

When an ongoing experiment should be stopped. See below.

tags Map<String>

Key-value mapping of tags. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

targets List<Property Map>

Target of an action. See below.

Outputs

All input properties are implicitly available as output properties. Additionally, the ExperimentTemplate resource produces the following output properties:

Id string

The provider-assigned unique ID for this managed resource.

TagsAll Dictionary<string, string>
Id string

The provider-assigned unique ID for this managed resource.

TagsAll map[string]string
id String

The provider-assigned unique ID for this managed resource.

tagsAll Map<String,String>
id string

The provider-assigned unique ID for this managed resource.

tagsAll {[key: string]: string}
id str

The provider-assigned unique ID for this managed resource.

tags_all Mapping[str, str]
id String

The provider-assigned unique ID for this managed resource.

tagsAll Map<String>

Look up Existing ExperimentTemplate Resource

Get an existing ExperimentTemplate resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

public static get(name: string, id: Input<ID>, state?: ExperimentTemplateState, opts?: CustomResourceOptions): ExperimentTemplate
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        actions: Optional[Sequence[ExperimentTemplateActionArgs]] = None,
        description: Optional[str] = None,
        role_arn: Optional[str] = None,
        stop_conditions: Optional[Sequence[ExperimentTemplateStopConditionArgs]] = None,
        tags: Optional[Mapping[str, str]] = None,
        tags_all: Optional[Mapping[str, str]] = None,
        targets: Optional[Sequence[ExperimentTemplateTargetArgs]] = None) -> ExperimentTemplate
func GetExperimentTemplate(ctx *Context, name string, id IDInput, state *ExperimentTemplateState, opts ...ResourceOption) (*ExperimentTemplate, error)
public static ExperimentTemplate Get(string name, Input<string> id, ExperimentTemplateState? state, CustomResourceOptions? opts = null)
public static ExperimentTemplate get(String name, Output<String> id, ExperimentTemplateState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
resource_name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
The following state arguments are supported:
Actions List<Pulumi.Aws.Fis.Inputs.ExperimentTemplateActionArgs>

Action to be performed during an experiment. See below.

Description string

Description for the experiment template.

RoleArn string

ARN of an IAM role that grants the AWS FIS service permission to perform service actions on your behalf.

StopConditions List<Pulumi.Aws.Fis.Inputs.ExperimentTemplateStopConditionArgs>

When an ongoing experiment should be stopped. See below.

Tags Dictionary<string, string>

Key-value mapping of tags. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

TagsAll Dictionary<string, string>
Targets List<Pulumi.Aws.Fis.Inputs.ExperimentTemplateTargetArgs>

Target of an action. See below.

Actions []ExperimentTemplateActionArgs

Action to be performed during an experiment. See below.

Description string

Description for the experiment template.

RoleArn string

ARN of an IAM role that grants the AWS FIS service permission to perform service actions on your behalf.

StopConditions []ExperimentTemplateStopConditionArgs

When an ongoing experiment should be stopped. See below.

Tags map[string]string

Key-value mapping of tags. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

TagsAll map[string]string
Targets []ExperimentTemplateTargetArgs

Target of an action. See below.

actions List<ExperimentTemplateActionArgs>

Action to be performed during an experiment. See below.

description String

Description for the experiment template.

roleArn String

ARN of an IAM role that grants the AWS FIS service permission to perform service actions on your behalf.

stopConditions List<ExperimentTemplateStopConditionArgs>

When an ongoing experiment should be stopped. See below.

tags Map<String,String>

Key-value mapping of tags. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

tagsAll Map<String,String>
targets List<ExperimentTemplateTargetArgs>

Target of an action. See below.

actions ExperimentTemplateActionArgs[]

Action to be performed during an experiment. See below.

description string

Description for the experiment template.

roleArn string

ARN of an IAM role that grants the AWS FIS service permission to perform service actions on your behalf.

stopConditions ExperimentTemplateStopConditionArgs[]

When an ongoing experiment should be stopped. See below.

tags {[key: string]: string}

Key-value mapping of tags. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

tagsAll {[key: string]: string}
targets ExperimentTemplateTargetArgs[]

Target of an action. See below.

actions Sequence[ExperimentTemplateActionArgs]

Action to be performed during an experiment. See below.

description str

Description for the experiment template.

role_arn str

ARN of an IAM role that grants the AWS FIS service permission to perform service actions on your behalf.

stop_conditions Sequence[ExperimentTemplateStopConditionArgs]

When an ongoing experiment should be stopped. See below.

tags Mapping[str, str]

Key-value mapping of tags. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

tags_all Mapping[str, str]
targets Sequence[ExperimentTemplateTargetArgs]

Target of an action. See below.

actions List<Property Map>

Action to be performed during an experiment. See below.

description String

Description for the experiment template.

roleArn String

ARN of an IAM role that grants the AWS FIS service permission to perform service actions on your behalf.

stopConditions List<Property Map>

When an ongoing experiment should be stopped. See below.

tags Map<String>

Key-value mapping of tags. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

tagsAll Map<String>
targets List<Property Map>

Target of an action. See below.

Supporting Types

ExperimentTemplateAction

ActionId string

ID of the action. To find out what actions are supported see AWS FIS actions reference.

Name string

Friendly name of the action.

Description string

Description of the action.

Parameters List<Pulumi.Aws.Fis.Inputs.ExperimentTemplateActionParameter>

Parameter(s) for the action, if applicable. See below.

StartAfters List<string>

Set of action names that must complete before this action can be executed.

Target Pulumi.Aws.Fis.Inputs.ExperimentTemplateActionTarget

Action's target, if applicable. See below.

ActionId string

ID of the action. To find out what actions are supported see AWS FIS actions reference.

Name string

Friendly name of the action.

Description string

Description of the action.

Parameters []ExperimentTemplateActionParameter

Parameter(s) for the action, if applicable. See below.

StartAfters []string

Set of action names that must complete before this action can be executed.

Target ExperimentTemplateActionTarget

Action's target, if applicable. See below.

actionId String

ID of the action. To find out what actions are supported see AWS FIS actions reference.

name String

Friendly name of the action.

description String

Description of the action.

parameters List<ExperimentTemplateActionParameter>

Parameter(s) for the action, if applicable. See below.

startAfters List<String>

Set of action names that must complete before this action can be executed.

target ExperimentTemplateActionTarget

Action's target, if applicable. See below.

actionId string

ID of the action. To find out what actions are supported see AWS FIS actions reference.

name string

Friendly name of the action.

description string

Description of the action.

parameters ExperimentTemplateActionParameter[]

Parameter(s) for the action, if applicable. See below.

startAfters string[]

Set of action names that must complete before this action can be executed.

target ExperimentTemplateActionTarget

Action's target, if applicable. See below.

action_id str

ID of the action. To find out what actions are supported see AWS FIS actions reference.

name str

Friendly name of the action.

description str

Description of the action.

parameters Sequence[ExperimentTemplateActionParameter]

Parameter(s) for the action, if applicable. See below.

start_afters Sequence[str]

Set of action names that must complete before this action can be executed.

target ExperimentTemplateActionTarget

Action's target, if applicable. See below.

actionId String

ID of the action. To find out what actions are supported see AWS FIS actions reference.

name String

Friendly name of the action.

description String

Description of the action.

parameters List<Property Map>

Parameter(s) for the action, if applicable. See below.

startAfters List<String>

Set of action names that must complete before this action can be executed.

target Property Map

Action's target, if applicable. See below.

ExperimentTemplateActionParameter

Key string

Parameter name.

Value string

Parameter value.

Key string

Parameter name.

Value string

Parameter value.

key String

Parameter name.

value String

Parameter value.

key string

Parameter name.

value string

Parameter value.

key str

Parameter name.

value str

Parameter value.

key String

Parameter name.

value String

Parameter value.

ExperimentTemplateActionTarget

Key string

Target type. Valid values are Clusters (ECS Clusters), DBInstances (RDS DB Instances), Instances (EC2 Instances), Nodegroups (EKS Node groups), Roles (IAM Roles), SpotInstances (EC2 Spot Instances).

Value string

Target name, referencing a corresponding target.

Key string

Target type. Valid values are Clusters (ECS Clusters), DBInstances (RDS DB Instances), Instances (EC2 Instances), Nodegroups (EKS Node groups), Roles (IAM Roles), SpotInstances (EC2 Spot Instances).

Value string

Target name, referencing a corresponding target.

key String

Target type. Valid values are Clusters (ECS Clusters), DBInstances (RDS DB Instances), Instances (EC2 Instances), Nodegroups (EKS Node groups), Roles (IAM Roles), SpotInstances (EC2 Spot Instances).

value String

Target name, referencing a corresponding target.

key string

Target type. Valid values are Clusters (ECS Clusters), DBInstances (RDS DB Instances), Instances (EC2 Instances), Nodegroups (EKS Node groups), Roles (IAM Roles), SpotInstances (EC2 Spot Instances).

value string

Target name, referencing a corresponding target.

key str

Target type. Valid values are Clusters (ECS Clusters), DBInstances (RDS DB Instances), Instances (EC2 Instances), Nodegroups (EKS Node groups), Roles (IAM Roles), SpotInstances (EC2 Spot Instances).

value str

Target name, referencing a corresponding target.

key String

Target type. Valid values are Clusters (ECS Clusters), DBInstances (RDS DB Instances), Instances (EC2 Instances), Nodegroups (EKS Node groups), Roles (IAM Roles), SpotInstances (EC2 Spot Instances).

value String

Target name, referencing a corresponding target.

ExperimentTemplateStopCondition

Source string

Source of the condition. One of none, aws:cloudwatch:alarm.

Value string

ARN of the CloudWatch alarm. Required if the source is a CloudWatch alarm.

Source string

Source of the condition. One of none, aws:cloudwatch:alarm.

Value string

ARN of the CloudWatch alarm. Required if the source is a CloudWatch alarm.

source String

Source of the condition. One of none, aws:cloudwatch:alarm.

value String

ARN of the CloudWatch alarm. Required if the source is a CloudWatch alarm.

source string

Source of the condition. One of none, aws:cloudwatch:alarm.

value string

ARN of the CloudWatch alarm. Required if the source is a CloudWatch alarm.

source str

Source of the condition. One of none, aws:cloudwatch:alarm.

value str

ARN of the CloudWatch alarm. Required if the source is a CloudWatch alarm.

source String

Source of the condition. One of none, aws:cloudwatch:alarm.

value String

ARN of the CloudWatch alarm. Required if the source is a CloudWatch alarm.

ExperimentTemplateTarget

Name string

Friendly name given to the target.

ResourceType string

AWS resource type. The resource type must be supported for the specified action. To find out what resource types are supported, see Targets for AWS FIS.

SelectionMode string

Scopes the identified resources. Valid values are ALL (all identified resources), COUNT(n) (randomly select n of the identified resources), PERCENT(n) (randomly select n percent of the identified resources).

Filters List<Pulumi.Aws.Fis.Inputs.ExperimentTemplateTargetFilter>

Filter(s) for the target. Filters can be used to select resources based on specific attributes returned by the respective describe action of the resource type. For more information, see Targets for AWS FIS. See below.

ResourceArns List<string>

Set of ARNs of the resources to target with an action. Conflicts with resource_tag.

ResourceTags List<Pulumi.Aws.Fis.Inputs.ExperimentTemplateTargetResourceTag>

Tag(s) the resources need to have to be considered a valid target for an action. Conflicts with resource_arns. See below.

Name string

Friendly name given to the target.

ResourceType string

AWS resource type. The resource type must be supported for the specified action. To find out what resource types are supported, see Targets for AWS FIS.

SelectionMode string

Scopes the identified resources. Valid values are ALL (all identified resources), COUNT(n) (randomly select n of the identified resources), PERCENT(n) (randomly select n percent of the identified resources).

Filters []ExperimentTemplateTargetFilter

Filter(s) for the target. Filters can be used to select resources based on specific attributes returned by the respective describe action of the resource type. For more information, see Targets for AWS FIS. See below.

ResourceArns []string

Set of ARNs of the resources to target with an action. Conflicts with resource_tag.

ResourceTags []ExperimentTemplateTargetResourceTag

Tag(s) the resources need to have to be considered a valid target for an action. Conflicts with resource_arns. See below.

name String

Friendly name given to the target.

resourceType String

AWS resource type. The resource type must be supported for the specified action. To find out what resource types are supported, see Targets for AWS FIS.

selectionMode String

Scopes the identified resources. Valid values are ALL (all identified resources), COUNT(n) (randomly select n of the identified resources), PERCENT(n) (randomly select n percent of the identified resources).

filters List<ExperimentTemplateTargetFilter>

Filter(s) for the target. Filters can be used to select resources based on specific attributes returned by the respective describe action of the resource type. For more information, see Targets for AWS FIS. See below.

resourceArns List<String>

Set of ARNs of the resources to target with an action. Conflicts with resource_tag.

resourceTags List<ExperimentTemplateTargetResourceTag>

Tag(s) the resources need to have to be considered a valid target for an action. Conflicts with resource_arns. See below.

name string

Friendly name given to the target.

resourceType string

AWS resource type. The resource type must be supported for the specified action. To find out what resource types are supported, see Targets for AWS FIS.

selectionMode string

Scopes the identified resources. Valid values are ALL (all identified resources), COUNT(n) (randomly select n of the identified resources), PERCENT(n) (randomly select n percent of the identified resources).

filters ExperimentTemplateTargetFilter[]

Filter(s) for the target. Filters can be used to select resources based on specific attributes returned by the respective describe action of the resource type. For more information, see Targets for AWS FIS. See below.

resourceArns string[]

Set of ARNs of the resources to target with an action. Conflicts with resource_tag.

resourceTags ExperimentTemplateTargetResourceTag[]

Tag(s) the resources need to have to be considered a valid target for an action. Conflicts with resource_arns. See below.

name str

Friendly name given to the target.

resource_type str

AWS resource type. The resource type must be supported for the specified action. To find out what resource types are supported, see Targets for AWS FIS.

selection_mode str

Scopes the identified resources. Valid values are ALL (all identified resources), COUNT(n) (randomly select n of the identified resources), PERCENT(n) (randomly select n percent of the identified resources).

filters Sequence[ExperimentTemplateTargetFilter]

Filter(s) for the target. Filters can be used to select resources based on specific attributes returned by the respective describe action of the resource type. For more information, see Targets for AWS FIS. See below.

resource_arns Sequence[str]

Set of ARNs of the resources to target with an action. Conflicts with resource_tag.

resource_tags Sequence[ExperimentTemplateTargetResourceTag]

Tag(s) the resources need to have to be considered a valid target for an action. Conflicts with resource_arns. See below.

name String

Friendly name given to the target.

resourceType String

AWS resource type. The resource type must be supported for the specified action. To find out what resource types are supported, see Targets for AWS FIS.

selectionMode String

Scopes the identified resources. Valid values are ALL (all identified resources), COUNT(n) (randomly select n of the identified resources), PERCENT(n) (randomly select n percent of the identified resources).

filters List<Property Map>

Filter(s) for the target. Filters can be used to select resources based on specific attributes returned by the respective describe action of the resource type. For more information, see Targets for AWS FIS. See below.

resourceArns List<String>

Set of ARNs of the resources to target with an action. Conflicts with resource_tag.

resourceTags List<Property Map>

Tag(s) the resources need to have to be considered a valid target for an action. Conflicts with resource_arns. See below.

ExperimentTemplateTargetFilter

Path string

Attribute path for the filter.

Values List<string>

Set of attribute values for the filter.

Path string

Attribute path for the filter.

Values []string

Set of attribute values for the filter.

path String

Attribute path for the filter.

values List<String>

Set of attribute values for the filter.

path string

Attribute path for the filter.

values string[]

Set of attribute values for the filter.

path str

Attribute path for the filter.

values Sequence[str]

Set of attribute values for the filter.

path String

Attribute path for the filter.

values List<String>

Set of attribute values for the filter.

ExperimentTemplateTargetResourceTag

Key string

Tag key.

Value string

Tag value.

Key string

Tag key.

Value string

Tag value.

key String

Tag key.

value String

Tag value.

key string

Tag key.

value string

Tag value.

key str

Tag key.

value str

Tag value.

key String

Tag key.

value String

Tag value.

Import

FIS Experiment Templates can be imported using the id, e.g.

 $ pulumi import aws:fis/experimentTemplate:ExperimentTemplate template EXT123AbCdEfGhIjK

Package Details

Repository
AWS Classic pulumi/pulumi-aws
License
Apache-2.0
Notes

This Pulumi package is based on the aws Terraform Provider.