Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Creates an experiment template.
To create a template, specify the following information:
- Targets: A target can be a specific resource in your AWS 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 the AWS Fault Injection Simulator User Guide.
Synopsis
- data CreateExperimentTemplate = CreateExperimentTemplate' {}
- newCreateExperimentTemplate :: Text -> Text -> Text -> CreateExperimentTemplate
- createExperimentTemplate_targets :: Lens' CreateExperimentTemplate (Maybe (HashMap Text CreateExperimentTemplateTargetInput))
- createExperimentTemplate_tags :: Lens' CreateExperimentTemplate (Maybe (HashMap Text Text))
- 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:
$sel:targets:CreateExperimentTemplate'
, createExperimentTemplate_targets
- The targets for the experiment.
$sel:tags:CreateExperimentTemplate'
, createExperimentTemplate_tags
- The tags to apply to the experiment template.
$sel:clientToken:CreateExperimentTemplate'
, createExperimentTemplate_clientToken
- Unique, case-sensitive identifier that you provide to ensure the
idempotency of the request.
$sel:description:CreateExperimentTemplate'
, createExperimentTemplate_description
- A description for the experiment template. Can contain up to 64 letters
(A-Z and a-z).
$sel:stopConditions:CreateExperimentTemplate'
, createExperimentTemplate_stopConditions
- The stop conditions.
$sel:actions:CreateExperimentTemplate'
, createExperimentTemplate_actions
- The actions for the experiment.
$sel:roleArn:CreateExperimentTemplate'
, createExperimentTemplate_roleArn
- The Amazon Resource Name (ARN) of an IAM role that grants the AWS FIS
service permission to perform service actions on your behalf.
Request Lenses
createExperimentTemplate_targets :: Lens' CreateExperimentTemplate (Maybe (HashMap Text CreateExperimentTemplateTargetInput)) Source #
The targets for the experiment.
createExperimentTemplate_tags :: Lens' CreateExperimentTemplate (Maybe (HashMap Text Text)) Source #
The tags to apply to the experiment template.
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. Can contain up to 64 letters (A-Z and a-z).
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 AWS FIS service permission to perform service actions on your behalf.
Destructuring the Response
data CreateExperimentTemplateResponse Source #
See: newCreateExperimentTemplateResponse
smart constructor.
CreateExperimentTemplateResponse' | |
|
Instances
Eq CreateExperimentTemplateResponse Source # | |
Read CreateExperimentTemplateResponse Source # | |
Show CreateExperimentTemplateResponse Source # | |
Defined in Amazonka.FIS.CreateExperimentTemplate | |
Generic CreateExperimentTemplateResponse Source # | |
NFData CreateExperimentTemplateResponse Source # | |
Defined in Amazonka.FIS.CreateExperimentTemplate rnf :: CreateExperimentTemplateResponse -> () # | |
type Rep CreateExperimentTemplateResponse Source # | |
Defined in Amazonka.FIS.CreateExperimentTemplate type Rep CreateExperimentTemplateResponse = D1 ('MetaData "CreateExperimentTemplateResponse" "Amazonka.FIS.CreateExperimentTemplate" "libZSservicesZSamazonka-fisZSamazonka-fis" '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.