![JAR search and dependency download from the Maven repository](/logo.png)
io.cloudshiftdev.awscdk.services.apigateway.IAccessLogDestination.kt Maven / Gradle / Ivy
@file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION")
package io.cloudshiftdev.awscdk.services.apigateway
import io.cloudshiftdev.awscdk.common.CdkObject
import io.cloudshiftdev.awscdk.common.CdkObjectWrappers
/**
* Access log destination for a RestApi Stage.
*/
public interface IAccessLogDestination {
/**
* Binds this destination to the RestApi Stage.
*
* @param stage
*/
public fun bind(stage: IStage): AccessLogDestinationConfig
private class Wrapper(
cdkObject: software.amazon.awscdk.services.apigateway.IAccessLogDestination,
) : CdkObject(cdkObject),
IAccessLogDestination {
/**
* Binds this destination to the RestApi Stage.
*
* @param stage
*/
override fun bind(stage: IStage): AccessLogDestinationConfig =
unwrap(this).bind(stage.let(IStage.Companion::unwrap)).let(AccessLogDestinationConfig::wrap)
}
public companion object {
internal fun wrap(cdkObject: software.amazon.awscdk.services.apigateway.IAccessLogDestination):
IAccessLogDestination = CdkObjectWrappers.wrap(cdkObject) as? IAccessLogDestination ?:
Wrapper(cdkObject)
internal fun unwrap(wrapped: IAccessLogDestination):
software.amazon.awscdk.services.apigateway.IAccessLogDestination = (wrapped as
CdkObject).cdkObject as software.amazon.awscdk.services.apigateway.IAccessLogDestination
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy