java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
All Implemented Interfaces:
IInspectable, ITaggableV2, IRuntimeRef, software.amazon.jsii.JsiiSerializable, software.constructs.IConstruct, software.constructs.IDependable

@Generated(value="jsii-pacmak/1.113.0 (build fc68b25)", date="2025-09-25T11:29:02.623Z") @Stability(Stable) public class CfnRuntime extends CfnResource implements IInspectable, IRuntimeRef, ITaggableV2
Resource Type definition for AWS::BedrockAgentCore::Runtime.

Example:

 // The code below shows an example of how to instantiate this type.
 // The values are placeholders you should change.
 import software.amazon.awscdk.services.bedrockagentcore.*;
 CfnRuntime cfnRuntime = CfnRuntime.Builder.create(this, "MyCfnRuntime")
         .agentRuntimeArtifact(AgentRuntimeArtifactProperty.builder()
                 .containerConfiguration(ContainerConfigurationProperty.builder()
                         .containerUri("containerUri")
                         .build())
                 .build())
         .agentRuntimeName("agentRuntimeName")
         .networkConfiguration(NetworkConfigurationProperty.builder()
                 .networkMode("networkMode")
                 .build())
         .roleArn("roleArn")
         // the properties below are optional
         .authorizerConfiguration(AuthorizerConfigurationProperty.builder()
                 .customJwtAuthorizer(CustomJWTAuthorizerConfigurationProperty.builder()
                         .discoveryUrl("discoveryUrl")
                         // the properties below are optional
                         .allowedAudience(List.of("allowedAudience"))
                         .allowedClients(List.of("allowedClients"))
                         .build())
                 .build())
         .description("description")
         .environmentVariables(Map.of(
                 "environmentVariablesKey", "environmentVariables"))
         .protocolConfiguration("protocolConfiguration")
         .tags(Map.of(
                 "tagsKey", "tags"))
         .build();
 

See Also:
  • Field Details

    • CFN_RESOURCE_TYPE_NAME

      @Stability(Stable) public static final String CFN_RESOURCE_TYPE_NAME
      The CloudFormation resource type name for this resource class.
  • Constructor Details

    • CfnRuntime

      protected CfnRuntime(software.amazon.jsii.JsiiObjectRef objRef)
    • CfnRuntime

      protected CfnRuntime(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
    • CfnRuntime

      @Stability(Stable) public CfnRuntime(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CfnRuntimeProps props)
      Parameters:
      scope - Scope in which this resource is defined. This parameter is required.
      id - Construct identifier for this resource (unique in its scope). This parameter is required.
      props - Resource properties. This parameter is required.
  • Method Details

    • inspect

      @Stability(Stable) public void inspect(@NotNull TreeInspector inspector)
      Examines the CloudFormation resource and discloses attributes.

      Specified by:
      inspect in interface IInspectable
      Parameters:
      inspector - tree inspector to collect and process attributes. This parameter is required.
    • renderProperties

      @Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String,Object> props)
      Overrides:
      renderProperties in class CfnResource
      Parameters:
      props - This parameter is required.
    • getAttrAgentRuntimeArn

      @Stability(Stable) @NotNull public String getAttrAgentRuntimeArn()
    • getAttrAgentRuntimeId

      @Stability(Stable) @NotNull public String getAttrAgentRuntimeId()
    • getAttrAgentRuntimeVersion

      @Stability(Stable) @NotNull public String getAttrAgentRuntimeVersion()
    • getAttrCreatedAt

      @Stability(Stable) @NotNull public String getAttrCreatedAt()
    • getAttrLastUpdatedAt

      @Stability(Stable) @NotNull public String getAttrLastUpdatedAt()
    • getAttrStatus

      @Stability(Stable) @NotNull public String getAttrStatus()
    • getAttrWorkloadIdentityDetails

      @Stability(Stable) @NotNull public IResolvable getAttrWorkloadIdentityDetails()
      Configuration for workload identity.
    • getCdkTagManager

      @Stability(Stable) @NotNull public TagManager getCdkTagManager()
      Tag Manager which manages the tags for this resource.
      Specified by:
      getCdkTagManager in interface ITaggableV2
    • getCfnProperties

      @Stability(Stable) @NotNull protected Map<String,Object> getCfnProperties()
      Overrides:
      getCfnProperties in class CfnResource
    • getRuntimeRef

      @Stability(Stable) @NotNull public RuntimeReference getRuntimeRef()
      A reference to a Runtime resource.
      Specified by:
      getRuntimeRef in interface IRuntimeRef
    • getAgentRuntimeArtifact

      @Stability(Stable) @NotNull public Object getAgentRuntimeArtifact()
    • setAgentRuntimeArtifact

      @Stability(Stable) public void setAgentRuntimeArtifact(@NotNull IResolvable value)
    • setAgentRuntimeArtifact

      @Stability(Stable) public void setAgentRuntimeArtifact(@NotNull CfnRuntime.AgentRuntimeArtifactProperty value)
    • getAgentRuntimeName

      @Stability(Stable) @NotNull public String getAgentRuntimeName()
    • setAgentRuntimeName

      @Stability(Stable) public void setAgentRuntimeName(@NotNull String value)
    • getNetworkConfiguration

      @Stability(Stable) @NotNull public Object getNetworkConfiguration()
    • setNetworkConfiguration

      @Stability(Stable) public void setNetworkConfiguration(@NotNull IResolvable value)
    • setNetworkConfiguration

      @Stability(Stable) public void setNetworkConfiguration(@NotNull CfnRuntime.NetworkConfigurationProperty value)
    • getRoleArn

      @Stability(Stable) @NotNull public String getRoleArn()
    • setRoleArn

      @Stability(Stable) public void setRoleArn(@NotNull String value)
    • getAuthorizerConfiguration

      @Stability(Stable) @Nullable public Object getAuthorizerConfiguration()
      Configuration for the authorizer.
    • setAuthorizerConfiguration

      @Stability(Stable) public void setAuthorizerConfiguration(@Nullable IResolvable value)
      Configuration for the authorizer.
    • setAuthorizerConfiguration

      @Stability(Stable) public void setAuthorizerConfiguration(@Nullable CfnRuntime.AuthorizerConfigurationProperty value)
      Configuration for the authorizer.
    • getDescription

      @Stability(Stable) @Nullable public String getDescription()
    • setDescription

      @Stability(Stable) public void setDescription(@Nullable String value)
    • getEnvironmentVariables

      @Stability(Stable) @Nullable public Object getEnvironmentVariables()
      Environment variable attributes.
    • setEnvironmentVariables

      @Stability(Stable) public void setEnvironmentVariables(@Nullable Map<String,String> value)
      Environment variable attributes.
    • setEnvironmentVariables

      @Stability(Stable) public void setEnvironmentVariables(@Nullable IResolvable value)
      Environment variable attributes.
    • getProtocolConfiguration

      @Stability(Stable) @Nullable public String getProtocolConfiguration()
    • setProtocolConfiguration

      @Stability(Stable) public void setProtocolConfiguration(@Nullable String value)
    • getTags

      @Stability(Stable) @Nullable public Map<String,String> getTags()
      A map of tag keys and values.
    • setTags

      @Stability(Stable) public void setTags(@Nullable Map<String,String> value)
      A map of tag keys and values.