cloudshift.awscdk.dsl.services.vpclattice.CfnServiceDnsEntryPropertyDsl.kt Maven / Gradle / Ivy
@file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION")
package cloudshift.awscdk.dsl.services.vpclattice
import cloudshift.awscdk.common.CdkDslMarker
import kotlin.String
import software.amazon.awscdk.services.vpclattice.CfnService
/**
* Describes the DNS information of a service.
*
* Example:
*
* ```
* // The code below shows an example of how to instantiate this type.
* // The values are placeholders you should change.
* import software.amazon.awscdk.services.vpclattice.*;
* DnsEntryProperty dnsEntryProperty = DnsEntryProperty.builder()
* .domainName("domainName")
* .hostedZoneId("hostedZoneId")
* .build();
* ```
*
* [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-vpclattice-service-dnsentry.html)
*/
@CdkDslMarker
public class CfnServiceDnsEntryPropertyDsl {
private val cdkBuilder: CfnService.DnsEntryProperty.Builder =
CfnService.DnsEntryProperty.builder()
/**
* @param domainName The domain name of the service.
*/
public fun domainName(domainName: String) {
cdkBuilder.domainName(domainName)
}
/**
* @param hostedZoneId The ID of the hosted zone.
*/
public fun hostedZoneId(hostedZoneId: String) {
cdkBuilder.hostedZoneId(hostedZoneId)
}
public fun build(): CfnService.DnsEntryProperty = cdkBuilder.build()
}