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 a response plan that automates the initial response to incidents. A response plan engages contacts, starts chat channel collaboration, and initiates runbooks at the beginning of an incident.
Synopsis
- data CreateResponsePlan = CreateResponsePlan' {
- clientToken :: Maybe Text
- actions :: Maybe [Action]
- displayName :: Maybe Text
- chatChannel :: Maybe ChatChannel
- engagements :: Maybe [Text]
- tags :: Maybe (HashMap Text Text)
- incidentTemplate :: IncidentTemplate
- name :: Text
- newCreateResponsePlan :: IncidentTemplate -> Text -> CreateResponsePlan
- createResponsePlan_clientToken :: Lens' CreateResponsePlan (Maybe Text)
- createResponsePlan_actions :: Lens' CreateResponsePlan (Maybe [Action])
- createResponsePlan_displayName :: Lens' CreateResponsePlan (Maybe Text)
- createResponsePlan_chatChannel :: Lens' CreateResponsePlan (Maybe ChatChannel)
- createResponsePlan_engagements :: Lens' CreateResponsePlan (Maybe [Text])
- createResponsePlan_tags :: Lens' CreateResponsePlan (Maybe (HashMap Text Text))
- createResponsePlan_incidentTemplate :: Lens' CreateResponsePlan IncidentTemplate
- createResponsePlan_name :: Lens' CreateResponsePlan Text
- data CreateResponsePlanResponse = CreateResponsePlanResponse' {
- httpStatus :: Int
- arn :: Text
- newCreateResponsePlanResponse :: Int -> Text -> CreateResponsePlanResponse
- createResponsePlanResponse_httpStatus :: Lens' CreateResponsePlanResponse Int
- createResponsePlanResponse_arn :: Lens' CreateResponsePlanResponse Text
Creating a Request
data CreateResponsePlan Source #
See: newCreateResponsePlan
smart constructor.
CreateResponsePlan' | |
|
Instances
newCreateResponsePlan Source #
Create a value of CreateResponsePlan
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:clientToken:CreateResponsePlan'
, createResponsePlan_clientToken
- A token ensuring that the action is called only once with the specified
details.
$sel:actions:CreateResponsePlan'
, createResponsePlan_actions
- The actions that the response plan starts at the beginning of an
incident.
$sel:displayName:CreateResponsePlan'
, createResponsePlan_displayName
- The long format of the response plan name. This field can contain
spaces.
$sel:chatChannel:CreateResponsePlan'
, createResponsePlan_chatChannel
- The AWS Chatbot chat channel used for collaboration during an incident.
$sel:engagements:CreateResponsePlan'
, createResponsePlan_engagements
- The contacts and escalation plans that the response plan engages during
an incident.
$sel:tags:CreateResponsePlan'
, createResponsePlan_tags
- A list of tags that you are adding to the response plan.
$sel:incidentTemplate:CreateResponsePlan'
, createResponsePlan_incidentTemplate
- Details used to create an incident when using this response plan.
$sel:name:CreateResponsePlan'
, createResponsePlan_name
- The short format name of the response plan. Can't include spaces.
Request Lenses
createResponsePlan_clientToken :: Lens' CreateResponsePlan (Maybe Text) Source #
A token ensuring that the action is called only once with the specified details.
createResponsePlan_actions :: Lens' CreateResponsePlan (Maybe [Action]) Source #
The actions that the response plan starts at the beginning of an incident.
createResponsePlan_displayName :: Lens' CreateResponsePlan (Maybe Text) Source #
The long format of the response plan name. This field can contain spaces.
createResponsePlan_chatChannel :: Lens' CreateResponsePlan (Maybe ChatChannel) Source #
The AWS Chatbot chat channel used for collaboration during an incident.
createResponsePlan_engagements :: Lens' CreateResponsePlan (Maybe [Text]) Source #
The contacts and escalation plans that the response plan engages during an incident.
createResponsePlan_tags :: Lens' CreateResponsePlan (Maybe (HashMap Text Text)) Source #
A list of tags that you are adding to the response plan.
createResponsePlan_incidentTemplate :: Lens' CreateResponsePlan IncidentTemplate Source #
Details used to create an incident when using this response plan.
createResponsePlan_name :: Lens' CreateResponsePlan Text Source #
The short format name of the response plan. Can't include spaces.
Destructuring the Response
data CreateResponsePlanResponse Source #
See: newCreateResponsePlanResponse
smart constructor.
CreateResponsePlanResponse' | |
|
Instances
newCreateResponsePlanResponse Source #
:: Int | |
-> Text | |
-> CreateResponsePlanResponse |
Create a value of CreateResponsePlanResponse
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:httpStatus:CreateResponsePlanResponse'
, createResponsePlanResponse_httpStatus
- The response's http status code.
$sel:arn:CreateResponsePlanResponse'
, createResponsePlanResponse_arn
- The Amazon Resource Name (ARN) of the response plan.
Response Lenses
createResponsePlanResponse_httpStatus :: Lens' CreateResponsePlanResponse Int Source #
The response's http status code.
createResponsePlanResponse_arn :: Lens' CreateResponsePlanResponse Text Source #
The Amazon Resource Name (ARN) of the response plan.