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

com.pulumi.awsnative.ec2.kotlin.outputs.GetVpcEndpointResult.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: 1.24.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.awsnative.ec2.kotlin.outputs

import kotlin.Any
import kotlin.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List

/**
 *
 * @property creationTimestamp The date and time the VPC endpoint was created. For example: `Fri Sep 28 23:34:36 UTC 2018.`
 * @property dnsEntries (Interface endpoints) The DNS entries for the endpoint. Each entry is a combination of the hosted zone ID and the DNS name. The entries are ordered as follows: regional public DNS, zonal public DNS, private DNS, and wildcard DNS. This order is not enforced for AWS Marketplace services.
 * The following is an example. In the first entry, the hosted zone ID is Z1HUB23UULQXV and the DNS name is vpce-01abc23456de78f9g-12abccd3.ec2.us-east-1.vpce.amazonaws.com.
 * ["Z1HUB23UULQXV:vpce-01abc23456de78f9g-12abccd3.ec2.us-east-1.vpce.amazonaws.com", "Z1HUB23UULQXV:vpce-01abc23456de78f9g-12abccd3-us-east-1a.ec2.us-east-1.vpce.amazonaws.com", "Z1C12344VYDITB0:ec2.us-east-1.amazonaws.com"]
 * If you update the `PrivateDnsEnabled` or `SubnetIds` properties, the DNS entries in the list will change.
 * @property id The ID of the VPC endpoint.
 * @property networkInterfaceIds (Interface endpoints) The network interface IDs. If you update the `PrivateDnsEnabled` or `SubnetIds` properties, the items in this list might change.
 * @property policyDocument An endpoint policy, which controls access to the service from the VPC. The default endpoint policy allows full access to the service. Endpoint policies are supported only for gateway and interface endpoints.
 *  For CloudFormation templates in YAML, you can provide the policy in JSON or YAML format. CFNlong converts YAML policies to JSON format before calling the API to create or modify the VPC endpoint.
 * Search the [CloudFormation User Guide](https://docs.aws.amazon.com/cloudformation/) for `AWS::EC2::VPCEndpoint` for more information about the expected schema for this property.
 * @property privateDnsEnabled Indicate whether to associate a private hosted zone with the specified VPC. The private hosted zone contains a record set for the default public DNS name for the service for the Region (for example, ``kinesis.us-east-1.amazonaws.com``), which resolves to the private IP addresses of the endpoint network interfaces in the VPC. This enables you to make requests to the default public DNS name for the service instead of the public DNS names that are automatically generated by the VPC endpoint service.
 *  To use a private hosted zone, you must set the following VPC attributes to ``true``: ``enableDnsHostnames`` and ``enableDnsSupport``.
 *  This property is supported only for interface endpoints.
 *  Default: ``false``
 * @property routeTableIds The IDs of the route tables. Routing is supported only for gateway endpoints.
 * @property securityGroupIds The IDs of the security groups to associate with the endpoint network interfaces. If this parameter is not specified, we use the default security group for the VPC. Security groups are supported only for interface endpoints.
 * @property subnetIds The IDs of the subnets in which to create endpoint network interfaces. You must specify this property for an interface endpoint or a Gateway Load Balancer endpoint. You can't specify this property for a gateway endpoint. For a Gateway Load Balancer endpoint, you can specify only one subnet.
 */
public data class GetVpcEndpointResult(
    public val creationTimestamp: String? = null,
    public val dnsEntries: List? = null,
    public val id: String? = null,
    public val networkInterfaceIds: List? = null,
    public val policyDocument: Any? = null,
    public val privateDnsEnabled: Boolean? = null,
    public val routeTableIds: List? = null,
    public val securityGroupIds: List? = null,
    public val subnetIds: List? = null,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.awsnative.ec2.outputs.GetVpcEndpointResult): GetVpcEndpointResult = GetVpcEndpointResult(
            creationTimestamp = javaType.creationTimestamp().map({ args0 -> args0 }).orElse(null),
            dnsEntries = javaType.dnsEntries().map({ args0 -> args0 }),
            id = javaType.id().map({ args0 -> args0 }).orElse(null),
            networkInterfaceIds = javaType.networkInterfaceIds().map({ args0 -> args0 }),
            policyDocument = javaType.policyDocument().map({ args0 -> args0 }).orElse(null),
            privateDnsEnabled = javaType.privateDnsEnabled().map({ args0 -> args0 }).orElse(null),
            routeTableIds = javaType.routeTableIds().map({ args0 -> args0 }),
            securityGroupIds = javaType.securityGroupIds().map({ args0 -> args0 }),
            subnetIds = javaType.subnetIds().map({ args0 -> args0 }),
        )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy