| 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 |
Amazonka.RobOMaker.CreateRobot
Description
Creates a robot.
Synopsis
- data CreateRobot = CreateRobot' {
- tags :: Maybe (HashMap Text Text)
- name :: Text
- architecture :: Architecture
- greengrassGroupId :: Text
- newCreateRobot :: Text -> Architecture -> Text -> CreateRobot
- createRobot_tags :: Lens' CreateRobot (Maybe (HashMap Text Text))
- createRobot_name :: Lens' CreateRobot Text
- createRobot_architecture :: Lens' CreateRobot Architecture
- createRobot_greengrassGroupId :: Lens' CreateRobot Text
- data CreateRobotResponse = CreateRobotResponse' {}
- newCreateRobotResponse :: Int -> CreateRobotResponse
- createRobotResponse_arn :: Lens' CreateRobotResponse (Maybe Text)
- createRobotResponse_createdAt :: Lens' CreateRobotResponse (Maybe UTCTime)
- createRobotResponse_greengrassGroupId :: Lens' CreateRobotResponse (Maybe Text)
- createRobotResponse_name :: Lens' CreateRobotResponse (Maybe Text)
- createRobotResponse_architecture :: Lens' CreateRobotResponse (Maybe Architecture)
- createRobotResponse_tags :: Lens' CreateRobotResponse (Maybe (HashMap Text Text))
- createRobotResponse_httpStatus :: Lens' CreateRobotResponse Int
Creating a Request
data CreateRobot Source #
See: newCreateRobot smart constructor.
Constructors
| CreateRobot' | |
Fields
| |
Instances
Arguments
| :: Text | |
| -> Architecture | |
| -> Text | |
| -> CreateRobot |
Create a value of CreateRobot 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:CreateRobot', createRobot_tags - A map that contains tag keys and tag values that are attached to the
robot.
$sel:name:CreateRobot', createRobot_name - The name for the robot.
$sel:architecture:CreateRobot', createRobot_architecture - The target architecture of the robot.
$sel:greengrassGroupId:CreateRobot', createRobot_greengrassGroupId - The Greengrass group id.
Request Lenses
createRobot_tags :: Lens' CreateRobot (Maybe (HashMap Text Text)) Source #
A map that contains tag keys and tag values that are attached to the robot.
createRobot_name :: Lens' CreateRobot Text Source #
The name for the robot.
createRobot_architecture :: Lens' CreateRobot Architecture Source #
The target architecture of the robot.
createRobot_greengrassGroupId :: Lens' CreateRobot Text Source #
The Greengrass group id.
Destructuring the Response
data CreateRobotResponse Source #
See: newCreateRobotResponse smart constructor.
Constructors
| CreateRobotResponse' | |
Fields
| |
Instances
newCreateRobotResponse Source #
Arguments
| :: Int | |
| -> CreateRobotResponse |
Create a value of CreateRobotResponse 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:CreateRobotResponse', createRobotResponse_arn - The Amazon Resource Name (ARN) of the robot.
$sel:createdAt:CreateRobotResponse', createRobotResponse_createdAt - The time, in milliseconds since the epoch, when the robot was created.
$sel:greengrassGroupId:CreateRobot', createRobotResponse_greengrassGroupId - The Amazon Resource Name (ARN) of the Greengrass group associated with
the robot.
$sel:name:CreateRobot', createRobotResponse_name - The name of the robot.
$sel:architecture:CreateRobot', createRobotResponse_architecture - The target architecture of the robot.
$sel:tags:CreateRobot', createRobotResponse_tags - The list of all tags added to the robot.
$sel:httpStatus:CreateRobotResponse', createRobotResponse_httpStatus - The response's http status code.
Response Lenses
createRobotResponse_arn :: Lens' CreateRobotResponse (Maybe Text) Source #
The Amazon Resource Name (ARN) of the robot.
createRobotResponse_createdAt :: Lens' CreateRobotResponse (Maybe UTCTime) Source #
The time, in milliseconds since the epoch, when the robot was created.
createRobotResponse_greengrassGroupId :: Lens' CreateRobotResponse (Maybe Text) Source #
The Amazon Resource Name (ARN) of the Greengrass group associated with the robot.
createRobotResponse_name :: Lens' CreateRobotResponse (Maybe Text) Source #
The name of the robot.
createRobotResponse_architecture :: Lens' CreateRobotResponse (Maybe Architecture) Source #
The target architecture of the robot.
createRobotResponse_tags :: Lens' CreateRobotResponse (Maybe (HashMap Text Text)) Source #
The list of all tags added to the robot.
createRobotResponse_httpStatus :: Lens' CreateRobotResponse Int Source #
The response's http status code.