com.pulumi.awsnative.iot.kotlin.outputs.PresignedUrlConfigProperties.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-aws-native-kotlin Show documentation
Show all versions of pulumi-aws-native-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.awsnative.iot.kotlin.outputs
import kotlin.Int
import kotlin.String
import kotlin.Suppress
/**
* Configuration for pre-signed S3 URLs.
* @property 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.
* @property 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](https://docs.aws.amazon.com/iot/latest/developerguide/cross-service-confused-deputy-prevention.html) in the *AWS IoT Core developer guide* .
*/
public data class PresignedUrlConfigProperties(
public val expiresInSec: Int? = null,
public val roleArn: String,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.awsnative.iot.outputs.PresignedUrlConfigProperties): PresignedUrlConfigProperties = PresignedUrlConfigProperties(
expiresInSec = javaType.expiresInSec().map({ args0 -> args0 }).orElse(null),
roleArn = javaType.roleArn(),
)
}
}