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