com.pulumi.awsnative.guardduty.kotlin.IpSetArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-aws-native-kotlin Show documentation
Show all versions of pulumi-aws-native-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.awsnative.guardduty.kotlin
import com.pulumi.awsnative.guardduty.IpSetArgs.builder
import com.pulumi.awsnative.kotlin.inputs.TagArgs
import com.pulumi.awsnative.kotlin.inputs.TagArgsBuilder
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.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName
/**
* Resource Type definition for AWS::GuardDuty::IPSet
* @property activate Indicates whether or not GuardDuty uses the `IPSet` .
* @property detectorId The unique ID of the detector of the GuardDuty account that you want to create an IPSet for.
* @property format The format of the file that contains the IPSet.
* @property location The URI of the file that contains the IPSet.
* @property name The user-friendly name to identify the IPSet.
* Allowed characters are alphanumeric, whitespace, dash (-), and underscores (_).
* @property tags The tags to be added to a new IP set resource. Each tag consists of a key and an optional value, both of which you define.
* For more information, see [Tag](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-resource-tags.html) .
*/
public data class IpSetArgs(
public val activate: Output? = null,
public val detectorId: Output? = null,
public val format: Output? = null,
public val location: Output? = null,
public val name: Output? = null,
public val tags: Output>? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.awsnative.guardduty.IpSetArgs =
com.pulumi.awsnative.guardduty.IpSetArgs.builder()
.activate(activate?.applyValue({ args0 -> args0 }))
.detectorId(detectorId?.applyValue({ args0 -> args0 }))
.format(format?.applyValue({ args0 -> args0 }))
.location(location?.applyValue({ args0 -> args0 }))
.name(name?.applyValue({ args0 -> args0 }))
.tags(
tags?.applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
})
}),
).build()
}
/**
* Builder for [IpSetArgs].
*/
@PulumiTagMarker
public class IpSetArgsBuilder internal constructor() {
private var activate: Output? = null
private var detectorId: Output? = null
private var format: Output? = null
private var location: Output? = null
private var name: Output? = null
private var tags: Output>? = null
/**
* @param value Indicates whether or not GuardDuty uses the `IPSet` .
*/
@JvmName("lcyrhrsidbuurwuk")
public suspend fun activate(`value`: Output) {
this.activate = value
}
/**
* @param value The unique ID of the detector of the GuardDuty account that you want to create an IPSet for.
*/
@JvmName("hyadcqamhtljayvy")
public suspend fun detectorId(`value`: Output) {
this.detectorId = value
}
/**
* @param value The format of the file that contains the IPSet.
*/
@JvmName("vcsjgfmnuvwvcrjo")
public suspend fun format(`value`: Output) {
this.format = value
}
/**
* @param value The URI of the file that contains the IPSet.
*/
@JvmName("dypqopygisyijddq")
public suspend fun location(`value`: Output) {
this.location = value
}
/**
* @param value The user-friendly name to identify the IPSet.
* Allowed characters are alphanumeric, whitespace, dash (-), and underscores (_).
*/
@JvmName("gaegylvplbfmrfgl")
public suspend fun name(`value`: Output) {
this.name = value
}
/**
* @param value The tags to be added to a new IP set resource. Each tag consists of a key and an optional value, both of which you define.
* For more information, see [Tag](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-resource-tags.html) .
*/
@JvmName("yrkghkitoffntoac")
public suspend fun tags(`value`: Output>) {
this.tags = value
}
@JvmName("ideqpkxdidwnrmdx")
public suspend fun tags(vararg values: Output) {
this.tags = Output.all(values.asList())
}
/**
* @param values The tags to be added to a new IP set resource. Each tag consists of a key and an optional value, both of which you define.
* For more information, see [Tag](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-resource-tags.html) .
*/
@JvmName("xtqoqxhiyjchcbot")
public suspend fun tags(values: List