com.pulumi.awsnative.rum.kotlin.AppMonitorArgs.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.rum.kotlin
import com.pulumi.awsnative.kotlin.inputs.TagArgs
import com.pulumi.awsnative.kotlin.inputs.TagArgsBuilder
import com.pulumi.awsnative.rum.AppMonitorArgs.builder
import com.pulumi.awsnative.rum.kotlin.inputs.AppMonitorConfigurationArgs
import com.pulumi.awsnative.rum.kotlin.inputs.AppMonitorConfigurationArgsBuilder
import com.pulumi.awsnative.rum.kotlin.inputs.AppMonitorCustomEventsArgs
import com.pulumi.awsnative.rum.kotlin.inputs.AppMonitorCustomEventsArgsBuilder
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::RUM::AppMonitor
* @property appMonitorConfiguration A structure that contains much of the configuration data for the app monitor. If you are using Amazon Cognito for authorization, you must include this structure in your request, and it must include the ID of the Amazon Cognito identity pool to use for authorization. If you don't include `AppMonitorConfiguration` , you must set up your own authorization method. For more information, see [Authorize your application to send data to AWS](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch-RUM-get-started-authorization.html) .
* If you omit this argument, the sample rate used for CloudWatch RUM is set to 10% of the user sessions.
* @property customEvents Specifies whether this app monitor allows the web client to define and send custom events. If you omit this parameter, custom events are `DISABLED` .
* @property cwLogEnabled Data collected by RUM is kept by RUM for 30 days and then deleted. This parameter specifies whether RUM sends a copy of this telemetry data to CWLlong in your account. This enables you to keep the telemetry data for more than 30 days, but it does incur CWLlong charges. If you omit this parameter, the default is false
* @property domain The top-level internet domain name for which your application has administrative authority.
* @property name A name for the app monitor
* @property tags Assigns one or more tags (key-value pairs) to the app monitor.
* Tags can help you organize and categorize your resources. You can also use them to scope user permissions by granting a user permission to access or change only resources with certain tag values.
* Tags don't have any semantic meaning to AWS and are interpreted strictly as strings of characters.
* You can associate as many as 50 tags with an app monitor.
* For more information, see [Tagging AWS resources](https://docs.aws.amazon.com/general/latest/gr/aws_tagging.html) .
*/
public data class AppMonitorArgs(
public val appMonitorConfiguration: Output? = null,
public val customEvents: Output? = null,
public val cwLogEnabled: Output? = null,
public val domain: Output? = null,
public val name: Output? = null,
public val tags: Output>? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.awsnative.rum.AppMonitorArgs =
com.pulumi.awsnative.rum.AppMonitorArgs.builder()
.appMonitorConfiguration(
appMonitorConfiguration?.applyValue({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
}),
)
.customEvents(customEvents?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.cwLogEnabled(cwLogEnabled?.applyValue({ args0 -> args0 }))
.domain(domain?.applyValue({ args0 -> args0 }))
.name(name?.applyValue({ args0 -> args0 }))
.tags(
tags?.applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
})
}),
).build()
}
/**
* Builder for [AppMonitorArgs].
*/
@PulumiTagMarker
public class AppMonitorArgsBuilder internal constructor() {
private var appMonitorConfiguration: Output? = null
private var customEvents: Output? = null
private var cwLogEnabled: Output? = null
private var domain: Output? = null
private var name: Output? = null
private var tags: Output>? = null
/**
* @param value A structure that contains much of the configuration data for the app monitor. If you are using Amazon Cognito for authorization, you must include this structure in your request, and it must include the ID of the Amazon Cognito identity pool to use for authorization. If you don't include `AppMonitorConfiguration` , you must set up your own authorization method. For more information, see [Authorize your application to send data to AWS](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch-RUM-get-started-authorization.html) .
* If you omit this argument, the sample rate used for CloudWatch RUM is set to 10% of the user sessions.
*/
@JvmName("inwklbaxiaqrhjlj")
public suspend fun appMonitorConfiguration(`value`: Output) {
this.appMonitorConfiguration = value
}
/**
* @param value Specifies whether this app monitor allows the web client to define and send custom events. If you omit this parameter, custom events are `DISABLED` .
*/
@JvmName("vxmejkfmltfeuiov")
public suspend fun customEvents(`value`: Output) {
this.customEvents = value
}
/**
* @param value Data collected by RUM is kept by RUM for 30 days and then deleted. This parameter specifies whether RUM sends a copy of this telemetry data to CWLlong in your account. This enables you to keep the telemetry data for more than 30 days, but it does incur CWLlong charges. If you omit this parameter, the default is false
*/
@JvmName("ttqgaopvejtxokns")
public suspend fun cwLogEnabled(`value`: Output) {
this.cwLogEnabled = value
}
/**
* @param value The top-level internet domain name for which your application has administrative authority.
*/
@JvmName("aiwbmfshvdpawiad")
public suspend fun domain(`value`: Output) {
this.domain = value
}
/**
* @param value A name for the app monitor
*/
@JvmName("wtxphnomvujnpsqj")
public suspend fun name(`value`: Output) {
this.name = value
}
/**
* @param value Assigns one or more tags (key-value pairs) to the app monitor.
* Tags can help you organize and categorize your resources. You can also use them to scope user permissions by granting a user permission to access or change only resources with certain tag values.
* Tags don't have any semantic meaning to AWS and are interpreted strictly as strings of characters.
* You can associate as many as 50 tags with an app monitor.
* For more information, see [Tagging AWS resources](https://docs.aws.amazon.com/general/latest/gr/aws_tagging.html) .
*/
@JvmName("qknnsoqjakprexcv")
public suspend fun tags(`value`: Output>) {
this.tags = value
}
@JvmName("pieqefueifnnatht")
public suspend fun tags(vararg values: Output) {
this.tags = Output.all(values.asList())
}
/**
* @param values Assigns one or more tags (key-value pairs) to the app monitor.
* Tags can help you organize and categorize your resources. You can also use them to scope user permissions by granting a user permission to access or change only resources with certain tag values.
* Tags don't have any semantic meaning to AWS and are interpreted strictly as strings of characters.
* You can associate as many as 50 tags with an app monitor.
* For more information, see [Tagging AWS resources](https://docs.aws.amazon.com/general/latest/gr/aws_tagging.html) .
*/
@JvmName("hgpkiprnbcmfmkgh")
public suspend fun tags(values: List