Copyright | (c) 2013-2023 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Creates an experiment template.
An experiment template includes the following components:
- Targets: A target can be a specific resource in your Amazon Web Services environment, or one or more resources that match criteria that you specify, for example, resources that have specific tags.
- Actions: The actions to carry out on the target. You can specify multiple actions, the duration of each action, and when to start each action during an experiment.
- Stop conditions: If a stop condition is triggered while an experiment is running, the experiment is automatically stopped. You can define a stop condition as a CloudWatch alarm.
For more information, see Experiment templates in the Fault Injection Simulator User Guide.
Synopsis
- data CreateExperimentTemplate = CreateExperimentTemplate' {
- logConfiguration :: Maybe CreateExperimentTemplateLogConfigurationInput
- tags :: Maybe (HashMap Text Text)
- targets :: Maybe (HashMap Text CreateExperimentTemplateTargetInput)
- clientToken :: Text
- description :: Text
- stopConditions :: [CreateExperimentTemplateStopConditionInput]
- actions :: HashMap Text CreateExperimentTemplateActionInput
- roleArn :: Text
- newCreateExperimentTemplate :: Text -> Text -> Text -> CreateExperimentTemplate
- createExperimentTemplate_logConfiguration :: Lens' CreateExperimentTemplate (Maybe CreateExperimentTemplateLogConfigurationInput)
- createExperimentTemplate_tags :: Lens' CreateExperimentTemplate (Maybe (HashMap Text Text))
- createExperimentTemplate_targets :: Lens' CreateExperimentTemplate (Maybe (HashMap Text CreateExperimentTemplateTargetInput))
- createExperimentTemplate_clientToken :: Lens' CreateExperimentTemplate Text
- createExperimentTemplate_description :: Lens' CreateExperimentTemplate Text
- createExperimentTemplate_stopConditions :: Lens' CreateExperimentTemplate [CreateExperimentTemplateStopConditionInput]
- createExperimentTemplate_actions :: Lens' CreateExperimentTemplate (HashMap Text CreateExperimentTemplateActionInput)
- createExperimentTemplate_roleArn :: Lens' CreateExperimentTemplate Text
- data CreateExperimentTemplateResponse = CreateExperimentTemplateResponse' {}
- newCreateExperimentTemplateResponse :: Int -> CreateExperimentTemplateResponse
- createExperimentTemplateResponse_experimentTemplate :: Lens' CreateExperimentTemplateResponse (Maybe ExperimentTemplate)
- createExperimentTemplateResponse_httpStatus :: Lens' CreateExperimentTemplateResponse Int
Creating a Request
data CreateExperimentTemplate Source #
See: newCreateExperimentTemplate
smart constructor.
CreateExperimentTemplate' | |
|
Instances
newCreateExperimentTemplate Source #
:: Text | |
-> Text | |
-> Text | |
-> CreateExperimentTemplate |
Create a value of CreateExperimentTemplate
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:
CreateExperimentTemplate
, createExperimentTemplate_logConfiguration
- The configuration for experiment logging.
CreateExperimentTemplate
, createExperimentTemplate_tags
- The tags to apply to the experiment template.
CreateExperimentTemplate
, createExperimentTemplate_targets
- The targets for the experiment.
$sel:clientToken:CreateExperimentTemplate'
, createExperimentTemplate_clientToken
- Unique, case-sensitive identifier that you provide to ensure the
idempotency of the request.
CreateExperimentTemplate
, createExperimentTemplate_description
- A description for the experiment template.
CreateExperimentTemplate
, createExperimentTemplate_stopConditions
- The stop conditions.
CreateExperimentTemplate
, createExperimentTemplate_actions
- The actions for the experiment.
CreateExperimentTemplate
, createExperimentTemplate_roleArn
- The Amazon Resource Name (ARN) of an IAM role that grants the FIS
service permission to perform service actions on your behalf.
Request Lenses
createExperimentTemplate_logConfiguration :: Lens' CreateExperimentTemplate (Maybe CreateExperimentTemplateLogConfigurationInput) Source #
The configuration for experiment logging.
createExperimentTemplate_tags :: Lens' CreateExperimentTemplate (Maybe (HashMap Text Text)) Source #
The tags to apply to the experiment template.
createExperimentTemplate_targets :: Lens' CreateExperimentTemplate (Maybe (HashMap Text CreateExperimentTemplateTargetInput)) Source #
The targets for the experiment.
createExperimentTemplate_clientToken :: Lens' CreateExperimentTemplate Text Source #
Unique, case-sensitive identifier that you provide to ensure the idempotency of the request.
createExperimentTemplate_description :: Lens' CreateExperimentTemplate Text Source #
A description for the experiment template.
createExperimentTemplate_stopConditions :: Lens' CreateExperimentTemplate [CreateExperimentTemplateStopConditionInput] Source #
The stop conditions.
createExperimentTemplate_actions :: Lens' CreateExperimentTemplate (HashMap Text CreateExperimentTemplateActionInput) Source #
The actions for the experiment.
createExperimentTemplate_roleArn :: Lens' CreateExperimentTemplate Text Source #
The Amazon Resource Name (ARN) of an IAM role that grants the FIS service permission to perform service actions on your behalf.
Destructuring the Response
data CreateExperimentTemplateResponse Source #
See: newCreateExperimentTemplateResponse
smart constructor.
CreateExperimentTemplateResponse' | |
|
Instances
Generic CreateExperimentTemplateResponse Source # | |
Read CreateExperimentTemplateResponse Source # | |
Show CreateExperimentTemplateResponse Source # | |
Defined in Amazonka.FIS.CreateExperimentTemplate | |
NFData CreateExperimentTemplateResponse Source # | |
Defined in Amazonka.FIS.CreateExperimentTemplate rnf :: CreateExperimentTemplateResponse -> () # | |
Eq CreateExperimentTemplateResponse Source # | |
type Rep CreateExperimentTemplateResponse Source # | |
Defined in Amazonka.FIS.CreateExperimentTemplate type Rep CreateExperimentTemplateResponse = D1 ('MetaData "CreateExperimentTemplateResponse" "Amazonka.FIS.CreateExperimentTemplate" "amazonka-fis-2.0-7yQxB3RmWBm2PZyqsl0n5H" 'False) (C1 ('MetaCons "CreateExperimentTemplateResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "experimentTemplate") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe ExperimentTemplate)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))) |
newCreateExperimentTemplateResponse Source #
Create a value of CreateExperimentTemplateResponse
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:experimentTemplate:CreateExperimentTemplateResponse'
, createExperimentTemplateResponse_experimentTemplate
- Information about the experiment template.
$sel:httpStatus:CreateExperimentTemplateResponse'
, createExperimentTemplateResponse_httpStatus
- The response's http status code.
Response Lenses
createExperimentTemplateResponse_experimentTemplate :: Lens' CreateExperimentTemplateResponse (Maybe ExperimentTemplate) Source #
Information about the experiment template.
createExperimentTemplateResponse_httpStatus :: Lens' CreateExperimentTemplateResponse Int Source #
The response's http status code.