![JAR search and dependency download from the Maven repository](/logo.png)
com.pulumi.awsnative.organizations.kotlin.ResourcePolicyArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.awsnative.organizations.kotlin
import com.pulumi.awsnative.kotlin.inputs.TagArgs
import com.pulumi.awsnative.kotlin.inputs.TagArgsBuilder
import com.pulumi.awsnative.organizations.ResourcePolicyArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Any
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName
/**
* You can use AWS::Organizations::ResourcePolicy to delegate policy management for AWS Organizations to specified member accounts to perform policy actions that are by default available only to the management account.
* @property content The policy document. For AWS CloudFormation templates formatted in YAML, you can provide the policy in JSON or YAML format. AWS CloudFormation always converts a YAML policy to JSON format before submitting it.
* Search the [CloudFormation User Guide](https://docs.aws.amazon.com/cloudformation/) for `AWS::Organizations::ResourcePolicy` for more information about the expected schema for this property.
* @property tags A list of tags that you want to attach to the resource policy
*/
public data class ResourcePolicyArgs(
public val content: Output? = null,
public val tags: Output>? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.awsnative.organizations.ResourcePolicyArgs =
com.pulumi.awsnative.organizations.ResourcePolicyArgs.builder()
.content(content?.applyValue({ args0 -> args0 }))
.tags(
tags?.applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
})
}),
).build()
}
/**
* Builder for [ResourcePolicyArgs].
*/
@PulumiTagMarker
public class ResourcePolicyArgsBuilder internal constructor() {
private var content: Output? = null
private var tags: Output>? = null
/**
* @param value The policy document. For AWS CloudFormation templates formatted in YAML, you can provide the policy in JSON or YAML format. AWS CloudFormation always converts a YAML policy to JSON format before submitting it.
* Search the [CloudFormation User Guide](https://docs.aws.amazon.com/cloudformation/) for `AWS::Organizations::ResourcePolicy` for more information about the expected schema for this property.
*/
@JvmName("iqqbtwhswtflbjvo")
public suspend fun content(`value`: Output) {
this.content = value
}
/**
* @param value A list of tags that you want to attach to the resource policy
*/
@JvmName("wappqhtbuyehcpmi")
public suspend fun tags(`value`: Output>) {
this.tags = value
}
@JvmName("cahgakpcewegemja")
public suspend fun tags(vararg values: Output) {
this.tags = Output.all(values.asList())
}
/**
* @param values A list of tags that you want to attach to the resource policy
*/
@JvmName("ukhllpaurhftosut")
public suspend fun tags(values: List
© 2015 - 2025 Weber Informatics LLC | Privacy Policy