![JAR search and dependency download from the Maven repository](/logo.png)
io.cloudshiftdev.awscdk.services.workspacesweb.CfnTrustStore.kt Maven / Gradle / Ivy
@file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION")
package io.cloudshiftdev.awscdk.services.workspacesweb
import io.cloudshiftdev.awscdk.CfnResource
import io.cloudshiftdev.awscdk.CfnTag
import io.cloudshiftdev.awscdk.IInspectable
import io.cloudshiftdev.awscdk.ITaggableV2
import io.cloudshiftdev.awscdk.TagManager
import io.cloudshiftdev.awscdk.TreeInspector
import io.cloudshiftdev.awscdk.common.CdkDslMarker
import kotlin.String
import kotlin.Unit
import kotlin.collections.List
import io.cloudshiftdev.constructs.Construct as CloudshiftdevConstructsConstruct
import software.constructs.Construct as SoftwareConstructsConstruct
/**
* This resource specifies a trust store that can be associated with a web portal.
*
* A trust store contains certificate authority (CA) certificates. Once associated with a web
* portal, the browser in a streaming session will recognize certificates that have been issued using
* any of the CAs in the trust store. If your organization has internal websites that use certificates
* issued by private CAs, you should add the private CA certificate to the trust store.
*
* Example:
*
* ```
* // The code below shows an example of how to instantiate this type.
* // The values are placeholders you should change.
* import io.cloudshiftdev.awscdk.services.workspacesweb.*;
* CfnTrustStore cfnTrustStore = CfnTrustStore.Builder.create(this, "MyCfnTrustStore")
* .certificateList(List.of("certificateList"))
* // the properties below are optional
* .tags(List.of(CfnTag.builder()
* .key("key")
* .value("value")
* .build()))
* .build();
* ```
*
* [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-workspacesweb-truststore.html)
*/
public open class CfnTrustStore(
cdkObject: software.amazon.awscdk.services.workspacesweb.CfnTrustStore,
) : CfnResource(cdkObject),
IInspectable,
ITaggableV2 {
public constructor(
scope: CloudshiftdevConstructsConstruct,
id: String,
props: CfnTrustStoreProps,
) :
this(software.amazon.awscdk.services.workspacesweb.CfnTrustStore(scope.let(CloudshiftdevConstructsConstruct.Companion::unwrap),
id, props.let(CfnTrustStoreProps.Companion::unwrap))
)
public constructor(
scope: CloudshiftdevConstructsConstruct,
id: String,
props: CfnTrustStoreProps.Builder.() -> Unit,
) : this(scope, id, CfnTrustStoreProps(props)
)
/**
* A list of web portal ARNs that this trust store is associated with.
*/
public open fun attrAssociatedPortalArns(): List =
unwrap(this).getAttrAssociatedPortalArns()
/**
* The ARN of the trust store.
*/
public open fun attrTrustStoreArn(): String = unwrap(this).getAttrTrustStoreArn()
/**
* Tag Manager which manages the tags for this resource.
*/
public override fun cdkTagManager(): TagManager =
unwrap(this).getCdkTagManager().let(TagManager::wrap)
/**
* A list of CA certificates to be added to the trust store.
*/
public open fun certificateList(): List = unwrap(this).getCertificateList()
/**
* A list of CA certificates to be added to the trust store.
*/
public open fun certificateList(`value`: List) {
unwrap(this).setCertificateList(`value`)
}
/**
* A list of CA certificates to be added to the trust store.
*/
public open fun certificateList(vararg `value`: String): Unit = certificateList(`value`.toList())
/**
* Examines the CloudFormation resource and discloses attributes.
*
* @param inspector tree inspector to collect and process attributes.
*/
public override fun inspect(inspector: TreeInspector) {
unwrap(this).inspect(inspector.let(TreeInspector.Companion::unwrap))
}
/**
* The tags to add to the trust store.
*/
public open fun tags(): List = unwrap(this).getTags()?.map(CfnTag::wrap) ?: emptyList()
/**
* The tags to add to the trust store.
*/
public open fun tags(`value`: List) {
unwrap(this).setTags(`value`.map(CfnTag.Companion::unwrap))
}
/**
* The tags to add to the trust store.
*/
public open fun tags(vararg `value`: CfnTag): Unit = tags(`value`.toList())
/**
* A fluent builder for [io.cloudshiftdev.awscdk.services.workspacesweb.CfnTrustStore].
*/
@CdkDslMarker
public interface Builder {
/**
* A list of CA certificates to be added to the trust store.
*
* [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-workspacesweb-truststore.html#cfn-workspacesweb-truststore-certificatelist)
* @param certificateList A list of CA certificates to be added to the trust store.
*/
public fun certificateList(certificateList: List)
/**
* A list of CA certificates to be added to the trust store.
*
* [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-workspacesweb-truststore.html#cfn-workspacesweb-truststore-certificatelist)
* @param certificateList A list of CA certificates to be added to the trust store.
*/
public fun certificateList(vararg certificateList: String)
/**
* The tags to add to the trust store.
*
* A tag is a key-value pair.
*
* [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-workspacesweb-truststore.html#cfn-workspacesweb-truststore-tags)
* @param tags The tags to add to the trust store.
*/
public fun tags(tags: List)
/**
* The tags to add to the trust store.
*
* A tag is a key-value pair.
*
* [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-workspacesweb-truststore.html#cfn-workspacesweb-truststore-tags)
* @param tags The tags to add to the trust store.
*/
public fun tags(vararg tags: CfnTag)
}
private class BuilderImpl(
scope: SoftwareConstructsConstruct,
id: String,
) : Builder {
private val cdkBuilder: software.amazon.awscdk.services.workspacesweb.CfnTrustStore.Builder =
software.amazon.awscdk.services.workspacesweb.CfnTrustStore.Builder.create(scope, id)
/**
* A list of CA certificates to be added to the trust store.
*
* [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-workspacesweb-truststore.html#cfn-workspacesweb-truststore-certificatelist)
* @param certificateList A list of CA certificates to be added to the trust store.
*/
override fun certificateList(certificateList: List) {
cdkBuilder.certificateList(certificateList)
}
/**
* A list of CA certificates to be added to the trust store.
*
* [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-workspacesweb-truststore.html#cfn-workspacesweb-truststore-certificatelist)
* @param certificateList A list of CA certificates to be added to the trust store.
*/
override fun certificateList(vararg certificateList: String): Unit =
certificateList(certificateList.toList())
/**
* The tags to add to the trust store.
*
* A tag is a key-value pair.
*
* [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-workspacesweb-truststore.html#cfn-workspacesweb-truststore-tags)
* @param tags The tags to add to the trust store.
*/
override fun tags(tags: List) {
cdkBuilder.tags(tags.map(CfnTag.Companion::unwrap))
}
/**
* The tags to add to the trust store.
*
* A tag is a key-value pair.
*
* [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-workspacesweb-truststore.html#cfn-workspacesweb-truststore-tags)
* @param tags The tags to add to the trust store.
*/
override fun tags(vararg tags: CfnTag): Unit = tags(tags.toList())
public fun build(): software.amazon.awscdk.services.workspacesweb.CfnTrustStore =
cdkBuilder.build()
}
public companion object {
public val CFN_RESOURCE_TYPE_NAME: String =
software.amazon.awscdk.services.workspacesweb.CfnTrustStore.CFN_RESOURCE_TYPE_NAME
public operator fun invoke(
scope: CloudshiftdevConstructsConstruct,
id: String,
block: Builder.() -> Unit = {},
): CfnTrustStore {
val builderImpl = BuilderImpl(CloudshiftdevConstructsConstruct.unwrap(scope), id)
return CfnTrustStore(builderImpl.apply(block).build())
}
internal fun wrap(cdkObject: software.amazon.awscdk.services.workspacesweb.CfnTrustStore):
CfnTrustStore = CfnTrustStore(cdkObject)
internal fun unwrap(wrapped: CfnTrustStore):
software.amazon.awscdk.services.workspacesweb.CfnTrustStore = wrapped.cdkObject as
software.amazon.awscdk.services.workspacesweb.CfnTrustStore
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy