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 |
Create a new cluster. A cluster is a set of redundant Regional endpoints against which you can run API calls to update or get the state of one or more routing controls. Each cluster has a name, status, Amazon Resource Name (ARN), and an array of the five cluster endpoints (one for each supported Amazon Web Services Region) that you can use with API calls to the Amazon Route 53 Application Recovery Controller cluster data plane.
Synopsis
- data CreateCluster = CreateCluster' {
- clientToken :: Maybe Text
- clusterName :: Text
- newCreateCluster :: Text -> CreateCluster
- createCluster_clientToken :: Lens' CreateCluster (Maybe Text)
- createCluster_clusterName :: Lens' CreateCluster Text
- data CreateClusterResponse = CreateClusterResponse' {
- cluster :: Maybe Cluster
- httpStatus :: Int
- newCreateClusterResponse :: Int -> CreateClusterResponse
- createClusterResponse_cluster :: Lens' CreateClusterResponse (Maybe Cluster)
- createClusterResponse_httpStatus :: Lens' CreateClusterResponse Int
Creating a Request
data CreateCluster Source #
Creates a cluster.
See: newCreateCluster
smart constructor.
CreateCluster' | |
|
Instances
Create a value of CreateCluster
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:CreateCluster'
, createCluster_clientToken
- Unique client idempotency token.
$sel:clusterName:CreateCluster'
, createCluster_clusterName
- The name of the cluster.
Request Lenses
createCluster_clientToken :: Lens' CreateCluster (Maybe Text) Source #
Unique client idempotency token.
createCluster_clusterName :: Lens' CreateCluster Text Source #
The name of the cluster.
Destructuring the Response
data CreateClusterResponse Source #
See: newCreateClusterResponse
smart constructor.
CreateClusterResponse' | |
|
Instances
newCreateClusterResponse Source #
Create a value of CreateClusterResponse
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:cluster:CreateClusterResponse'
, createClusterResponse_cluster
- The cluster that was created.
$sel:httpStatus:CreateClusterResponse'
, createClusterResponse_httpStatus
- The response's http status code.
Response Lenses
createClusterResponse_cluster :: Lens' CreateClusterResponse (Maybe Cluster) Source #
The cluster that was created.
createClusterResponse_httpStatus :: Lens' CreateClusterResponse Int Source #
The response's http status code.