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

com.pulumi.awsnative.rum.kotlin.AppMonitorArgs.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.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>) {
        this.tags = Output.all(values)
    }

    /**
     * @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("wvvsoggerciylyxk")
    public suspend fun appMonitorConfiguration(`value`: AppMonitorConfigurationArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.appMonitorConfiguration = mapped
    }

    /**
     * @param argument 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("jncngqrytdsjdnih")
    public suspend fun appMonitorConfiguration(argument: suspend AppMonitorConfigurationArgsBuilder.() -> Unit) {
        val toBeMapped = AppMonitorConfigurationArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.appMonitorConfiguration = mapped
    }

    /**
     * @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("ohajjpasbpqlthyj")
    public suspend fun customEvents(`value`: AppMonitorCustomEventsArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.customEvents = mapped
    }

    /**
     * @param argument 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("fjsieqfmulqmpqfa")
    public suspend fun customEvents(argument: suspend AppMonitorCustomEventsArgsBuilder.() -> Unit) {
        val toBeMapped = AppMonitorCustomEventsArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.customEvents = mapped
    }

    /**
     * @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("swhjdjwtcnomggkr")
    public suspend fun cwLogEnabled(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.cwLogEnabled = mapped
    }

    /**
     * @param value The top-level internet domain name for which your application has administrative authority.
     */
    @JvmName("jrerccturdvwyxkf")
    public suspend fun domain(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.domain = mapped
    }

    /**
     * @param value A name for the app monitor
     */
    @JvmName("mimfyjqujjgftfrm")
    public suspend fun name(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.name = mapped
    }

    /**
     * @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("qqsuyfyqqdryvlfh")
    public suspend fun tags(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param argument 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("plskrkpfjplxuaxy")
    public suspend fun tags(argument: List Unit>) {
        val toBeMapped = argument.toList().map { TagArgsBuilder().applySuspend { it() }.build() }
        val mapped = of(toBeMapped)
        this.tags = mapped
    }

    /**
     * @param argument 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("ltwlrosbcfxbplpb")
    public suspend fun tags(vararg argument: suspend TagArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map { TagArgsBuilder().applySuspend { it() }.build() }
        val mapped = of(toBeMapped)
        this.tags = mapped
    }

    /**
     * @param argument 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("rbeemjtlbbwfrhdh")
    public suspend fun tags(argument: suspend TagArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(TagArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.tags = mapped
    }

    /**
     * @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("lfbptonaciajpoqd")
    public suspend fun tags(vararg values: TagArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    internal fun build(): AppMonitorArgs = AppMonitorArgs(
        appMonitorConfiguration = appMonitorConfiguration,
        customEvents = customEvents,
        cwLogEnabled = cwLogEnabled,
        domain = domain,
        name = name,
        tags = tags,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy