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 virtual cluster. Virtual cluster is a managed entity on Amazon EMR on EKS. You can create, describe, list and delete virtual clusters. They do not consume any additional resource in your system. A single virtual cluster maps to a single Kubernetes namespace. Given this relationship, you can model virtual clusters the same way you model Kubernetes namespaces to meet your requirements.
Synopsis
- data CreateVirtualCluster = CreateVirtualCluster' {
- tags :: Maybe (HashMap Text Text)
- name :: Text
- containerProvider :: ContainerProvider
- clientToken :: Text
- newCreateVirtualCluster :: Text -> ContainerProvider -> Text -> CreateVirtualCluster
- createVirtualCluster_tags :: Lens' CreateVirtualCluster (Maybe (HashMap Text Text))
- createVirtualCluster_name :: Lens' CreateVirtualCluster Text
- createVirtualCluster_containerProvider :: Lens' CreateVirtualCluster ContainerProvider
- createVirtualCluster_clientToken :: Lens' CreateVirtualCluster Text
- data CreateVirtualClusterResponse = CreateVirtualClusterResponse' {}
- newCreateVirtualClusterResponse :: Int -> CreateVirtualClusterResponse
- createVirtualClusterResponse_arn :: Lens' CreateVirtualClusterResponse (Maybe Text)
- createVirtualClusterResponse_name :: Lens' CreateVirtualClusterResponse (Maybe Text)
- createVirtualClusterResponse_id :: Lens' CreateVirtualClusterResponse (Maybe Text)
- createVirtualClusterResponse_httpStatus :: Lens' CreateVirtualClusterResponse Int
Creating a Request
data CreateVirtualCluster Source #
See: newCreateVirtualCluster
smart constructor.
CreateVirtualCluster' | |
|
Instances
newCreateVirtualCluster Source #
:: Text | |
-> ContainerProvider | |
-> Text | |
-> CreateVirtualCluster |
Create a value of CreateVirtualCluster
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:tags:CreateVirtualCluster'
, createVirtualCluster_tags
- The tags assigned to the virtual cluster.
$sel:name:CreateVirtualCluster'
, createVirtualCluster_name
- The specified name of the virtual cluster.
$sel:containerProvider:CreateVirtualCluster'
, createVirtualCluster_containerProvider
- The container provider of the virtual cluster.
$sel:clientToken:CreateVirtualCluster'
, createVirtualCluster_clientToken
- The client token of the virtual cluster.
Request Lenses
createVirtualCluster_tags :: Lens' CreateVirtualCluster (Maybe (HashMap Text Text)) Source #
The tags assigned to the virtual cluster.
createVirtualCluster_name :: Lens' CreateVirtualCluster Text Source #
The specified name of the virtual cluster.
createVirtualCluster_containerProvider :: Lens' CreateVirtualCluster ContainerProvider Source #
The container provider of the virtual cluster.
createVirtualCluster_clientToken :: Lens' CreateVirtualCluster Text Source #
The client token of the virtual cluster.
Destructuring the Response
data CreateVirtualClusterResponse Source #
See: newCreateVirtualClusterResponse
smart constructor.
Instances
newCreateVirtualClusterResponse Source #
Create a value of CreateVirtualClusterResponse
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:arn:CreateVirtualClusterResponse'
, createVirtualClusterResponse_arn
- This output contains the ARN of virtual cluster.
$sel:name:CreateVirtualCluster'
, createVirtualClusterResponse_name
- This output contains the name of the virtual cluster.
$sel:id:CreateVirtualClusterResponse'
, createVirtualClusterResponse_id
- This output contains the virtual cluster ID.
$sel:httpStatus:CreateVirtualClusterResponse'
, createVirtualClusterResponse_httpStatus
- The response's http status code.
Response Lenses
createVirtualClusterResponse_arn :: Lens' CreateVirtualClusterResponse (Maybe Text) Source #
This output contains the ARN of virtual cluster.
createVirtualClusterResponse_name :: Lens' CreateVirtualClusterResponse (Maybe Text) Source #
This output contains the name of the virtual cluster.
createVirtualClusterResponse_id :: Lens' CreateVirtualClusterResponse (Maybe Text) Source #
This output contains the virtual cluster ID.
createVirtualClusterResponse_httpStatus :: Lens' CreateVirtualClusterResponse Int Source #
The response's http status code.