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 group. You may provide the initial version of the group or use ''CreateGroupVersion'' at a later time. Tip: You can use the ''gg_group_setup'' package (https://github.com/awslabs/aws-greengrass-group-setup) as a library or command-line application to create and deploy Greengrass groups.
Synopsis
- data CreateGroup = CreateGroup' {
- amznClientToken :: Maybe Text
- initialVersion :: Maybe GroupVersion
- tags :: Maybe (HashMap Text Text)
- name :: Text
- newCreateGroup :: Text -> CreateGroup
- createGroup_amznClientToken :: Lens' CreateGroup (Maybe Text)
- createGroup_initialVersion :: Lens' CreateGroup (Maybe GroupVersion)
- createGroup_tags :: Lens' CreateGroup (Maybe (HashMap Text Text))
- createGroup_name :: Lens' CreateGroup Text
- data CreateGroupResponse = CreateGroupResponse' {
- latestVersionArn :: Maybe Text
- arn :: Maybe Text
- name :: Maybe Text
- creationTimestamp :: Maybe Text
- id :: Maybe Text
- latestVersion :: Maybe Text
- lastUpdatedTimestamp :: Maybe Text
- httpStatus :: Int
- newCreateGroupResponse :: Int -> CreateGroupResponse
- createGroupResponse_latestVersionArn :: Lens' CreateGroupResponse (Maybe Text)
- createGroupResponse_arn :: Lens' CreateGroupResponse (Maybe Text)
- createGroupResponse_name :: Lens' CreateGroupResponse (Maybe Text)
- createGroupResponse_creationTimestamp :: Lens' CreateGroupResponse (Maybe Text)
- createGroupResponse_id :: Lens' CreateGroupResponse (Maybe Text)
- createGroupResponse_latestVersion :: Lens' CreateGroupResponse (Maybe Text)
- createGroupResponse_lastUpdatedTimestamp :: Lens' CreateGroupResponse (Maybe Text)
- createGroupResponse_httpStatus :: Lens' CreateGroupResponse Int
Creating a Request
data CreateGroup Source #
See: newCreateGroup
smart constructor.
CreateGroup' | |
|
Instances
Create a value of CreateGroup
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:amznClientToken:CreateGroup'
, createGroup_amznClientToken
- A client token used to correlate requests and responses.
$sel:initialVersion:CreateGroup'
, createGroup_initialVersion
- Information about the initial version of the group.
$sel:tags:CreateGroup'
, createGroup_tags
- Tag(s) to add to the new resource.
$sel:name:CreateGroup'
, createGroup_name
- The name of the group.
Request Lenses
createGroup_amznClientToken :: Lens' CreateGroup (Maybe Text) Source #
A client token used to correlate requests and responses.
createGroup_initialVersion :: Lens' CreateGroup (Maybe GroupVersion) Source #
Information about the initial version of the group.
createGroup_tags :: Lens' CreateGroup (Maybe (HashMap Text Text)) Source #
Tag(s) to add to the new resource.
createGroup_name :: Lens' CreateGroup Text Source #
The name of the group.
Destructuring the Response
data CreateGroupResponse Source #
See: newCreateGroupResponse
smart constructor.
CreateGroupResponse' | |
|
Instances
newCreateGroupResponse Source #
Create a value of CreateGroupResponse
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:latestVersionArn:CreateGroupResponse'
, createGroupResponse_latestVersionArn
- The ARN of the latest version associated with the definition.
$sel:arn:CreateGroupResponse'
, createGroupResponse_arn
- The ARN of the definition.
$sel:name:CreateGroup'
, createGroupResponse_name
- The name of the definition.
$sel:creationTimestamp:CreateGroupResponse'
, createGroupResponse_creationTimestamp
- The time, in milliseconds since the epoch, when the definition was
created.
$sel:id:CreateGroupResponse'
, createGroupResponse_id
- The ID of the definition.
$sel:latestVersion:CreateGroupResponse'
, createGroupResponse_latestVersion
- The ID of the latest version associated with the definition.
$sel:lastUpdatedTimestamp:CreateGroupResponse'
, createGroupResponse_lastUpdatedTimestamp
- The time, in milliseconds since the epoch, when the definition was last
updated.
$sel:httpStatus:CreateGroupResponse'
, createGroupResponse_httpStatus
- The response's http status code.
Response Lenses
createGroupResponse_latestVersionArn :: Lens' CreateGroupResponse (Maybe Text) Source #
The ARN of the latest version associated with the definition.
createGroupResponse_arn :: Lens' CreateGroupResponse (Maybe Text) Source #
The ARN of the definition.
createGroupResponse_name :: Lens' CreateGroupResponse (Maybe Text) Source #
The name of the definition.
createGroupResponse_creationTimestamp :: Lens' CreateGroupResponse (Maybe Text) Source #
The time, in milliseconds since the epoch, when the definition was created.
createGroupResponse_id :: Lens' CreateGroupResponse (Maybe Text) Source #
The ID of the definition.
createGroupResponse_latestVersion :: Lens' CreateGroupResponse (Maybe Text) Source #
The ID of the latest version associated with the definition.
createGroupResponse_lastUpdatedTimestamp :: Lens' CreateGroupResponse (Maybe Text) Source #
The time, in milliseconds since the epoch, when the definition was last updated.
createGroupResponse_httpStatus :: Lens' CreateGroupResponse Int Source #
The response's http status code.