amazonka-iot-2.0: Amazon IoT 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.IoT.Types.PresignedUrlConfig

Description

 
Synopsis

Documentation

data PresignedUrlConfig Source #

Configuration for pre-signed S3 URLs.

See: newPresignedUrlConfig smart constructor.

Constructors

PresignedUrlConfig' 

Fields

  • expiresInSec :: Maybe Natural

    How long (in seconds) pre-signed URLs are valid. Valid values are 60 - 3600, the default value is 3600 seconds. Pre-signed URLs are generated when Jobs receives an MQTT request for the job document.

  • roleArn :: Maybe Text

    The ARN of an IAM role that grants grants permission to download files from the S3 bucket where the job data/updates are stored. The role must also grant permission for IoT to download the files.

    For information about addressing the confused deputy problem, see cross-service confused deputy prevention in the Amazon Web Services IoT Core developer guide.

Instances

Instances details
FromJSON PresignedUrlConfig Source # 
Instance details

Defined in Amazonka.IoT.Types.PresignedUrlConfig

ToJSON PresignedUrlConfig Source # 
Instance details

Defined in Amazonka.IoT.Types.PresignedUrlConfig

Generic PresignedUrlConfig Source # 
Instance details

Defined in Amazonka.IoT.Types.PresignedUrlConfig

Associated Types

type Rep PresignedUrlConfig :: Type -> Type #

Read PresignedUrlConfig Source # 
Instance details

Defined in Amazonka.IoT.Types.PresignedUrlConfig

Show PresignedUrlConfig Source # 
Instance details

Defined in Amazonka.IoT.Types.PresignedUrlConfig

NFData PresignedUrlConfig Source # 
Instance details

Defined in Amazonka.IoT.Types.PresignedUrlConfig

Methods

rnf :: PresignedUrlConfig -> () #

Eq PresignedUrlConfig Source # 
Instance details

Defined in Amazonka.IoT.Types.PresignedUrlConfig

Hashable PresignedUrlConfig Source # 
Instance details

Defined in Amazonka.IoT.Types.PresignedUrlConfig

type Rep PresignedUrlConfig Source # 
Instance details

Defined in Amazonka.IoT.Types.PresignedUrlConfig

type Rep PresignedUrlConfig = D1 ('MetaData "PresignedUrlConfig" "Amazonka.IoT.Types.PresignedUrlConfig" "amazonka-iot-2.0-6w03vgAfmrM1SG22OsNJXL" 'False) (C1 ('MetaCons "PresignedUrlConfig'" 'PrefixI 'True) (S1 ('MetaSel ('Just "expiresInSec") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Natural)) :*: S1 ('MetaSel ('Just "roleArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))))

newPresignedUrlConfig :: PresignedUrlConfig Source #

Create a value of PresignedUrlConfig 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:expiresInSec:PresignedUrlConfig', presignedUrlConfig_expiresInSec - How long (in seconds) pre-signed URLs are valid. Valid values are 60 - 3600, the default value is 3600 seconds. Pre-signed URLs are generated when Jobs receives an MQTT request for the job document.

$sel:roleArn:PresignedUrlConfig', presignedUrlConfig_roleArn - The ARN of an IAM role that grants grants permission to download files from the S3 bucket where the job data/updates are stored. The role must also grant permission for IoT to download the files.

For information about addressing the confused deputy problem, see cross-service confused deputy prevention in the Amazon Web Services IoT Core developer guide.

presignedUrlConfig_expiresInSec :: Lens' PresignedUrlConfig (Maybe Natural) Source #

How long (in seconds) pre-signed URLs are valid. Valid values are 60 - 3600, the default value is 3600 seconds. Pre-signed URLs are generated when Jobs receives an MQTT request for the job document.

presignedUrlConfig_roleArn :: Lens' PresignedUrlConfig (Maybe Text) Source #

The ARN of an IAM role that grants grants permission to download files from the S3 bucket where the job data/updates are stored. The role must also grant permission for IoT to download the files.

For information about addressing the confused deputy problem, see cross-service confused deputy prevention in the Amazon Web Services IoT Core developer guide.