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

@Generated(value="jsii-pacmak/1.139.0 (build 26a6b54)", date="2026-09-02T11:03:01.945Z") @Stability(Stable) public class CfnRegistry extends CfnResource implements IInspectable, IRegistryRef, ITaggableV2
Definition of AWS::AgentRegistry::Registry Resource Type.

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.agentregistry.*;
 CfnRegistry cfnRegistry = CfnRegistry.Builder.create(this, "MyCfnRegistry")
         .name("name")
         // the properties below are optional
         .approvalConfiguration(ApprovalConfigurationProperty.builder()
                 .autoApprovalRules(List.of("autoApprovalRules"))
                 .build())
         .authorizerType("authorizerType")
         .description("description")
         .discoveryConfiguration(DiscoveryConfigurationProperty.builder()
                 .authorizerConfiguration(AuthorizerConfigurationProperty.builder()
                         .customJwtAuthorizer(CustomJWTAuthorizerConfigurationProperty.builder()
                                 .discoveryUrl("discoveryUrl")
                                 // the properties below are optional
                                 .allowedAudience(List.of("allowedAudience"))
                                 .allowedClients(List.of("allowedClients"))
                                 .allowedScopes(List.of("allowedScopes"))
                                 .customClaims(List.of(CustomClaimValidationTypeProperty.builder()
                                         .authorizingClaimMatchValue(AuthorizingClaimMatchValueTypeProperty.builder()
                                                 .claimMatchOperator("claimMatchOperator")
                                                 .claimMatchValue(ClaimMatchValueTypeProperty.builder()
                                                         .matchValueString("matchValueString")
                                                         .matchValueStringList(List.of("matchValueStringList"))
                                                         .build())
                                                 .build())
                                         .inboundTokenClaimName("inboundTokenClaimName")
                                         .inboundTokenClaimValueType("inboundTokenClaimValueType")
                                         .build()))
                                 .build())
                         .build())
                 .build())
         .tags(List.of(CfnTag.builder()
                 .key("key")
                 .value("value")
                 .build()))
         .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

    • CfnRegistry

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

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

      @Stability(Stable) public CfnRegistry(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CfnRegistryProps props)
      Create a new AWS::AgentRegistry::Registry.

      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

    • arnForRegistry

      @Stability(Stable) @NotNull public static String arnForRegistry(@NotNull IRegistryRef resource)
      Parameters:
      resource - This parameter is required.
    • isCfnRegistry

      @Stability(Stable) @NotNull public static Boolean isCfnRegistry(@NotNull Object x)
      Checks whether the given object is a CfnRegistry.

      Parameters:
      x - This parameter is required.
    • 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.
    • getAttrCreatedAt

      @Stability(Stable) @NotNull public String getAttrCreatedAt()
      The timestamp when the registry was created.
    • getAttrRegistryArn

      @Stability(Stable) @NotNull public String getAttrRegistryArn()
      The Amazon Resource Name (ARN) of the registry.
    • getAttrRegistryId

      @Stability(Stable) @NotNull public String getAttrRegistryId()
      The unique identifier of the registry.
    • getAttrStatus

      @Stability(Stable) @NotNull public String getAttrStatus()
      The status of the registry.
    • getAttrUpdatedAt

      @Stability(Stable) @NotNull public String getAttrUpdatedAt()
      The timestamp when the registry was last updated.
    • 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
    • getCfnPropertyNames

      @Stability(Stable) @NotNull protected Map<String,String> getCfnPropertyNames()
      Overrides:
      getCfnPropertyNames in class CfnResource
    • getRegistryRef

      @Stability(Stable) @NotNull public RegistryReference getRegistryRef()
      A reference to a Registry resource.
      Specified by:
      getRegistryRef in interface IRegistryRef
    • getName

      @Stability(Stable) @NotNull public String getName()
      The name of the registry.
    • setName

      @Stability(Stable) public void setName(@NotNull String value)
      The name of the registry.
    • getApprovalConfiguration

      @Stability(Stable) @Nullable public Object getApprovalConfiguration()
      Configuration for the registry's record approval workflow.

      Returns union: either IResolvable or CfnRegistry.ApprovalConfigurationProperty

    • setApprovalConfiguration

      @Stability(Stable) public void setApprovalConfiguration(@Nullable IResolvable value)
      Configuration for the registry's record approval workflow.
    • setApprovalConfiguration

      @Stability(Stable) public void setApprovalConfiguration(@Nullable CfnRegistry.ApprovalConfigurationProperty value)
      Configuration for the registry's record approval workflow.
    • getAuthorizerType

      @Stability(Stable) @Nullable public String getAuthorizerType()
      The type of authorizer that controls how consumers access the registry's search and MCP invoke operations.
    • setAuthorizerType

      @Stability(Stable) public void setAuthorizerType(@Nullable String value)
      The type of authorizer that controls how consumers access the registry's search and MCP invoke operations.
    • getDescription

      @Stability(Stable) @Nullable public String getDescription()
      The description of the registry.
    • setDescription

      @Stability(Stable) public void setDescription(@Nullable String value)
      The description of the registry.
    • getDiscoveryConfiguration

      @Stability(Stable) @Nullable public Object getDiscoveryConfiguration()
      Discovery configuration for the registry.

      Returns union: either IResolvable or CfnRegistry.DiscoveryConfigurationProperty

    • setDiscoveryConfiguration

      @Stability(Stable) public void setDiscoveryConfiguration(@Nullable IResolvable value)
      Discovery configuration for the registry.
    • setDiscoveryConfiguration

      @Stability(Stable) public void setDiscoveryConfiguration(@Nullable CfnRegistry.DiscoveryConfigurationProperty value)
      Discovery configuration for the registry.
    • getTags

      @Stability(Stable) @Nullable public List<CfnTag> getTags()
      Tags to assign to the registry.
    • setTags

      @Stability(Stable) public void setTags(@Nullable List<CfnTag> value)
      Tags to assign to the registry.