amazonka-fis-2.0: Amazon Fault Injection Simulator SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.FIS.Types.CreateExperimentTemplateTargetInput

Description

 
Synopsis

Documentation

data CreateExperimentTemplateTargetInput Source #

Specifies a target for an experiment. You must specify at least one Amazon Resource Name (ARN) or at least one resource tag. You cannot specify both ARNs and tags.

For more information, see Targets in the Fault Injection Simulator User Guide.

See: newCreateExperimentTemplateTargetInput smart constructor.

Constructors

CreateExperimentTemplateTargetInput' 

Fields

  • filters :: Maybe [ExperimentTemplateTargetInputFilter]

    The filters to apply to identify target resources using specific attributes.

  • parameters :: Maybe (HashMap Text Text)

    The resource type parameters.

  • resourceArns :: Maybe [Text]

    The Amazon Resource Names (ARNs) of the resources.

  • resourceTags :: Maybe (HashMap Text Text)

    The tags for the target resources.

  • resourceType :: Text

    The resource type. The resource type must be supported for the specified action.

  • selectionMode :: Text

    Scopes the identified resources to a specific count of the resources at random, or a percentage of the resources. All identified resources are included in the target.

    • ALL - Run the action on all identified targets. This is the default.
    • COUNT(n) - Run the action on the specified number of targets, chosen from the identified targets at random. For example, COUNT(1) selects one of the targets.
    • PERCENT(n) - Run the action on the specified percentage of targets, chosen from the identified targets at random. For example, PERCENT(25) selects 25% of the targets.

Instances

Instances details
ToJSON CreateExperimentTemplateTargetInput Source # 
Instance details

Defined in Amazonka.FIS.Types.CreateExperimentTemplateTargetInput

Generic CreateExperimentTemplateTargetInput Source # 
Instance details

Defined in Amazonka.FIS.Types.CreateExperimentTemplateTargetInput

Read CreateExperimentTemplateTargetInput Source # 
Instance details

Defined in Amazonka.FIS.Types.CreateExperimentTemplateTargetInput

Show CreateExperimentTemplateTargetInput Source # 
Instance details

Defined in Amazonka.FIS.Types.CreateExperimentTemplateTargetInput

NFData CreateExperimentTemplateTargetInput Source # 
Instance details

Defined in Amazonka.FIS.Types.CreateExperimentTemplateTargetInput

Eq CreateExperimentTemplateTargetInput Source # 
Instance details

Defined in Amazonka.FIS.Types.CreateExperimentTemplateTargetInput

Hashable CreateExperimentTemplateTargetInput Source # 
Instance details

Defined in Amazonka.FIS.Types.CreateExperimentTemplateTargetInput

type Rep CreateExperimentTemplateTargetInput Source # 
Instance details

Defined in Amazonka.FIS.Types.CreateExperimentTemplateTargetInput

type Rep CreateExperimentTemplateTargetInput = D1 ('MetaData "CreateExperimentTemplateTargetInput" "Amazonka.FIS.Types.CreateExperimentTemplateTargetInput" "amazonka-fis-2.0-7yQxB3RmWBm2PZyqsl0n5H" 'False) (C1 ('MetaCons "CreateExperimentTemplateTargetInput'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "filters") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [ExperimentTemplateTargetInputFilter])) :*: (S1 ('MetaSel ('Just "parameters") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (HashMap Text Text))) :*: S1 ('MetaSel ('Just "resourceArns") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Text])))) :*: (S1 ('MetaSel ('Just "resourceTags") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (HashMap Text Text))) :*: (S1 ('MetaSel ('Just "resourceType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "selectionMode") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))))

newCreateExperimentTemplateTargetInput Source #

Create a value of CreateExperimentTemplateTargetInput with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:filters:CreateExperimentTemplateTargetInput', createExperimentTemplateTargetInput_filters - The filters to apply to identify target resources using specific attributes.

$sel:parameters:CreateExperimentTemplateTargetInput', createExperimentTemplateTargetInput_parameters - The resource type parameters.

$sel:resourceArns:CreateExperimentTemplateTargetInput', createExperimentTemplateTargetInput_resourceArns - The Amazon Resource Names (ARNs) of the resources.

$sel:resourceTags:CreateExperimentTemplateTargetInput', createExperimentTemplateTargetInput_resourceTags - The tags for the target resources.

$sel:resourceType:CreateExperimentTemplateTargetInput', createExperimentTemplateTargetInput_resourceType - The resource type. The resource type must be supported for the specified action.

$sel:selectionMode:CreateExperimentTemplateTargetInput', createExperimentTemplateTargetInput_selectionMode - Scopes the identified resources to a specific count of the resources at random, or a percentage of the resources. All identified resources are included in the target.

  • ALL - Run the action on all identified targets. This is the default.
  • COUNT(n) - Run the action on the specified number of targets, chosen from the identified targets at random. For example, COUNT(1) selects one of the targets.
  • PERCENT(n) - Run the action on the specified percentage of targets, chosen from the identified targets at random. For example, PERCENT(25) selects 25% of the targets.

createExperimentTemplateTargetInput_filters :: Lens' CreateExperimentTemplateTargetInput (Maybe [ExperimentTemplateTargetInputFilter]) Source #

The filters to apply to identify target resources using specific attributes.

createExperimentTemplateTargetInput_resourceType :: Lens' CreateExperimentTemplateTargetInput Text Source #

The resource type. The resource type must be supported for the specified action.

createExperimentTemplateTargetInput_selectionMode :: Lens' CreateExperimentTemplateTargetInput Text Source #

Scopes the identified resources to a specific count of the resources at random, or a percentage of the resources. All identified resources are included in the target.

  • ALL - Run the action on all identified targets. This is the default.
  • COUNT(n) - Run the action on the specified number of targets, chosen from the identified targets at random. For example, COUNT(1) selects one of the targets.
  • PERCENT(n) - Run the action on the specified percentage of targets, chosen from the identified targets at random. For example, PERCENT(25) selects 25% of the targets.