Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
@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.PolicyArgs.builder
import com.pulumi.awsnative.organizations.kotlin.enums.PolicyType
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.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName
/**
* Policies in AWS Organizations enable you to manage different features of the AWS accounts in your organization. You can use policies when all features are enabled in your organization.
* @property content The Policy text content. 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::Policy` for more information about the expected schema for this property.
* @property description Human readable description of the policy
* @property name Name of the Policy
* @property tags A list of tags that you want to attach to the newly created policy. For each tag in the list, you must specify both a tag key and a value. You can set the value to an empty string, but you can't set it to null.
* @property targetIds List of unique identifiers (IDs) of the root, OU, or account that you want to attach the policy to
* @property type The type of policy to create. You can specify one of the following values: AISERVICES_OPT_OUT_POLICY, BACKUP_POLICY, SERVICE_CONTROL_POLICY, TAG_POLICY
*/
public data class PolicyArgs(
public val content: Output? = null,
public val description: Output? = null,
public val name: Output? = null,
public val tags: Output>? = null,
public val targetIds: Output>? = null,
public val type: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.awsnative.organizations.PolicyArgs =
com.pulumi.awsnative.organizations.PolicyArgs.builder()
.content(content?.applyValue({ args0 -> args0 }))
.description(description?.applyValue({ args0 -> args0 }))
.name(name?.applyValue({ args0 -> args0 }))
.tags(tags?.applyValue({ args0 -> args0.map({ args0 -> args0.let({ args0 -> args0.toJava() }) }) }))
.targetIds(targetIds?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
.type(type?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })).build()
}
/**
* Builder for [PolicyArgs].
*/
@PulumiTagMarker
public class PolicyArgsBuilder internal constructor() {
private var content: Output? = null
private var description: Output? = null
private var name: Output? = null
private var tags: Output>? = null
private var targetIds: Output>? = null
private var type: Output? = null
/**
* @param value The Policy text content. 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::Policy` for more information about the expected schema for this property.
*/
@JvmName("bpkexgkhnskyvggn")
public suspend fun content(`value`: Output) {
this.content = value
}
/**
* @param value Human readable description of the policy
*/
@JvmName("jtbxddtxigekcejd")
public suspend fun description(`value`: Output) {
this.description = value
}
/**
* @param value Name of the Policy
*/
@JvmName("jqsqsfcleqiujmau")
public suspend fun name(`value`: Output) {
this.name = value
}
/**
* @param value A list of tags that you want to attach to the newly created policy. For each tag in the list, you must specify both a tag key and a value. You can set the value to an empty string, but you can't set it to null.
*/
@JvmName("sjfhjwmsmpgelmrr")
public suspend fun tags(`value`: Output>) {
this.tags = value
}
@JvmName("qotoutxftapnnlbo")
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 newly created policy. For each tag in the list, you must specify both a tag key and a value. You can set the value to an empty string, but you can't set it to null.
*/
@JvmName("aigxbtcfevlrtlfj")
public suspend fun tags(values: List