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 a new control panel. A control panel represents a group of routing controls that can be changed together in a single transaction. You can use a control panel to centrally view the operational status of applications across your organization, and trigger multi-app failovers in a single transaction, for example, to fail over an Availability Zone or Amazon Web Services Region.
Synopsis
- data CreateControlPanel = CreateControlPanel' {
- clientToken :: Maybe Text
- tags :: Maybe (HashMap Text Text)
- clusterArn :: Text
- controlPanelName :: Text
- newCreateControlPanel :: Text -> Text -> CreateControlPanel
- createControlPanel_clientToken :: Lens' CreateControlPanel (Maybe Text)
- createControlPanel_tags :: Lens' CreateControlPanel (Maybe (HashMap Text Text))
- createControlPanel_clusterArn :: Lens' CreateControlPanel Text
- createControlPanel_controlPanelName :: Lens' CreateControlPanel Text
- data CreateControlPanelResponse = CreateControlPanelResponse' {}
- newCreateControlPanelResponse :: Int -> CreateControlPanelResponse
- createControlPanelResponse_controlPanel :: Lens' CreateControlPanelResponse (Maybe ControlPanel)
- createControlPanelResponse_httpStatus :: Lens' CreateControlPanelResponse Int
Creating a Request
data CreateControlPanel Source #
The details of the control panel that you're creating.
See: newCreateControlPanel
smart constructor.
CreateControlPanel' | |
|
Instances
newCreateControlPanel Source #
Create a value of CreateControlPanel
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:CreateControlPanel'
, createControlPanel_clientToken
- A unique, case-sensitive string of up to 64 ASCII characters. To make an
idempotent API request with an action, specify a client token in the
request.
$sel:tags:CreateControlPanel'
, createControlPanel_tags
- The tags associated with the control panel.
CreateControlPanel
, createControlPanel_clusterArn
- The Amazon Resource Name (ARN) of the cluster for the control panel.
$sel:controlPanelName:CreateControlPanel'
, createControlPanel_controlPanelName
- The name of the control panel.
Request Lenses
createControlPanel_clientToken :: Lens' CreateControlPanel (Maybe Text) Source #
A unique, case-sensitive string of up to 64 ASCII characters. To make an idempotent API request with an action, specify a client token in the request.
createControlPanel_tags :: Lens' CreateControlPanel (Maybe (HashMap Text Text)) Source #
The tags associated with the control panel.
createControlPanel_clusterArn :: Lens' CreateControlPanel Text Source #
The Amazon Resource Name (ARN) of the cluster for the control panel.
createControlPanel_controlPanelName :: Lens' CreateControlPanel Text Source #
The name of the control panel.
Destructuring the Response
data CreateControlPanelResponse Source #
See: newCreateControlPanelResponse
smart constructor.
CreateControlPanelResponse' | |
|
Instances
newCreateControlPanelResponse Source #
Create a value of CreateControlPanelResponse
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:controlPanel:CreateControlPanelResponse'
, createControlPanelResponse_controlPanel
- Information about a control panel.
$sel:httpStatus:CreateControlPanelResponse'
, createControlPanelResponse_httpStatus
- The response's http status code.
Response Lenses
createControlPanelResponse_controlPanel :: Lens' CreateControlPanelResponse (Maybe ControlPanel) Source #
Information about a control panel.
createControlPanelResponse_httpStatus :: Lens' CreateControlPanelResponse Int Source #
The response's http status code.