| Copyright | (c) 2013-2023 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
Amazonka.Greengrass.CreateGroup
Description
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' {
- arn :: Maybe Text
- creationTimestamp :: Maybe Text
- id :: Maybe Text
- lastUpdatedTimestamp :: Maybe Text
- latestVersion :: Maybe Text
- latestVersionArn :: Maybe Text
- name :: Maybe Text
- httpStatus :: Int
- newCreateGroupResponse :: Int -> CreateGroupResponse
- createGroupResponse_arn :: Lens' CreateGroupResponse (Maybe Text)
- createGroupResponse_creationTimestamp :: Lens' CreateGroupResponse (Maybe Text)
- createGroupResponse_id :: Lens' CreateGroupResponse (Maybe Text)
- createGroupResponse_lastUpdatedTimestamp :: Lens' CreateGroupResponse (Maybe Text)
- createGroupResponse_latestVersion :: Lens' CreateGroupResponse (Maybe Text)
- createGroupResponse_latestVersionArn :: Lens' CreateGroupResponse (Maybe Text)
- createGroupResponse_name :: Lens' CreateGroupResponse (Maybe Text)
- createGroupResponse_httpStatus :: Lens' CreateGroupResponse Int
Creating a Request
data CreateGroup Source #
See: newCreateGroup smart constructor.
Constructors
| CreateGroup' | |
Fields
| |
Instances
Arguments
| :: Text | |
| -> CreateGroup |
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.
CreateGroup, createGroup_tags - Tag(s) to add to the new resource.
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.
Constructors
| CreateGroupResponse' | |
Fields
| |
Instances
newCreateGroupResponse Source #
Arguments
| :: Int | |
| -> CreateGroupResponse |
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:
CreateGroupResponse, createGroupResponse_arn - The ARN of the definition.
CreateGroupResponse, createGroupResponse_creationTimestamp - The time, in milliseconds since the epoch, when the definition was
created.
CreateGroupResponse, createGroupResponse_id - The ID of the definition.
CreateGroupResponse, createGroupResponse_lastUpdatedTimestamp - The time, in milliseconds since the epoch, when the definition was last
updated.
CreateGroupResponse, createGroupResponse_latestVersion - The ID of the latest version associated with the definition.
CreateGroupResponse, createGroupResponse_latestVersionArn - The ARN of the latest version associated with the definition.
CreateGroup, createGroupResponse_name - The name of the definition.
$sel:httpStatus:CreateGroupResponse', createGroupResponse_httpStatus - The response's http status code.
Response Lenses
createGroupResponse_arn :: Lens' CreateGroupResponse (Maybe Text) Source #
The ARN 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_lastUpdatedTimestamp :: Lens' CreateGroupResponse (Maybe Text) Source #
The time, in milliseconds since the epoch, when the definition was last updated.
createGroupResponse_latestVersion :: Lens' CreateGroupResponse (Maybe Text) Source #
The ID of the latest version associated with the definition.
createGroupResponse_latestVersionArn :: Lens' CreateGroupResponse (Maybe Text) Source #
The ARN of the latest version associated with the definition.
createGroupResponse_name :: Lens' CreateGroupResponse (Maybe Text) Source #
The name of the definition.
createGroupResponse_httpStatus :: Lens' CreateGroupResponse Int Source #
The response's http status code.