amazonka-greengrass-2.0: Amazon Greengrass SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

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

Creating a Request

data CreateGroup Source #

See: newCreateGroup smart constructor.

Constructors

CreateGroup' 

Fields

Instances

Instances details
ToJSON CreateGroup Source # 
Instance details

Defined in Amazonka.Greengrass.CreateGroup

ToHeaders CreateGroup Source # 
Instance details

Defined in Amazonka.Greengrass.CreateGroup

Methods

toHeaders :: CreateGroup -> [Header] #

ToPath CreateGroup Source # 
Instance details

Defined in Amazonka.Greengrass.CreateGroup

ToQuery CreateGroup Source # 
Instance details

Defined in Amazonka.Greengrass.CreateGroup

AWSRequest CreateGroup Source # 
Instance details

Defined in Amazonka.Greengrass.CreateGroup

Associated Types

type AWSResponse CreateGroup #

Generic CreateGroup Source # 
Instance details

Defined in Amazonka.Greengrass.CreateGroup

Associated Types

type Rep CreateGroup :: Type -> Type #

Read CreateGroup Source # 
Instance details

Defined in Amazonka.Greengrass.CreateGroup

Show CreateGroup Source # 
Instance details

Defined in Amazonka.Greengrass.CreateGroup

NFData CreateGroup Source # 
Instance details

Defined in Amazonka.Greengrass.CreateGroup

Methods

rnf :: CreateGroup -> () #

Eq CreateGroup Source # 
Instance details

Defined in Amazonka.Greengrass.CreateGroup

Hashable CreateGroup Source # 
Instance details

Defined in Amazonka.Greengrass.CreateGroup

type AWSResponse CreateGroup Source # 
Instance details

Defined in Amazonka.Greengrass.CreateGroup

type Rep CreateGroup Source # 
Instance details

Defined in Amazonka.Greengrass.CreateGroup

type Rep CreateGroup = D1 ('MetaData "CreateGroup" "Amazonka.Greengrass.CreateGroup" "amazonka-greengrass-2.0-KjUXjyW3l8XyfFjm5ZueR" 'False) (C1 ('MetaCons "CreateGroup'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "amznClientToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "initialVersion") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe GroupVersion))) :*: (S1 ('MetaSel ('Just "tags") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (HashMap Text Text))) :*: S1 ('MetaSel ('Just "name") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))))

newCreateGroup Source #

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

Instances details
Generic CreateGroupResponse Source # 
Instance details

Defined in Amazonka.Greengrass.CreateGroup

Associated Types

type Rep CreateGroupResponse :: Type -> Type #

Read CreateGroupResponse Source # 
Instance details

Defined in Amazonka.Greengrass.CreateGroup

Show CreateGroupResponse Source # 
Instance details

Defined in Amazonka.Greengrass.CreateGroup

NFData CreateGroupResponse Source # 
Instance details

Defined in Amazonka.Greengrass.CreateGroup

Methods

rnf :: CreateGroupResponse -> () #

Eq CreateGroupResponse Source # 
Instance details

Defined in Amazonka.Greengrass.CreateGroup

type Rep CreateGroupResponse Source # 
Instance details

Defined in Amazonka.Greengrass.CreateGroup

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:

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_creationTimestamp :: Lens' CreateGroupResponse (Maybe Text) Source #

The time, in milliseconds since the epoch, when the definition was created.

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.