All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.awsnative.iot.kotlin.outputs.PresignedUrlConfigProperties.kt Maven / Gradle / Ivy

Go to download

Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.

There is a newer version: 1.11.0.0
Show newest version
@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(),
        )
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy