libZSservicesZSamazonka-greengrassZSamazonka-greengrass
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

Amazonka.Greengrass.AssociateRoleToGroup

Description

Associates a role with a group. Your Greengrass core will use the role to access AWS cloud services. The role's permissions should allow Greengrass core Lambda functions to perform actions against the cloud.

Synopsis

Creating a Request

data AssociateRoleToGroup Source #

See: newAssociateRoleToGroup smart constructor.

Constructors

AssociateRoleToGroup' 

Fields

  • groupId :: Text

    The ID of the Greengrass group.

  • roleArn :: Text

    The ARN of the role you wish to associate with this group. The existence of the role is not validated.

Instances

Instances details
Eq AssociateRoleToGroup Source # 
Instance details

Defined in Amazonka.Greengrass.AssociateRoleToGroup

Read AssociateRoleToGroup Source # 
Instance details

Defined in Amazonka.Greengrass.AssociateRoleToGroup

Show AssociateRoleToGroup Source # 
Instance details

Defined in Amazonka.Greengrass.AssociateRoleToGroup

Generic AssociateRoleToGroup Source # 
Instance details

Defined in Amazonka.Greengrass.AssociateRoleToGroup

Associated Types

type Rep AssociateRoleToGroup :: Type -> Type #

NFData AssociateRoleToGroup Source # 
Instance details

Defined in Amazonka.Greengrass.AssociateRoleToGroup

Methods

rnf :: AssociateRoleToGroup -> () #

Hashable AssociateRoleToGroup Source # 
Instance details

Defined in Amazonka.Greengrass.AssociateRoleToGroup

ToJSON AssociateRoleToGroup Source # 
Instance details

Defined in Amazonka.Greengrass.AssociateRoleToGroup

AWSRequest AssociateRoleToGroup Source # 
Instance details

Defined in Amazonka.Greengrass.AssociateRoleToGroup

Associated Types

type AWSResponse AssociateRoleToGroup #

ToHeaders AssociateRoleToGroup Source # 
Instance details

Defined in Amazonka.Greengrass.AssociateRoleToGroup

ToPath AssociateRoleToGroup Source # 
Instance details

Defined in Amazonka.Greengrass.AssociateRoleToGroup

ToQuery AssociateRoleToGroup Source # 
Instance details

Defined in Amazonka.Greengrass.AssociateRoleToGroup

type Rep AssociateRoleToGroup Source # 
Instance details

Defined in Amazonka.Greengrass.AssociateRoleToGroup

type Rep AssociateRoleToGroup = D1 ('MetaData "AssociateRoleToGroup" "Amazonka.Greengrass.AssociateRoleToGroup" "libZSservicesZSamazonka-greengrassZSamazonka-greengrass" 'False) (C1 ('MetaCons "AssociateRoleToGroup'" 'PrefixI 'True) (S1 ('MetaSel ('Just "groupId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "roleArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))
type AWSResponse AssociateRoleToGroup Source # 
Instance details

Defined in Amazonka.Greengrass.AssociateRoleToGroup

newAssociateRoleToGroup Source #

Create a value of AssociateRoleToGroup 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:groupId:AssociateRoleToGroup', associateRoleToGroup_groupId - The ID of the Greengrass group.

$sel:roleArn:AssociateRoleToGroup', associateRoleToGroup_roleArn - The ARN of the role you wish to associate with this group. The existence of the role is not validated.

Request Lenses

associateRoleToGroup_roleArn :: Lens' AssociateRoleToGroup Text Source #

The ARN of the role you wish to associate with this group. The existence of the role is not validated.

Destructuring the Response

data AssociateRoleToGroupResponse Source #

See: newAssociateRoleToGroupResponse smart constructor.

Constructors

AssociateRoleToGroupResponse' 

Fields

Instances

Instances details
Eq AssociateRoleToGroupResponse Source # 
Instance details

Defined in Amazonka.Greengrass.AssociateRoleToGroup

Read AssociateRoleToGroupResponse Source # 
Instance details

Defined in Amazonka.Greengrass.AssociateRoleToGroup

Show AssociateRoleToGroupResponse Source # 
Instance details

Defined in Amazonka.Greengrass.AssociateRoleToGroup

Generic AssociateRoleToGroupResponse Source # 
Instance details

Defined in Amazonka.Greengrass.AssociateRoleToGroup

Associated Types

type Rep AssociateRoleToGroupResponse :: Type -> Type #

NFData AssociateRoleToGroupResponse Source # 
Instance details

Defined in Amazonka.Greengrass.AssociateRoleToGroup

type Rep AssociateRoleToGroupResponse Source # 
Instance details

Defined in Amazonka.Greengrass.AssociateRoleToGroup

type Rep AssociateRoleToGroupResponse = D1 ('MetaData "AssociateRoleToGroupResponse" "Amazonka.Greengrass.AssociateRoleToGroup" "libZSservicesZSamazonka-greengrassZSamazonka-greengrass" 'False) (C1 ('MetaCons "AssociateRoleToGroupResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "associatedAt") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

newAssociateRoleToGroupResponse Source #

Create a value of AssociateRoleToGroupResponse 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:associatedAt:AssociateRoleToGroupResponse', associateRoleToGroupResponse_associatedAt - The time, in milliseconds since the epoch, when the role ARN was associated with the group.

$sel:httpStatus:AssociateRoleToGroupResponse', associateRoleToGroupResponse_httpStatus - The response's http status code.

Response Lenses

associateRoleToGroupResponse_associatedAt :: Lens' AssociateRoleToGroupResponse (Maybe Text) Source #

The time, in milliseconds since the epoch, when the role ARN was associated with the group.