
com.pulumi.awsnative.cloudfront.kotlin.inputs.DistributionLegacyS3OriginArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.awsnative.cloudfront.kotlin.inputs
import com.pulumi.awsnative.cloudfront.inputs.DistributionLegacyS3OriginArgs.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.jvm.JvmName
/**
*
* @property dnsName The domain name assigned to your CloudFront distribution.
* @property originAccessIdentity The CloudFront origin access identity to associate with the distribution. Use an origin access identity to configure the distribution so that end users can only access objects in an Amazon S3 through CloudFront .
* > This property is legacy. We recommend that you use [OriginAccessControl](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudfront-originaccesscontrol.html) instead.
*/
public data class DistributionLegacyS3OriginArgs(
public val dnsName: Output,
public val originAccessIdentity: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.awsnative.cloudfront.inputs.DistributionLegacyS3OriginArgs =
com.pulumi.awsnative.cloudfront.inputs.DistributionLegacyS3OriginArgs.builder()
.dnsName(dnsName.applyValue({ args0 -> args0 }))
.originAccessIdentity(originAccessIdentity?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [DistributionLegacyS3OriginArgs].
*/
@PulumiTagMarker
public class DistributionLegacyS3OriginArgsBuilder internal constructor() {
private var dnsName: Output? = null
private var originAccessIdentity: Output? = null
/**
* @param value The domain name assigned to your CloudFront distribution.
*/
@JvmName("msqpibrxygaaclni")
public suspend fun dnsName(`value`: Output) {
this.dnsName = value
}
/**
* @param value The CloudFront origin access identity to associate with the distribution. Use an origin access identity to configure the distribution so that end users can only access objects in an Amazon S3 through CloudFront .
* > This property is legacy. We recommend that you use [OriginAccessControl](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudfront-originaccesscontrol.html) instead.
*/
@JvmName("jkghiusyftjpddsn")
public suspend fun originAccessIdentity(`value`: Output) {
this.originAccessIdentity = value
}
/**
* @param value The domain name assigned to your CloudFront distribution.
*/
@JvmName("luwncuuksppmhjgx")
public suspend fun dnsName(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.dnsName = mapped
}
/**
* @param value The CloudFront origin access identity to associate with the distribution. Use an origin access identity to configure the distribution so that end users can only access objects in an Amazon S3 through CloudFront .
* > This property is legacy. We recommend that you use [OriginAccessControl](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudfront-originaccesscontrol.html) instead.
*/
@JvmName("orlvivwqwppmriuo")
public suspend fun originAccessIdentity(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.originAccessIdentity = mapped
}
internal fun build(): DistributionLegacyS3OriginArgs = DistributionLegacyS3OriginArgs(
dnsName = dnsName ?: throw PulumiNullFieldException("dnsName"),
originAccessIdentity = originAccessIdentity,
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy