io.cloudshiftdev.awscdk.services.deadline.CfnLicenseEndpoint.kt Maven / Gradle / Ivy
The newest version!
@file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION")
package io.cloudshiftdev.awscdk.services.deadline
import io.cloudshiftdev.awscdk.CfnResource
import io.cloudshiftdev.awscdk.CfnTag
import io.cloudshiftdev.awscdk.IInspectable
import io.cloudshiftdev.awscdk.ITaggableV2
import io.cloudshiftdev.awscdk.TagManager
import io.cloudshiftdev.awscdk.TreeInspector
import io.cloudshiftdev.awscdk.common.CdkDslMarker
import kotlin.String
import kotlin.Unit
import kotlin.collections.List
import io.cloudshiftdev.constructs.Construct as CloudshiftdevConstructsConstruct
import software.constructs.Construct as SoftwareConstructsConstruct
/**
* Creates a license endpoint to integrate your various licensed software used for rendering on
* Deadline Cloud.
*
* Example:
*
* ```
* // The code below shows an example of how to instantiate this type.
* // The values are placeholders you should change.
* import io.cloudshiftdev.awscdk.services.deadline.*;
* CfnLicenseEndpoint cfnLicenseEndpoint = CfnLicenseEndpoint.Builder.create(this,
* "MyCfnLicenseEndpoint")
* .securityGroupIds(List.of("securityGroupIds"))
* .subnetIds(List.of("subnetIds"))
* .vpcId("vpcId")
* // the properties below are optional
* .tags(List.of(CfnTag.builder()
* .key("key")
* .value("value")
* .build()))
* .build();
* ```
*
* [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-deadline-licenseendpoint.html)
*/
public open class CfnLicenseEndpoint(
cdkObject: software.amazon.awscdk.services.deadline.CfnLicenseEndpoint,
) : CfnResource(cdkObject),
IInspectable,
ITaggableV2 {
public constructor(
scope: CloudshiftdevConstructsConstruct,
id: String,
props: CfnLicenseEndpointProps,
) :
this(software.amazon.awscdk.services.deadline.CfnLicenseEndpoint(scope.let(CloudshiftdevConstructsConstruct.Companion::unwrap),
id, props.let(CfnLicenseEndpointProps.Companion::unwrap))
)
public constructor(
scope: CloudshiftdevConstructsConstruct,
id: String,
props: CfnLicenseEndpointProps.Builder.() -> Unit,
) : this(scope, id, CfnLicenseEndpointProps(props)
)
/**
* The Amazon Resource Name (ARN) of the license endpoint.
*/
public open fun attrArn(): String = unwrap(this).getAttrArn()
/**
* The DNS name of the license server endpoint.
*/
public open fun attrDnsName(): String = unwrap(this).getAttrDnsName()
/**
* The license endpoint ID.
*/
public open fun attrLicenseEndpointId(): String = unwrap(this).getAttrLicenseEndpointId()
/**
* The status of the license endpoint.
*/
public open fun attrStatus(): String = unwrap(this).getAttrStatus()
/**
* The status message of the license endpoint.
*/
public open fun attrStatusMessage(): String = unwrap(this).getAttrStatusMessage()
/**
* Tag Manager which manages the tags for this resource.
*/
public override fun cdkTagManager(): TagManager =
unwrap(this).getCdkTagManager().let(TagManager::wrap)
/**
* Examines the CloudFormation resource and discloses attributes.
*
* @param inspector tree inspector to collect and process attributes.
*/
public override fun inspect(inspector: TreeInspector) {
unwrap(this).inspect(inspector.let(TreeInspector.Companion::unwrap))
}
/**
* The identifier of the Amazon EC2 security group that controls access to the license endpoint.
*/
public open fun securityGroupIds(): List = unwrap(this).getSecurityGroupIds()
/**
* The identifier of the Amazon EC2 security group that controls access to the license endpoint.
*/
public open fun securityGroupIds(`value`: List) {
unwrap(this).setSecurityGroupIds(`value`)
}
/**
* The identifier of the Amazon EC2 security group that controls access to the license endpoint.
*/
public open fun securityGroupIds(vararg `value`: String): Unit =
securityGroupIds(`value`.toList())
/**
* Identifies the VPC subnets that can connect to a license endpoint.
*/
public open fun subnetIds(): List = unwrap(this).getSubnetIds()
/**
* Identifies the VPC subnets that can connect to a license endpoint.
*/
public open fun subnetIds(`value`: List) {
unwrap(this).setSubnetIds(`value`)
}
/**
* Identifies the VPC subnets that can connect to a license endpoint.
*/
public open fun subnetIds(vararg `value`: String): Unit = subnetIds(`value`.toList())
/**
* The tags to add to your license endpoint.
*/
public open fun tags(): List = unwrap(this).getTags()?.map(CfnTag::wrap) ?: emptyList()
/**
* The tags to add to your license endpoint.
*/
public open fun tags(`value`: List) {
unwrap(this).setTags(`value`.map(CfnTag.Companion::unwrap))
}
/**
* The tags to add to your license endpoint.
*/
public open fun tags(vararg `value`: CfnTag): Unit = tags(`value`.toList())
/**
* The VCP(virtual private cloud) ID associated with the license endpoint.
*/
public open fun vpcId(): String = unwrap(this).getVpcId()
/**
* The VCP(virtual private cloud) ID associated with the license endpoint.
*/
public open fun vpcId(`value`: String) {
unwrap(this).setVpcId(`value`)
}
/**
* A fluent builder for [io.cloudshiftdev.awscdk.services.deadline.CfnLicenseEndpoint].
*/
@CdkDslMarker
public interface Builder {
/**
* The identifier of the Amazon EC2 security group that controls access to the license endpoint.
*
* [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-deadline-licenseendpoint.html#cfn-deadline-licenseendpoint-securitygroupids)
* @param securityGroupIds The identifier of the Amazon EC2 security group that controls access
* to the license endpoint.
*/
public fun securityGroupIds(securityGroupIds: List)
/**
* The identifier of the Amazon EC2 security group that controls access to the license endpoint.
*
* [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-deadline-licenseendpoint.html#cfn-deadline-licenseendpoint-securitygroupids)
* @param securityGroupIds The identifier of the Amazon EC2 security group that controls access
* to the license endpoint.
*/
public fun securityGroupIds(vararg securityGroupIds: String)
/**
* Identifies the VPC subnets that can connect to a license endpoint.
*
* [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-deadline-licenseendpoint.html#cfn-deadline-licenseendpoint-subnetids)
* @param subnetIds Identifies the VPC subnets that can connect to a license endpoint.
*/
public fun subnetIds(subnetIds: List)
/**
* Identifies the VPC subnets that can connect to a license endpoint.
*
* [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-deadline-licenseendpoint.html#cfn-deadline-licenseendpoint-subnetids)
* @param subnetIds Identifies the VPC subnets that can connect to a license endpoint.
*/
public fun subnetIds(vararg subnetIds: String)
/**
* The tags to add to your license endpoint.
*
* Each tag consists of a tag key and a tag value. Tag keys and values are both required, but
* tag values can be empty strings.
*
* [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-deadline-licenseendpoint.html#cfn-deadline-licenseendpoint-tags)
* @param tags The tags to add to your license endpoint.
*/
public fun tags(tags: List)
/**
* The tags to add to your license endpoint.
*
* Each tag consists of a tag key and a tag value. Tag keys and values are both required, but
* tag values can be empty strings.
*
* [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-deadline-licenseendpoint.html#cfn-deadline-licenseendpoint-tags)
* @param tags The tags to add to your license endpoint.
*/
public fun tags(vararg tags: CfnTag)
/**
* The VCP(virtual private cloud) ID associated with the license endpoint.
*
* [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-deadline-licenseendpoint.html#cfn-deadline-licenseendpoint-vpcid)
* @param vpcId The VCP(virtual private cloud) ID associated with the license endpoint.
*/
public fun vpcId(vpcId: String)
}
private class BuilderImpl(
scope: SoftwareConstructsConstruct,
id: String,
) : Builder {
private val cdkBuilder: software.amazon.awscdk.services.deadline.CfnLicenseEndpoint.Builder =
software.amazon.awscdk.services.deadline.CfnLicenseEndpoint.Builder.create(scope, id)
/**
* The identifier of the Amazon EC2 security group that controls access to the license endpoint.
*
* [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-deadline-licenseendpoint.html#cfn-deadline-licenseendpoint-securitygroupids)
* @param securityGroupIds The identifier of the Amazon EC2 security group that controls access
* to the license endpoint.
*/
override fun securityGroupIds(securityGroupIds: List) {
cdkBuilder.securityGroupIds(securityGroupIds)
}
/**
* The identifier of the Amazon EC2 security group that controls access to the license endpoint.
*
* [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-deadline-licenseendpoint.html#cfn-deadline-licenseendpoint-securitygroupids)
* @param securityGroupIds The identifier of the Amazon EC2 security group that controls access
* to the license endpoint.
*/
override fun securityGroupIds(vararg securityGroupIds: String): Unit =
securityGroupIds(securityGroupIds.toList())
/**
* Identifies the VPC subnets that can connect to a license endpoint.
*
* [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-deadline-licenseendpoint.html#cfn-deadline-licenseendpoint-subnetids)
* @param subnetIds Identifies the VPC subnets that can connect to a license endpoint.
*/
override fun subnetIds(subnetIds: List) {
cdkBuilder.subnetIds(subnetIds)
}
/**
* Identifies the VPC subnets that can connect to a license endpoint.
*
* [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-deadline-licenseendpoint.html#cfn-deadline-licenseendpoint-subnetids)
* @param subnetIds Identifies the VPC subnets that can connect to a license endpoint.
*/
override fun subnetIds(vararg subnetIds: String): Unit = subnetIds(subnetIds.toList())
/**
* The tags to add to your license endpoint.
*
* Each tag consists of a tag key and a tag value. Tag keys and values are both required, but
* tag values can be empty strings.
*
* [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-deadline-licenseendpoint.html#cfn-deadline-licenseendpoint-tags)
* @param tags The tags to add to your license endpoint.
*/
override fun tags(tags: List) {
cdkBuilder.tags(tags.map(CfnTag.Companion::unwrap))
}
/**
* The tags to add to your license endpoint.
*
* Each tag consists of a tag key and a tag value. Tag keys and values are both required, but
* tag values can be empty strings.
*
* [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-deadline-licenseendpoint.html#cfn-deadline-licenseendpoint-tags)
* @param tags The tags to add to your license endpoint.
*/
override fun tags(vararg tags: CfnTag): Unit = tags(tags.toList())
/**
* The VCP(virtual private cloud) ID associated with the license endpoint.
*
* [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-deadline-licenseendpoint.html#cfn-deadline-licenseendpoint-vpcid)
* @param vpcId The VCP(virtual private cloud) ID associated with the license endpoint.
*/
override fun vpcId(vpcId: String) {
cdkBuilder.vpcId(vpcId)
}
public fun build(): software.amazon.awscdk.services.deadline.CfnLicenseEndpoint =
cdkBuilder.build()
}
public companion object {
public val CFN_RESOURCE_TYPE_NAME: String =
software.amazon.awscdk.services.deadline.CfnLicenseEndpoint.CFN_RESOURCE_TYPE_NAME
public operator fun invoke(
scope: CloudshiftdevConstructsConstruct,
id: String,
block: Builder.() -> Unit = {},
): CfnLicenseEndpoint {
val builderImpl = BuilderImpl(CloudshiftdevConstructsConstruct.unwrap(scope), id)
return CfnLicenseEndpoint(builderImpl.apply(block).build())
}
internal fun wrap(cdkObject: software.amazon.awscdk.services.deadline.CfnLicenseEndpoint):
CfnLicenseEndpoint = CfnLicenseEndpoint(cdkObject)
internal fun unwrap(wrapped: CfnLicenseEndpoint):
software.amazon.awscdk.services.deadline.CfnLicenseEndpoint = wrapped.cdkObject as
software.amazon.awscdk.services.deadline.CfnLicenseEndpoint
}
}