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

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

@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.awsnative.iot.kotlin.outputs

import kotlin.String
import kotlin.Suppress

/**
 *
 * @property putItem Specifies the DynamoDB table to which the message data will be written. For example:
 * `{ "dynamoDBv2": { "roleArn": "aws:iam:12341251:my-role" "putItem": { "tableName": "my-table" } } }`
 * Each attribute in the message payload will be written to a separate column in the DynamoDB database.
 * @property roleArn The ARN of the IAM role that grants access to the DynamoDB table.
 */
public data class TopicRuleDynamoDBv2Action(
    public val putItem: TopicRulePutItemInput? = null,
    public val roleArn: String? = null,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.awsnative.iot.outputs.TopicRuleDynamoDBv2Action): TopicRuleDynamoDBv2Action = TopicRuleDynamoDBv2Action(
            putItem = javaType.putItem().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.awsnative.iot.kotlin.outputs.TopicRulePutItemInput.Companion.toKotlin(args0)
                })
            }).orElse(null),
            roleArn = javaType.roleArn().map({ args0 -> args0 }).orElse(null),
        )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy