io.cloudshiftdev.awscdk.services.fsx.FileSystemBase.kt Maven / Gradle / Ivy
The newest version!
@file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION")
package io.cloudshiftdev.awscdk.services.fsx
import io.cloudshiftdev.awscdk.Resource
import io.cloudshiftdev.awscdk.common.CdkObject
import io.cloudshiftdev.awscdk.common.CdkObjectWrappers
import io.cloudshiftdev.awscdk.services.ec2.Connections
import kotlin.String
/**
* A new or imported FSx file system.
*/
public abstract class FileSystemBase(
cdkObject: software.amazon.awscdk.services.fsx.FileSystemBase,
) : Resource(cdkObject),
IFileSystem {
/**
* The security groups/rules used to allow network connections to the file system.
*/
public override fun connections(): Connections =
unwrap(this).getConnections().let(Connections::wrap)
/**
* The DNS name assigned to this file system.
*/
public open fun dnsName(): String = unwrap(this).getDnsName()
/**
* The ID of the file system, assigned by Amazon FSx.
*/
public override fun fileSystemId(): String = unwrap(this).getFileSystemId()
private class Wrapper(
cdkObject: software.amazon.awscdk.services.fsx.FileSystemBase,
) : FileSystemBase(cdkObject)
public companion object {
internal fun wrap(cdkObject: software.amazon.awscdk.services.fsx.FileSystemBase): FileSystemBase
= CdkObjectWrappers.wrap(cdkObject) as? FileSystemBase ?: Wrapper(cdkObject)
internal fun unwrap(wrapped: FileSystemBase): software.amazon.awscdk.services.fsx.FileSystemBase
= (wrapped as CdkObject).cdkObject as software.amazon.awscdk.services.fsx.FileSystemBase
}
}