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.AssociateServiceRoleToAccount

Description

Associates a role with your account. AWS IoT Greengrass will use the role to access your Lambda functions and AWS IoT resources. This is necessary for deployments to succeed. The role must have at least minimum permissions in the policy ''AWSGreengrassResourceAccessRolePolicy''.

Synopsis

Creating a Request

data AssociateServiceRoleToAccount Source #

See: newAssociateServiceRoleToAccount smart constructor.

Constructors

AssociateServiceRoleToAccount' 

Fields

  • roleArn :: Text

    The ARN of the service role you wish to associate with your account.

Instances

Instances details
ToJSON AssociateServiceRoleToAccount Source # 
Instance details

Defined in Amazonka.Greengrass.AssociateServiceRoleToAccount

ToHeaders AssociateServiceRoleToAccount Source # 
Instance details

Defined in Amazonka.Greengrass.AssociateServiceRoleToAccount

ToPath AssociateServiceRoleToAccount Source # 
Instance details

Defined in Amazonka.Greengrass.AssociateServiceRoleToAccount

ToQuery AssociateServiceRoleToAccount Source # 
Instance details

Defined in Amazonka.Greengrass.AssociateServiceRoleToAccount

AWSRequest AssociateServiceRoleToAccount Source # 
Instance details

Defined in Amazonka.Greengrass.AssociateServiceRoleToAccount

Generic AssociateServiceRoleToAccount Source # 
Instance details

Defined in Amazonka.Greengrass.AssociateServiceRoleToAccount

Associated Types

type Rep AssociateServiceRoleToAccount :: Type -> Type #

Read AssociateServiceRoleToAccount Source # 
Instance details

Defined in Amazonka.Greengrass.AssociateServiceRoleToAccount

Show AssociateServiceRoleToAccount Source # 
Instance details

Defined in Amazonka.Greengrass.AssociateServiceRoleToAccount

NFData AssociateServiceRoleToAccount Source # 
Instance details

Defined in Amazonka.Greengrass.AssociateServiceRoleToAccount

Eq AssociateServiceRoleToAccount Source # 
Instance details

Defined in Amazonka.Greengrass.AssociateServiceRoleToAccount

Hashable AssociateServiceRoleToAccount Source # 
Instance details

Defined in Amazonka.Greengrass.AssociateServiceRoleToAccount

type AWSResponse AssociateServiceRoleToAccount Source # 
Instance details

Defined in Amazonka.Greengrass.AssociateServiceRoleToAccount

type Rep AssociateServiceRoleToAccount Source # 
Instance details

Defined in Amazonka.Greengrass.AssociateServiceRoleToAccount

type Rep AssociateServiceRoleToAccount = D1 ('MetaData "AssociateServiceRoleToAccount" "Amazonka.Greengrass.AssociateServiceRoleToAccount" "amazonka-greengrass-2.0-KjUXjyW3l8XyfFjm5ZueR" 'False) (C1 ('MetaCons "AssociateServiceRoleToAccount'" 'PrefixI 'True) (S1 ('MetaSel ('Just "roleArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))

newAssociateServiceRoleToAccount Source #

Create a value of AssociateServiceRoleToAccount 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:roleArn:AssociateServiceRoleToAccount', associateServiceRoleToAccount_roleArn - The ARN of the service role you wish to associate with your account.

Request Lenses

associateServiceRoleToAccount_roleArn :: Lens' AssociateServiceRoleToAccount Text Source #

The ARN of the service role you wish to associate with your account.

Destructuring the Response

data AssociateServiceRoleToAccountResponse Source #

Constructors

AssociateServiceRoleToAccountResponse' 

Fields

Instances

Instances details
Generic AssociateServiceRoleToAccountResponse Source # 
Instance details

Defined in Amazonka.Greengrass.AssociateServiceRoleToAccount

Read AssociateServiceRoleToAccountResponse Source # 
Instance details

Defined in Amazonka.Greengrass.AssociateServiceRoleToAccount

Show AssociateServiceRoleToAccountResponse Source # 
Instance details

Defined in Amazonka.Greengrass.AssociateServiceRoleToAccount

NFData AssociateServiceRoleToAccountResponse Source # 
Instance details

Defined in Amazonka.Greengrass.AssociateServiceRoleToAccount

Eq AssociateServiceRoleToAccountResponse Source # 
Instance details

Defined in Amazonka.Greengrass.AssociateServiceRoleToAccount

type Rep AssociateServiceRoleToAccountResponse Source # 
Instance details

Defined in Amazonka.Greengrass.AssociateServiceRoleToAccount

type Rep AssociateServiceRoleToAccountResponse = D1 ('MetaData "AssociateServiceRoleToAccountResponse" "Amazonka.Greengrass.AssociateServiceRoleToAccount" "amazonka-greengrass-2.0-KjUXjyW3l8XyfFjm5ZueR" 'False) (C1 ('MetaCons "AssociateServiceRoleToAccountResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "associatedAt") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

newAssociateServiceRoleToAccountResponse Source #

Create a value of AssociateServiceRoleToAccountResponse 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:AssociateServiceRoleToAccountResponse', associateServiceRoleToAccountResponse_associatedAt - The time when the service role was associated with the account.

$sel:httpStatus:AssociateServiceRoleToAccountResponse', associateServiceRoleToAccountResponse_httpStatus - The response's http status code.

Response Lenses

associateServiceRoleToAccountResponse_associatedAt :: Lens' AssociateServiceRoleToAccountResponse (Maybe Text) Source #

The time when the service role was associated with the account.