io.cloudshiftdev.awscdk.services.bedrock.IModel.kt Maven / Gradle / Ivy
The newest version!
@file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION")
package io.cloudshiftdev.awscdk.services.bedrock
import io.cloudshiftdev.awscdk.common.CdkObject
import io.cloudshiftdev.awscdk.common.CdkObjectWrappers
import kotlin.String
/**
* Represents a Bedrock model.
*
* The model could be a foundation model, a custom model, or a provisioned model.
*/
public interface IModel {
/**
* The ARN of the model.
*
* [Documentation](https://docs.aws.amazon.com/service-authorization/latest/reference/list_amazonbedrock.html#amazonbedrock-actions-as-permissions)
*/
public fun modelArn(): String
private class Wrapper(
cdkObject: software.amazon.awscdk.services.bedrock.IModel,
) : CdkObject(cdkObject),
IModel {
/**
* The ARN of the model.
*
* [Documentation](https://docs.aws.amazon.com/service-authorization/latest/reference/list_amazonbedrock.html#amazonbedrock-actions-as-permissions)
*/
override fun modelArn(): String = unwrap(this).getModelArn()
}
public companion object {
internal fun wrap(cdkObject: software.amazon.awscdk.services.bedrock.IModel): IModel =
CdkObjectWrappers.wrap(cdkObject) as? IModel ?: Wrapper(cdkObject)
internal fun unwrap(wrapped: IModel): software.amazon.awscdk.services.bedrock.IModel = (wrapped
as CdkObject).cdkObject as software.amazon.awscdk.services.bedrock.IModel
}
}