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

com.pulumi.awsnative.globalaccelerator.kotlin.outputs.GetCrossAccountAttachmentResult.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: 0.122.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.awsnative.globalaccelerator.kotlin.outputs

import com.pulumi.awsnative.kotlin.outputs.Tag
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List

/**
 *
 * @property attachmentArn The Amazon Resource Name (ARN) of the attachment.
 * @property name The Friendly identifier of the attachment.
 * @property principals Principals to share the resources with.
 * @property resources Resources shared using the attachment.
 * @property tags Add tags for a cross-account attachment.
 * For more information, see [Tagging in AWS Global Accelerator](https://docs.aws.amazon.com/global-accelerator/latest/dg/tagging-in-global-accelerator.html) in the *AWS Global Accelerator Developer Guide* .
 */
public data class GetCrossAccountAttachmentResult(
    public val attachmentArn: String? = null,
    public val name: String? = null,
    public val principals: List? = null,
    public val resources: List? = null,
    public val tags: List? = null,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.awsnative.globalaccelerator.outputs.GetCrossAccountAttachmentResult): GetCrossAccountAttachmentResult = GetCrossAccountAttachmentResult(
            attachmentArn = javaType.attachmentArn().map({ args0 -> args0 }).orElse(null),
            name = javaType.name().map({ args0 -> args0 }).orElse(null),
            principals = javaType.principals().map({ args0 -> args0 }),
            resources = javaType.resources().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.awsnative.globalaccelerator.kotlin.outputs.CrossAccountAttachmentResource.Companion.toKotlin(args0)
                })
            }),
            tags = javaType.tags().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.awsnative.kotlin.outputs.Tag.Companion.toKotlin(args0)
                })
            }),
        )
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy