amazonka-greengrassv2-2.0: Amazon IoT Greengrass V2 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.GreengrassV2.AssociateServiceRoleToAccount

Description

Associates a Greengrass service role with IoT Greengrass for your Amazon Web Services account in this Amazon Web Services Region. IoT Greengrass uses this role to verify the identity of client devices and manage core device connectivity information. The role must include the AWSGreengrassResourceAccessRolePolicy managed policy or a custom policy that defines equivalent permissions for the IoT Greengrass features that you use. For more information, see Greengrass service role in the IoT Greengrass Version 2 Developer Guide.

Synopsis

Creating a Request

data AssociateServiceRoleToAccount Source #

See: newAssociateServiceRoleToAccount smart constructor.

Constructors

AssociateServiceRoleToAccount' 

Fields

  • roleArn :: Text

    The Amazon Resource Name (ARN) of the service role to associate with IoT Greengrass for your Amazon Web Services account in this Amazon Web Services Region.

Instances

Instances details
ToJSON AssociateServiceRoleToAccount Source # 
Instance details

Defined in Amazonka.GreengrassV2.AssociateServiceRoleToAccount

ToHeaders AssociateServiceRoleToAccount Source # 
Instance details

Defined in Amazonka.GreengrassV2.AssociateServiceRoleToAccount

ToPath AssociateServiceRoleToAccount Source # 
Instance details

Defined in Amazonka.GreengrassV2.AssociateServiceRoleToAccount

ToQuery AssociateServiceRoleToAccount Source # 
Instance details

Defined in Amazonka.GreengrassV2.AssociateServiceRoleToAccount

AWSRequest AssociateServiceRoleToAccount Source # 
Instance details

Defined in Amazonka.GreengrassV2.AssociateServiceRoleToAccount

Generic AssociateServiceRoleToAccount Source # 
Instance details

Defined in Amazonka.GreengrassV2.AssociateServiceRoleToAccount

Associated Types

type Rep AssociateServiceRoleToAccount :: Type -> Type #

Read AssociateServiceRoleToAccount Source # 
Instance details

Defined in Amazonka.GreengrassV2.AssociateServiceRoleToAccount

Show AssociateServiceRoleToAccount Source # 
Instance details

Defined in Amazonka.GreengrassV2.AssociateServiceRoleToAccount

NFData AssociateServiceRoleToAccount Source # 
Instance details

Defined in Amazonka.GreengrassV2.AssociateServiceRoleToAccount

Eq AssociateServiceRoleToAccount Source # 
Instance details

Defined in Amazonka.GreengrassV2.AssociateServiceRoleToAccount

Hashable AssociateServiceRoleToAccount Source # 
Instance details

Defined in Amazonka.GreengrassV2.AssociateServiceRoleToAccount

type AWSResponse AssociateServiceRoleToAccount Source # 
Instance details

Defined in Amazonka.GreengrassV2.AssociateServiceRoleToAccount

type Rep AssociateServiceRoleToAccount Source # 
Instance details

Defined in Amazonka.GreengrassV2.AssociateServiceRoleToAccount

type Rep AssociateServiceRoleToAccount = D1 ('MetaData "AssociateServiceRoleToAccount" "Amazonka.GreengrassV2.AssociateServiceRoleToAccount" "amazonka-greengrassv2-2.0-CXiJQl197i43YI1Cz5IpiZ" '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 Amazon Resource Name (ARN) of the service role to associate with IoT Greengrass for your Amazon Web Services account in this Amazon Web Services Region.

Request Lenses

associateServiceRoleToAccount_roleArn :: Lens' AssociateServiceRoleToAccount Text Source #

The Amazon Resource Name (ARN) of the service role to associate with IoT Greengrass for your Amazon Web Services account in this Amazon Web Services Region.

Destructuring the Response

data AssociateServiceRoleToAccountResponse Source #

Constructors

AssociateServiceRoleToAccountResponse' 

Fields

  • associatedAt :: Maybe Text

    The time when the service role was associated with IoT Greengrass for your Amazon Web Services account in this Amazon Web Services Region.

  • httpStatus :: Int

    The response's http status code.

Instances

Instances details
Generic AssociateServiceRoleToAccountResponse Source # 
Instance details

Defined in Amazonka.GreengrassV2.AssociateServiceRoleToAccount

Read AssociateServiceRoleToAccountResponse Source # 
Instance details

Defined in Amazonka.GreengrassV2.AssociateServiceRoleToAccount

Show AssociateServiceRoleToAccountResponse Source # 
Instance details

Defined in Amazonka.GreengrassV2.AssociateServiceRoleToAccount

NFData AssociateServiceRoleToAccountResponse Source # 
Instance details

Defined in Amazonka.GreengrassV2.AssociateServiceRoleToAccount

Eq AssociateServiceRoleToAccountResponse Source # 
Instance details

Defined in Amazonka.GreengrassV2.AssociateServiceRoleToAccount

type Rep AssociateServiceRoleToAccountResponse Source # 
Instance details

Defined in Amazonka.GreengrassV2.AssociateServiceRoleToAccount

type Rep AssociateServiceRoleToAccountResponse = D1 ('MetaData "AssociateServiceRoleToAccountResponse" "Amazonka.GreengrassV2.AssociateServiceRoleToAccount" "amazonka-greengrassv2-2.0-CXiJQl197i43YI1Cz5IpiZ" '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 IoT Greengrass for your Amazon Web Services account in this Amazon Web Services Region.

$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 IoT Greengrass for your Amazon Web Services account in this Amazon Web Services Region.