
com.pulumi.awsnative.dms.kotlin.InstanceProfile.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.dms.kotlin
import com.pulumi.awsnative.dms.kotlin.enums.InstanceProfileNetworkType
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.dms.kotlin.enums.InstanceProfileNetworkType.Companion.toKotlin as instanceProfileNetworkTypeToKotlin
import com.pulumi.awsnative.kotlin.outputs.Tag.Companion.toKotlin as tagToKotlin
/**
* Builder for [InstanceProfile].
*/
@PulumiTagMarker
public class InstanceProfileResourceBuilder internal constructor() {
public var name: String? = null
public var args: InstanceProfileArgs = InstanceProfileArgs()
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 InstanceProfileArgsBuilder.() -> Unit) {
val builder = InstanceProfileArgsBuilder()
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(): InstanceProfile {
val builtJavaResource = com.pulumi.awsnative.dms.InstanceProfile(
this.name,
this.args.toJava(),
this.opts.toJava(),
)
return InstanceProfile(builtJavaResource)
}
}
/**
* Resource schema for AWS::DMS::InstanceProfile.
*/
public class InstanceProfile internal constructor(
override val javaResource: com.pulumi.awsnative.dms.InstanceProfile,
) : KotlinCustomResource(javaResource, InstanceProfileMapper) {
/**
* The property describes an availability zone of the instance profile.
*/
public val availabilityZone: Output?
get() = javaResource.availabilityZone().applyValue({ args0 ->
args0.map({ args0 ->
args0
}).orElse(null)
})
/**
* The optional description of the instance profile.
*/
public val description: Output?
get() = javaResource.description().applyValue({ args0 ->
args0.map({ args0 ->
args0
}).orElse(null)
})
/**
* The property describes an ARN of the instance profile.
*/
public val instanceProfileArn: Output
get() = javaResource.instanceProfileArn().applyValue({ args0 -> args0 })
/**
* The property describes a creating time of the instance profile.
*/
public val instanceProfileCreationTime: Output
get() = javaResource.instanceProfileCreationTime().applyValue({ args0 -> args0 })
/**
* The property describes an identifier for the instance profile. It is used for describing/deleting/modifying. Can be name/arn
*/
public val instanceProfileIdentifier: Output?
get() = javaResource.instanceProfileIdentifier().applyValue({ args0 ->
args0.map({ args0 ->
args0
}).orElse(null)
})
/**
* The property describes a name for the instance profile.
*/
public val instanceProfileName: Output?
get() = javaResource.instanceProfileName().applyValue({ args0 ->
args0.map({ args0 ->
args0
}).orElse(null)
})
/**
* The property describes kms key arn for the instance profile.
*/
public val kmsKeyArn: Output?
get() = javaResource.kmsKeyArn().applyValue({ args0 -> args0.map({ args0 -> args0 }).orElse(null) })
/**
* The property describes a network type for the instance profile.
*/
public val networkType: Output?
get() = javaResource.networkType().applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 ->
instanceProfileNetworkTypeToKotlin(args0)
})
}).orElse(null)
})
/**
* The property describes the publicly accessible of the instance profile
*/
public val publiclyAccessible: Output?
get() = javaResource.publiclyAccessible().applyValue({ args0 ->
args0.map({ args0 ->
args0
}).orElse(null)
})
/**
* The property describes a subnet group identifier for the instance profile.
*/
public val subnetGroupIdentifier: Output?
get() = javaResource.subnetGroupIdentifier().applyValue({ args0 ->
args0.map({ args0 ->
args0
}).orElse(null)
})
/**
* 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)
})
/**
* The property describes vps security groups for the instance profile.
*/
public val vpcSecurityGroups: Output>?
get() = javaResource.vpcSecurityGroups().applyValue({ args0 ->
args0.map({ args0 ->
args0.map({ args0 -> args0 })
}).orElse(null)
})
}
public object InstanceProfileMapper : ResourceMapper {
override fun supportsMappingOfType(javaResource: Resource): Boolean =
com.pulumi.awsnative.dms.InstanceProfile::class == javaResource::class
override fun map(javaResource: Resource): InstanceProfile = InstanceProfile(
javaResource as
com.pulumi.awsnative.dms.InstanceProfile,
)
}
/**
* @see [InstanceProfile].
* @param name The _unique_ name of the resulting resource.
* @param block Builder for [InstanceProfile].
*/
public suspend fun instanceProfile(
name: String,
block: suspend InstanceProfileResourceBuilder.() -> Unit,
): InstanceProfile {
val builder = InstanceProfileResourceBuilder()
builder.name(name)
block(builder)
return builder.build()
}
/**
* @see [InstanceProfile].
* @param name The _unique_ name of the resulting resource.
*/
public fun instanceProfile(name: String): InstanceProfile {
val builder = InstanceProfileResourceBuilder()
builder.name(name)
return builder.build()
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy