
com.pulumi.awsnative.ec2.kotlin.VerifiedAccessTrustProvider.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.ec2.kotlin
import com.pulumi.awsnative.ec2.kotlin.outputs.SseSpecificationProperties
import com.pulumi.awsnative.ec2.kotlin.outputs.VerifiedAccessTrustProviderDeviceOptions
import com.pulumi.awsnative.ec2.kotlin.outputs.VerifiedAccessTrustProviderOidcOptions
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.ec2.kotlin.outputs.SseSpecificationProperties.Companion.toKotlin as sseSpecificationPropertiesToKotlin
import com.pulumi.awsnative.ec2.kotlin.outputs.VerifiedAccessTrustProviderDeviceOptions.Companion.toKotlin as verifiedAccessTrustProviderDeviceOptionsToKotlin
import com.pulumi.awsnative.ec2.kotlin.outputs.VerifiedAccessTrustProviderOidcOptions.Companion.toKotlin as verifiedAccessTrustProviderOidcOptionsToKotlin
import com.pulumi.awsnative.kotlin.outputs.Tag.Companion.toKotlin as tagToKotlin
/**
* Builder for [VerifiedAccessTrustProvider].
*/
@PulumiTagMarker
public class VerifiedAccessTrustProviderResourceBuilder internal constructor() {
public var name: String? = null
public var args: VerifiedAccessTrustProviderArgs = VerifiedAccessTrustProviderArgs()
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 VerifiedAccessTrustProviderArgsBuilder.() -> Unit) {
val builder = VerifiedAccessTrustProviderArgsBuilder()
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(): VerifiedAccessTrustProvider {
val builtJavaResource =
com.pulumi.awsnative.ec2.VerifiedAccessTrustProvider(
this.name,
this.args.toJava(),
this.opts.toJava(),
)
return VerifiedAccessTrustProvider(builtJavaResource)
}
}
/**
* The AWS::EC2::VerifiedAccessTrustProvider type describes a verified access trust provider
*/
public class VerifiedAccessTrustProvider internal constructor(
override val javaResource: com.pulumi.awsnative.ec2.VerifiedAccessTrustProvider,
) : KotlinCustomResource(javaResource, VerifiedAccessTrustProviderMapper) {
/**
* The creation time.
*/
public val creationTime: Output
get() = javaResource.creationTime().applyValue({ args0 -> args0 })
/**
* A description for the Amazon Web Services Verified Access trust provider.
*/
public val description: Output?
get() = javaResource.description().applyValue({ args0 ->
args0.map({ args0 ->
args0
}).orElse(null)
})
/**
* The options for device-identity trust provider.
*/
public val deviceOptions: Output?
get() = javaResource.deviceOptions().applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 ->
verifiedAccessTrustProviderDeviceOptionsToKotlin(args0)
})
}).orElse(null)
})
/**
* The type of device-based trust provider. Possible values: jamf|crowdstrike
*/
public val deviceTrustProviderType: Output?
get() = javaResource.deviceTrustProviderType().applyValue({ args0 ->
args0.map({ args0 ->
args0
}).orElse(null)
})
/**
* The last updated time.
*/
public val lastUpdatedTime: Output
get() = javaResource.lastUpdatedTime().applyValue({ args0 -> args0 })
/**
* The options for an OpenID Connect-compatible user-identity trust provider.
*/
public val oidcOptions: Output?
get() = javaResource.oidcOptions().applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 ->
verifiedAccessTrustProviderOidcOptionsToKotlin(args0)
})
}).orElse(null)
})
/**
* The identifier to be used when working with policy rules.
*/
public val policyReferenceName: Output
get() = javaResource.policyReferenceName().applyValue({ args0 -> args0 })
/**
* The configuration options for customer provided KMS encryption.
*/
public val sseSpecification: Output?
get() = javaResource.sseSpecification().applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 -> sseSpecificationPropertiesToKotlin(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)
})
/**
* Type of trust provider. Possible values: user|device
*/
public val trustProviderType: Output
get() = javaResource.trustProviderType().applyValue({ args0 -> args0 })
/**
* The type of device-based trust provider. Possible values: oidc|iam-identity-center
*/
public val userTrustProviderType: Output?
get() = javaResource.userTrustProviderType().applyValue({ args0 ->
args0.map({ args0 ->
args0
}).orElse(null)
})
/**
* The ID of the Amazon Web Services Verified Access trust provider.
*/
public val verifiedAccessTrustProviderId: Output
get() = javaResource.verifiedAccessTrustProviderId().applyValue({ args0 -> args0 })
}
public object VerifiedAccessTrustProviderMapper : ResourceMapper {
override fun supportsMappingOfType(javaResource: Resource): Boolean =
com.pulumi.awsnative.ec2.VerifiedAccessTrustProvider::class == javaResource::class
override fun map(javaResource: Resource): VerifiedAccessTrustProvider =
VerifiedAccessTrustProvider(
javaResource as
com.pulumi.awsnative.ec2.VerifiedAccessTrustProvider,
)
}
/**
* @see [VerifiedAccessTrustProvider].
* @param name The _unique_ name of the resulting resource.
* @param block Builder for [VerifiedAccessTrustProvider].
*/
public suspend fun verifiedAccessTrustProvider(
name: String,
block: suspend VerifiedAccessTrustProviderResourceBuilder.() -> Unit,
): VerifiedAccessTrustProvider {
val builder = VerifiedAccessTrustProviderResourceBuilder()
builder.name(name)
block(builder)
return builder.build()
}
/**
* @see [VerifiedAccessTrustProvider].
* @param name The _unique_ name of the resulting resource.
*/
public fun verifiedAccessTrustProvider(name: String): VerifiedAccessTrustProvider {
val builder = VerifiedAccessTrustProviderResourceBuilder()
builder.name(name)
return builder.build()
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy