
com.pulumi.awsnative.cloudfront.kotlin.outputs.ResponseHeadersPolicyStrictTransportSecurity.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.awsnative.cloudfront.kotlin.outputs
import kotlin.Boolean
import kotlin.Int
import kotlin.Suppress
/**
*
* @property accessControlMaxAgeSec A number that CloudFront uses as the value for the `max-age` directive in the `Strict-Transport-Security` HTTP response header.
* @property includeSubdomains A Boolean that determines whether CloudFront includes the `includeSubDomains` directive in the `Strict-Transport-Security` HTTP response header.
* @property override A Boolean that determines whether CloudFront overrides the `Strict-Transport-Security` HTTP response header received from the origin with the one specified in this response headers policy.
* @property preload A Boolean that determines whether CloudFront includes the `preload` directive in the `Strict-Transport-Security` HTTP response header.
*/
public data class ResponseHeadersPolicyStrictTransportSecurity(
public val accessControlMaxAgeSec: Int,
public val includeSubdomains: Boolean? = null,
public val `override`: Boolean,
public val preload: Boolean? = null,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.awsnative.cloudfront.outputs.ResponseHeadersPolicyStrictTransportSecurity): ResponseHeadersPolicyStrictTransportSecurity = ResponseHeadersPolicyStrictTransportSecurity(
accessControlMaxAgeSec = javaType.accessControlMaxAgeSec(),
includeSubdomains = javaType.includeSubdomains().map({ args0 -> args0 }).orElse(null),
`override` = javaType.`override`(),
preload = javaType.preload().map({ args0 -> args0 }).orElse(null),
)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy