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

com.pulumi.awsnative.cloudfront.kotlin.inputs.ResponseHeadersPolicyAccessControlAllowMethodsArgs.kt Maven / Gradle / Ivy

@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.awsnative.cloudfront.kotlin.inputs

import com.pulumi.awsnative.cloudfront.inputs.ResponseHeadersPolicyAccessControlAllowMethodsArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 *
 * @property items The list of HTTP methods. Valid values are:
 * - `GET`
 * - `DELETE`
 * - `HEAD`
 * - `OPTIONS`
 * - `PATCH`
 * - `POST`
 * - `PUT`
 * - `ALL`
 * `ALL` is a special value that includes all of the listed HTTP methods.
 */
public data class ResponseHeadersPolicyAccessControlAllowMethodsArgs(
    public val items: Output>,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.cloudfront.inputs.ResponseHeadersPolicyAccessControlAllowMethodsArgs =
        com.pulumi.awsnative.cloudfront.inputs.ResponseHeadersPolicyAccessControlAllowMethodsArgs.builder()
            .items(items.applyValue({ args0 -> args0.map({ args0 -> args0 }) })).build()
}

/**
 * Builder for [ResponseHeadersPolicyAccessControlAllowMethodsArgs].
 */
@PulumiTagMarker
public class ResponseHeadersPolicyAccessControlAllowMethodsArgsBuilder internal constructor() {
    private var items: Output>? = null

    /**
     * @param value The list of HTTP methods. Valid values are:
     * - `GET`
     * - `DELETE`
     * - `HEAD`
     * - `OPTIONS`
     * - `PATCH`
     * - `POST`
     * - `PUT`
     * - `ALL`
     * `ALL` is a special value that includes all of the listed HTTP methods.
     */
    @JvmName("kgsfjygpgaocwsfs")
    public suspend fun items(`value`: Output>) {
        this.items = value
    }

    @JvmName("onfopaaroxbfuhoo")
    public suspend fun items(vararg values: Output) {
        this.items = Output.all(values.asList())
    }

    /**
     * @param values The list of HTTP methods. Valid values are:
     * - `GET`
     * - `DELETE`
     * - `HEAD`
     * - `OPTIONS`
     * - `PATCH`
     * - `POST`
     * - `PUT`
     * - `ALL`
     * `ALL` is a special value that includes all of the listed HTTP methods.
     */
    @JvmName("lipwrijltsaaceyt")
    public suspend fun items(values: List>) {
        this.items = Output.all(values)
    }

    /**
     * @param value The list of HTTP methods. Valid values are:
     * - `GET`
     * - `DELETE`
     * - `HEAD`
     * - `OPTIONS`
     * - `PATCH`
     * - `POST`
     * - `PUT`
     * - `ALL`
     * `ALL` is a special value that includes all of the listed HTTP methods.
     */
    @JvmName("enrldnwqqiooqucr")
    public suspend fun items(`value`: List) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.items = mapped
    }

    /**
     * @param values The list of HTTP methods. Valid values are:
     * - `GET`
     * - `DELETE`
     * - `HEAD`
     * - `OPTIONS`
     * - `PATCH`
     * - `POST`
     * - `PUT`
     * - `ALL`
     * `ALL` is a special value that includes all of the listed HTTP methods.
     */
    @JvmName("dhlxnnobhdoqxxue")
    public suspend fun items(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.items = mapped
    }

    internal fun build(): ResponseHeadersPolicyAccessControlAllowMethodsArgs =
        ResponseHeadersPolicyAccessControlAllowMethodsArgs(
            items = items ?: throw PulumiNullFieldException("items"),
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy