
com.pulumi.awsnative.datasync.kotlin.StorageSystem.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.datasync.kotlin
import com.pulumi.awsnative.datasync.kotlin.enums.StorageSystemConnectivityStatus
import com.pulumi.awsnative.datasync.kotlin.enums.StorageSystemSystemType
import com.pulumi.awsnative.datasync.kotlin.outputs.StorageSystemServerConfiguration
import com.pulumi.awsnative.datasync.kotlin.outputs.StorageSystemServerCredentials
import com.pulumi.awsnative.kotlin.outputs.Tag
import com.pulumi.core.Output
import com.pulumi.kotlin.KotlinCustomResource
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.ResourceMapper
import com.pulumi.kotlin.options.CustomResourceOptions
import com.pulumi.kotlin.options.CustomResourceOptionsBuilder
import com.pulumi.resources.Resource
import kotlin.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import com.pulumi.awsnative.datasync.kotlin.enums.StorageSystemConnectivityStatus.Companion.toKotlin as storageSystemConnectivityStatusToKotlin
import com.pulumi.awsnative.datasync.kotlin.enums.StorageSystemSystemType.Companion.toKotlin as storageSystemSystemTypeToKotlin
import com.pulumi.awsnative.datasync.kotlin.outputs.StorageSystemServerConfiguration.Companion.toKotlin as storageSystemServerConfigurationToKotlin
import com.pulumi.awsnative.datasync.kotlin.outputs.StorageSystemServerCredentials.Companion.toKotlin as storageSystemServerCredentialsToKotlin
import com.pulumi.awsnative.kotlin.outputs.Tag.Companion.toKotlin as tagToKotlin
/**
* Builder for [StorageSystem].
*/
@PulumiTagMarker
public class StorageSystemResourceBuilder internal constructor() {
public var name: String? = null
public var args: StorageSystemArgs = StorageSystemArgs()
public var opts: CustomResourceOptions = CustomResourceOptions()
/**
* @param name The _unique_ name of the resulting resource.
*/
public fun name(`value`: String) {
this.name = value
}
/**
* @param block The arguments to use to populate this resource's properties.
*/
public suspend fun args(block: suspend StorageSystemArgsBuilder.() -> Unit) {
val builder = StorageSystemArgsBuilder()
block(builder)
this.args = builder.build()
}
/**
* @param block A bag of options that control this resource's behavior.
*/
public suspend fun opts(block: suspend CustomResourceOptionsBuilder.() -> Unit) {
this.opts = com.pulumi.kotlin.options.CustomResourceOptions.opts(block)
}
internal fun build(): StorageSystem {
val builtJavaResource = com.pulumi.awsnative.datasync.StorageSystem(
this.name,
this.args.toJava(),
this.opts.toJava(),
)
return StorageSystem(builtJavaResource)
}
}
/**
* Resource schema for AWS::DataSync::StorageSystem.
*/
public class StorageSystem internal constructor(
override val javaResource: com.pulumi.awsnative.datasync.StorageSystem,
) : KotlinCustomResource(javaResource, StorageSystemMapper) {
/**
* The ARN of the DataSync agent that connects to and reads from the on-premises storage system's management interface.
*/
public val agentArns: Output>
get() = javaResource.agentArns().applyValue({ args0 -> args0.map({ args0 -> args0 }) })
/**
* The ARN of the Amazon CloudWatch log group used to monitor and log discovery job events.
*/
public val cloudWatchLogGroupArn: Output?
get() = javaResource.cloudWatchLogGroupArn().applyValue({ args0 ->
args0.map({ args0 ->
args0
}).orElse(null)
})
/**
* Indicates whether the DataSync agent can access the on-premises storage system.
*/
public val connectivityStatus: Output
get() = javaResource.connectivityStatus().applyValue({ args0 ->
args0.let({ args0 ->
storageSystemConnectivityStatusToKotlin(args0)
})
})
/**
* A familiar name for the on-premises storage system.
*/
public val name: Output?
get() = javaResource.name().applyValue({ args0 -> args0.map({ args0 -> args0 }).orElse(null) })
/**
* The ARN of a secret stored by AWS Secrets Manager.
*/
public val secretsManagerArn: Output
get() = javaResource.secretsManagerArn().applyValue({ args0 -> args0 })
/**
* Specifies the server name and network port required to connect with the management interface of your on-premises storage system.
*/
public val serverConfiguration: Output
get() = javaResource.serverConfiguration().applyValue({ args0 ->
args0.let({ args0 ->
storageSystemServerConfigurationToKotlin(args0)
})
})
/**
* Specifies the user name and password for accessing your on-premises storage system's management interface.
*/
public val serverCredentials: Output?
get() = javaResource.serverCredentials().applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 -> storageSystemServerCredentialsToKotlin(args0) })
}).orElse(null)
})
/**
* The ARN of the on-premises storage system added to DataSync Discovery.
*/
public val storageSystemArn: Output
get() = javaResource.storageSystemArn().applyValue({ args0 -> args0 })
/**
* The type of on-premises storage system that DataSync Discovery will analyze.
*/
public val systemType: Output
get() = javaResource.systemType().applyValue({ args0 ->
args0.let({ args0 ->
storageSystemSystemTypeToKotlin(args0)
})
})
/**
* An array of key-value pairs to apply to this resource.
*/
public val tags: Output>?
get() = javaResource.tags().applyValue({ args0 ->
args0.map({ args0 ->
args0.map({ args0 ->
args0.let({ args0 -> tagToKotlin(args0) })
})
}).orElse(null)
})
}
public object StorageSystemMapper : ResourceMapper {
override fun supportsMappingOfType(javaResource: Resource): Boolean =
com.pulumi.awsnative.datasync.StorageSystem::class == javaResource::class
override fun map(javaResource: Resource): StorageSystem = StorageSystem(
javaResource as
com.pulumi.awsnative.datasync.StorageSystem,
)
}
/**
* @see [StorageSystem].
* @param name The _unique_ name of the resulting resource.
* @param block Builder for [StorageSystem].
*/
public suspend fun storageSystem(
name: String,
block: suspend StorageSystemResourceBuilder.() -> Unit,
): StorageSystem {
val builder = StorageSystemResourceBuilder()
builder.name(name)
block(builder)
return builder.build()
}
/**
* @see [StorageSystem].
* @param name The _unique_ name of the resulting resource.
*/
public fun storageSystem(name: String): StorageSystem {
val builder = StorageSystemResourceBuilder()
builder.name(name)
return builder.build()
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy