com.pulumi.awsnative.s3.kotlin.outputs.GetAccessPointResult.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.s3.kotlin.outputs
import com.pulumi.awsnative.s3.kotlin.enums.AccessPointNetworkOrigin
import kotlin.Any
import kotlin.String
import kotlin.Suppress
/**
*
* @property alias The alias of this Access Point. This alias can be used for compatibility purposes with other AWS services and third-party applications.
* @property arn The Amazon Resource Name (ARN) of the specified accesspoint.
* @property networkOrigin Indicates whether this Access Point allows access from the public Internet. If VpcConfiguration is specified for this Access Point, then NetworkOrigin is VPC, and the Access Point doesn't allow access from the public Internet. Otherwise, NetworkOrigin is Internet, and the Access Point allows access from the public Internet, subject to the Access Point and bucket access policies.
* @property policy The Access Point Policy you want to apply to this access point.
* Search the [CloudFormation User Guide](https://docs.aws.amazon.com/cloudformation/) for `AWS::S3::AccessPoint` for more information about the expected schema for this property.
* @property publicAccessBlockConfiguration The PublicAccessBlock configuration that you want to apply to this Access Point. You can enable the configuration options in any combination. For more information about when Amazon S3 considers a bucket or object public, see https://docs.aws.amazon.com/AmazonS3/latest/dev/access-control-block-public-access.html#access-control-block-public-access-policy-status 'The Meaning of Public' in the Amazon Simple Storage Service Developer Guide.
*/
public data class GetAccessPointResult(
public val alias: String? = null,
public val arn: String? = null,
public val networkOrigin: AccessPointNetworkOrigin? = null,
public val policy: Any? = null,
public val publicAccessBlockConfiguration: AccessPointPublicAccessBlockConfiguration? = null,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.awsnative.s3.outputs.GetAccessPointResult): GetAccessPointResult = GetAccessPointResult(
alias = javaType.alias().map({ args0 -> args0 }).orElse(null),
arn = javaType.arn().map({ args0 -> args0 }).orElse(null),
networkOrigin = javaType.networkOrigin().map({ args0 ->
args0.let({ args0 ->
com.pulumi.awsnative.s3.kotlin.enums.AccessPointNetworkOrigin.Companion.toKotlin(args0)
})
}).orElse(null),
policy = javaType.policy().map({ args0 -> args0 }).orElse(null),
publicAccessBlockConfiguration = javaType.publicAccessBlockConfiguration().map({ args0 ->
args0.let({ args0 ->
com.pulumi.awsnative.s3.kotlin.outputs.AccessPointPublicAccessBlockConfiguration.Companion.toKotlin(args0)
})
}).orElse(null),
)
}
}