com.pulumi.aws.transfer.kotlin.Certificate.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-aws-kotlin Show documentation
Show all versions of pulumi-aws-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.aws.transfer.kotlin
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.Deprecated
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.Map
/**
* Builder for [Certificate].
*/
@PulumiTagMarker
public class CertificateResourceBuilder internal constructor() {
public var name: String? = null
public var args: CertificateArgs = CertificateArgs()
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 CertificateArgsBuilder.() -> Unit) {
val builder = CertificateArgsBuilder()
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(): Certificate {
val builtJavaResource = com.pulumi.aws.transfer.Certificate(
this.name,
this.args.toJava(),
this.opts.toJava(),
)
return Certificate(builtJavaResource)
}
}
/**
* Provides a AWS Transfer AS2 Certificate resource.
* ## Example Usage
* ## Import
* Using `pulumi import`, import Transfer AS2 Certificate using the `certificate_id`. For example:
* ```sh
* $ pulumi import aws:transfer/certificate:Certificate example c-4221a88afd5f4362a
* ```
*/
public class Certificate internal constructor(
override val javaResource: com.pulumi.aws.transfer.Certificate,
) : KotlinCustomResource(javaResource, CertificateMapper) {
/**
* An date when the certificate becomes active
*/
public val activeDate: Output
get() = javaResource.activeDate().applyValue({ args0 -> args0 })
/**
* The ARN of the certificate
*/
public val arn: Output
get() = javaResource.arn().applyValue({ args0 -> args0 })
/**
* The valid certificate file required for the transfer.
*/
public val certificate: Output
get() = javaResource.certificate().applyValue({ args0 -> args0 })
/**
* The optional list of certificate that make up the chain for the certificate that is being imported.
*/
public val certificateChain: Output?
get() = javaResource.certificateChain().applyValue({ args0 ->
args0.map({ args0 ->
args0
}).orElse(null)
})
/**
* The unique identifier for the AS2 certificate
*/
public val certificateId: Output
get() = javaResource.certificateId().applyValue({ args0 -> args0 })
/**
* A short description that helps identify the certificate.
*/
public val description: Output?
get() = javaResource.description().applyValue({ args0 ->
args0.map({ args0 ->
args0
}).orElse(null)
})
/**
* An date when the certificate becomes inactive
*/
public val inactiveDate: Output
get() = javaResource.inactiveDate().applyValue({ args0 -> args0 })
/**
* The private key associated with the certificate being imported.
*/
public val privateKey: Output?
get() = javaResource.privateKey().applyValue({ args0 ->
args0.map({ args0 ->
args0
}).orElse(null)
})
/**
* A map of tags to assign to the resource. If configured with a provider `default_tags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
*/
public val tags: Output
© 2015 - 2024 Weber Informatics LLC | Privacy Policy