Class CfnJobTemplate.PresignedUrlConfigProperty.Builder
java.lang.Object
software.amazon.awscdk.services.iot.CfnJobTemplate.PresignedUrlConfigProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnJobTemplate.PresignedUrlConfigProperty>
- Enclosing interface:
CfnJobTemplate.PresignedUrlConfigProperty
@Stability(Stable)
public static final class CfnJobTemplate.PresignedUrlConfigProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnJobTemplate.PresignedUrlConfigProperty>
A builder for
CfnJobTemplate.PresignedUrlConfigProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.expiresInSec
(Number expiresInSec) Sets the value ofCfnJobTemplate.PresignedUrlConfigProperty.getExpiresInSec()
Sets the value ofCfnJobTemplate.PresignedUrlConfigProperty.getRoleArn()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
roleArn
Sets the value ofCfnJobTemplate.PresignedUrlConfigProperty.getRoleArn()
- Parameters:
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. This parameter is required. 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 AWS IoT Core developer guide .
- Returns:
this
-
expiresInSec
@Stability(Stable) public CfnJobTemplate.PresignedUrlConfigProperty.Builder expiresInSec(Number expiresInSec) Sets the value ofCfnJobTemplate.PresignedUrlConfigProperty.getExpiresInSec()
- 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:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnJobTemplate.PresignedUrlConfigProperty>
- Returns:
- a new instance of
CfnJobTemplate.PresignedUrlConfigProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-