| Copyright | (c) 2013-2018 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 |
| Language | Haskell2010 |
Network.AWS.Batch.UpdateComputeEnvironment
Description
Updates an AWS Batch compute environment.
- updateComputeEnvironment :: Text -> UpdateComputeEnvironment
- data UpdateComputeEnvironment
- uceState :: Lens' UpdateComputeEnvironment (Maybe CEState)
- uceComputeResources :: Lens' UpdateComputeEnvironment (Maybe ComputeResourceUpdate)
- uceServiceRole :: Lens' UpdateComputeEnvironment (Maybe Text)
- uceComputeEnvironment :: Lens' UpdateComputeEnvironment Text
- updateComputeEnvironmentResponse :: Int -> UpdateComputeEnvironmentResponse
- data UpdateComputeEnvironmentResponse
- ucersComputeEnvironmentName :: Lens' UpdateComputeEnvironmentResponse (Maybe Text)
- ucersComputeEnvironmentARN :: Lens' UpdateComputeEnvironmentResponse (Maybe Text)
- ucersResponseStatus :: Lens' UpdateComputeEnvironmentResponse Int
Creating a Request
updateComputeEnvironment Source #
Arguments
| :: Text | |
| -> UpdateComputeEnvironment |
Creates a value of UpdateComputeEnvironment with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
uceState- The state of the compute environment. Compute environments in theENABLEDstate can accept jobs from a queue and scale in or out automatically based on the workload demand of its associated queues.uceComputeResources- Details of the compute resources managed by the compute environment. Required for a managed compute environment.uceServiceRole- The full Amazon Resource Name (ARN) of the IAM role that allows AWS Batch to make calls to other AWS services on your behalf. If your specified role has a path other than/, then you must either specify the full role ARN (this is recommended) or prefix the role name with the path.uceComputeEnvironment- The name or full Amazon Resource Name (ARN) of the compute environment to update.
data UpdateComputeEnvironment Source #
See: updateComputeEnvironment smart constructor.
Instances
Request Lenses
uceState :: Lens' UpdateComputeEnvironment (Maybe CEState) Source #
The state of the compute environment. Compute environments in the ENABLED state can accept jobs from a queue and scale in or out automatically based on the workload demand of its associated queues.
uceComputeResources :: Lens' UpdateComputeEnvironment (Maybe ComputeResourceUpdate) Source #
Details of the compute resources managed by the compute environment. Required for a managed compute environment.
uceServiceRole :: Lens' UpdateComputeEnvironment (Maybe Text) Source #
The full Amazon Resource Name (ARN) of the IAM role that allows AWS Batch to make calls to other AWS services on your behalf. If your specified role has a path other than / , then you must either specify the full role ARN (this is recommended) or prefix the role name with the path.
uceComputeEnvironment :: Lens' UpdateComputeEnvironment Text Source #
The name or full Amazon Resource Name (ARN) of the compute environment to update.
Destructuring the Response
updateComputeEnvironmentResponse Source #
Arguments
| :: Int | |
| -> UpdateComputeEnvironmentResponse |
Creates a value of UpdateComputeEnvironmentResponse with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
ucersComputeEnvironmentName- The name of compute environment.ucersComputeEnvironmentARN- The Amazon Resource Name (ARN) of the compute environment.ucersResponseStatus- -- | The response status code.
data UpdateComputeEnvironmentResponse Source #
See: updateComputeEnvironmentResponse smart constructor.
Instances
Response Lenses
ucersComputeEnvironmentName :: Lens' UpdateComputeEnvironmentResponse (Maybe Text) Source #
The name of compute environment.
ucersComputeEnvironmentARN :: Lens' UpdateComputeEnvironmentResponse (Maybe Text) Source #
The Amazon Resource Name (ARN) of the compute environment.
ucersResponseStatus :: Lens' UpdateComputeEnvironmentResponse Int Source #
- - | The response status code.