Class CfnJob.PresignedUrlConfigProperty.Builder
java.lang.Object
software.amazon.awscdk.services.iot.CfnJob.PresignedUrlConfigProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnJob.PresignedUrlConfigProperty>
- Enclosing interface:
CfnJob.PresignedUrlConfigProperty
@Stability(Stable)
public static final class CfnJob.PresignedUrlConfigProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnJob.PresignedUrlConfigProperty>
A builder for
CfnJob.PresignedUrlConfigProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.expiresInSec(Number expiresInSec) Sets the value ofCfnJob.PresignedUrlConfigProperty.getExpiresInSec()Sets the value ofCfnJob.PresignedUrlConfigProperty.getRoleArn()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
expiresInSec
@Stability(Stable) public CfnJob.PresignedUrlConfigProperty.Builder expiresInSec(Number expiresInSec) Sets the value ofCfnJob.PresignedUrlConfigProperty.getExpiresInSec()- Parameters:
expiresInSec- How long (in seconds) pre-signed URLs are valid. Valid values are 60 - 3600, the default value is 3600 seconds.- Returns:
this
-
roleArn
Sets the value ofCfnJob.PresignedUrlConfigProperty.getRoleArn()- 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.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnJob.PresignedUrlConfigProperty>- Returns:
- a new instance of
CfnJob.PresignedUrlConfigProperty - Throws:
NullPointerException- if any required attribute was not provided
-