![JAR search and dependency download from the Maven repository](/logo.png)
io.cloudshiftdev.awscdk.services.certificatemanager.CfnAccountProps.kt Maven / Gradle / Ivy
@file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION")
package io.cloudshiftdev.awscdk.services.certificatemanager
import io.cloudshiftdev.awscdk.IResolvable
import io.cloudshiftdev.awscdk.common.CdkDslMarker
import io.cloudshiftdev.awscdk.common.CdkObject
import io.cloudshiftdev.awscdk.common.CdkObjectWrappers
import kotlin.Any
import kotlin.Unit
import kotlin.jvm.JvmName
/**
* Properties for defining a `CfnAccount`.
*
* 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.certificatemanager.*;
* CfnAccountProps cfnAccountProps = CfnAccountProps.builder()
* .expiryEventsConfiguration(ExpiryEventsConfigurationProperty.builder()
* .daysBeforeExpiry(123)
* .build())
* .build();
* ```
*
* [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-certificatemanager-account.html)
*/
public interface CfnAccountProps {
/**
* Object containing expiration events options associated with an AWS account .
*
* For more information, see
* [ExpiryEventsConfiguration](https://docs.aws.amazon.com/acm/latest/APIReference/API_ExpiryEventsConfiguration.html)
* in the API reference.
*
* [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-certificatemanager-account.html#cfn-certificatemanager-account-expiryeventsconfiguration)
*/
public fun expiryEventsConfiguration(): Any
/**
* A builder for [CfnAccountProps]
*/
@CdkDslMarker
public interface Builder {
/**
* @param expiryEventsConfiguration Object containing expiration events options associated with
* an AWS account .
* For more information, see
* [ExpiryEventsConfiguration](https://docs.aws.amazon.com/acm/latest/APIReference/API_ExpiryEventsConfiguration.html)
* in the API reference.
*/
public fun expiryEventsConfiguration(expiryEventsConfiguration: IResolvable)
/**
* @param expiryEventsConfiguration Object containing expiration events options associated with
* an AWS account .
* For more information, see
* [ExpiryEventsConfiguration](https://docs.aws.amazon.com/acm/latest/APIReference/API_ExpiryEventsConfiguration.html)
* in the API reference.
*/
public
fun expiryEventsConfiguration(expiryEventsConfiguration: CfnAccount.ExpiryEventsConfigurationProperty)
/**
* @param expiryEventsConfiguration Object containing expiration events options associated with
* an AWS account .
* For more information, see
* [ExpiryEventsConfiguration](https://docs.aws.amazon.com/acm/latest/APIReference/API_ExpiryEventsConfiguration.html)
* in the API reference.
*/
@kotlin.Suppress("INAPPLICABLE_JVM_NAME")
@JvmName("9c334ce57706c50333654102ee39ddd67179959ff51452eb7b2cdb325dffdfa2")
public
fun expiryEventsConfiguration(expiryEventsConfiguration: CfnAccount.ExpiryEventsConfigurationProperty.Builder.() -> Unit)
}
private class BuilderImpl : Builder {
private val cdkBuilder:
software.amazon.awscdk.services.certificatemanager.CfnAccountProps.Builder =
software.amazon.awscdk.services.certificatemanager.CfnAccountProps.builder()
/**
* @param expiryEventsConfiguration Object containing expiration events options associated with
* an AWS account .
* For more information, see
* [ExpiryEventsConfiguration](https://docs.aws.amazon.com/acm/latest/APIReference/API_ExpiryEventsConfiguration.html)
* in the API reference.
*/
override fun expiryEventsConfiguration(expiryEventsConfiguration: IResolvable) {
cdkBuilder.expiryEventsConfiguration(expiryEventsConfiguration.let(IResolvable.Companion::unwrap))
}
/**
* @param expiryEventsConfiguration Object containing expiration events options associated with
* an AWS account .
* For more information, see
* [ExpiryEventsConfiguration](https://docs.aws.amazon.com/acm/latest/APIReference/API_ExpiryEventsConfiguration.html)
* in the API reference.
*/
override
fun expiryEventsConfiguration(expiryEventsConfiguration: CfnAccount.ExpiryEventsConfigurationProperty) {
cdkBuilder.expiryEventsConfiguration(expiryEventsConfiguration.let(CfnAccount.ExpiryEventsConfigurationProperty.Companion::unwrap))
}
/**
* @param expiryEventsConfiguration Object containing expiration events options associated with
* an AWS account .
* For more information, see
* [ExpiryEventsConfiguration](https://docs.aws.amazon.com/acm/latest/APIReference/API_ExpiryEventsConfiguration.html)
* in the API reference.
*/
@kotlin.Suppress("INAPPLICABLE_JVM_NAME")
@JvmName("9c334ce57706c50333654102ee39ddd67179959ff51452eb7b2cdb325dffdfa2")
override
fun expiryEventsConfiguration(expiryEventsConfiguration: CfnAccount.ExpiryEventsConfigurationProperty.Builder.() -> Unit):
Unit =
expiryEventsConfiguration(CfnAccount.ExpiryEventsConfigurationProperty(expiryEventsConfiguration))
public fun build(): software.amazon.awscdk.services.certificatemanager.CfnAccountProps =
cdkBuilder.build()
}
private class Wrapper(
cdkObject: software.amazon.awscdk.services.certificatemanager.CfnAccountProps,
) : CdkObject(cdkObject),
CfnAccountProps {
/**
* Object containing expiration events options associated with an AWS account .
*
* For more information, see
* [ExpiryEventsConfiguration](https://docs.aws.amazon.com/acm/latest/APIReference/API_ExpiryEventsConfiguration.html)
* in the API reference.
*
* [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-certificatemanager-account.html#cfn-certificatemanager-account-expiryeventsconfiguration)
*/
override fun expiryEventsConfiguration(): Any = unwrap(this).getExpiryEventsConfiguration()
}
public companion object {
public operator fun invoke(block: Builder.() -> Unit = {}): CfnAccountProps {
val builderImpl = BuilderImpl()
return Wrapper(builderImpl.apply(block).build())
}
internal
fun wrap(cdkObject: software.amazon.awscdk.services.certificatemanager.CfnAccountProps):
CfnAccountProps = CdkObjectWrappers.wrap(cdkObject) as? CfnAccountProps ?:
Wrapper(cdkObject)
internal fun unwrap(wrapped: CfnAccountProps):
software.amazon.awscdk.services.certificatemanager.CfnAccountProps = (wrapped as
CdkObject).cdkObject as software.amazon.awscdk.services.certificatemanager.CfnAccountProps
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy