Interface PresignedUrlConfig.Builder

    • Method Detail

      • roleArn

        PresignedUrlConfig.Builder roleArn​(String roleArn)

        The ARN of an IAM role that 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.

        Parameters:
        roleArn - The ARN of an IAM role that 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.

        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • expiresInSec

        PresignedUrlConfig.Builder expiresInSec​(Long 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.

        Parameters:
        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.
        Returns:
        Returns a reference to this object so that method calls can be chained together.