Class AgentcoreRegistry


  • public class AgentcoreRegistry
    extends com.pulumi.resources.CustomResource
    Manages an AWS Bedrock AgentCore Registry. A registry serves as a centralized catalog for organizing and managing registry records, including MCP servers, A2A agents, agent skills, and custom resource types. > **Warning:** This resource is deprecated. AWS Agent Registry is currently available in public preview. [On August 6, 2026](https://docs.aws.amazon.com/bedrock-agentcore/latest/devguide/registry-faq.html#registry-faq-what-is-changing) functionality will move from the `bedrock-agentcore` namespace to the `agent-registry` namespace. This resource will continue to work until [September 17, 2026](https://docs.aws.amazon.com/bedrock-agentcore/latest/devguide/registry-faq.html). Use the `aws.agentregistry.Registry` resource for all new registries. ## Example Usage ### Basic Usage
     
     package generated_program;
     
     import com.pulumi.Context;
     import com.pulumi.Pulumi;
     import com.pulumi.core.Output;
     import com.pulumi.aws.bedrock.AgentcoreRegistry;
     import com.pulumi.aws.bedrock.AgentcoreRegistryArgs;
     import java.util.ArrayList;
     import java.util.Arrays;
     import java.util.Map;
     import java.io.File;
     import java.nio.file.Files;
     import java.nio.file.Paths;
     
     public class App {
         public static void main(String[] args) {
             Pulumi.run(App::stack);
         }
     
         public static void stack(Context ctx) {
             var example = new AgentcoreRegistry("example", AgentcoreRegistryArgs.builder()
                 .name("example_registry")
                 .build());
     
         }
     }
     
     
    ### With Description and Auto Approval
     
     package generated_program;
     
     import com.pulumi.Context;
     import com.pulumi.Pulumi;
     import com.pulumi.core.Output;
     import com.pulumi.aws.bedrock.AgentcoreRegistry;
     import com.pulumi.aws.bedrock.AgentcoreRegistryArgs;
     import com.pulumi.aws.bedrock.inputs.AgentcoreRegistryApprovalConfigurationArgs;
     import java.util.ArrayList;
     import java.util.Arrays;
     import java.util.Map;
     import java.io.File;
     import java.nio.file.Files;
     import java.nio.file.Paths;
     
     public class App {
         public static void main(String[] args) {
             Pulumi.run(App::stack);
         }
     
         public static void stack(Context ctx) {
             var example = new AgentcoreRegistry("example", AgentcoreRegistryArgs.builder()
                 .approvalConfigurations(AgentcoreRegistryApprovalConfigurationArgs.builder()
                     .autoApproval(true)
                     .build())
                 .name("example_registry")
                 .description("MCP servers and tools for the platform team")
                 .build());
     
         }
     }
     
     
    ### With Custom JWT Authorizer
     
     package generated_program;
     
     import com.pulumi.Context;
     import com.pulumi.Pulumi;
     import com.pulumi.core.Output;
     import com.pulumi.aws.bedrock.AgentcoreRegistry;
     import com.pulumi.aws.bedrock.AgentcoreRegistryArgs;
     import com.pulumi.aws.bedrock.inputs.AgentcoreRegistryAuthorizerConfigurationArgs;
     import com.pulumi.aws.bedrock.inputs.AgentcoreRegistryAuthorizerConfigurationCustomJwtAuthorizerArgs;
     import java.util.ArrayList;
     import java.util.Arrays;
     import java.util.Map;
     import java.io.File;
     import java.nio.file.Files;
     import java.nio.file.Paths;
     
     public class App {
         public static void main(String[] args) {
             Pulumi.run(App::stack);
         }
     
         public static void stack(Context ctx) {
             var example = new AgentcoreRegistry("example", AgentcoreRegistryArgs.builder()
                 .authorizerConfiguration(AgentcoreRegistryAuthorizerConfigurationArgs.builder()
                     .customJwtAuthorizer(AgentcoreRegistryAuthorizerConfigurationCustomJwtAuthorizerArgs.builder()
                         .discoveryUrl("https://example.okta.com/.well-known/openid-configuration")
                         .allowedAudiences("audience-id")
                         .allowedClients("client-id")
                         .build())
                     .build())
                 .name("example_registry")
                 .authorizerType("CUSTOM_JWT")
                 .build());
     
         }
     }
     
     
    ## Import ### Identity Schema #### Required * `registryId` (String) Registry ID. #### Optional * `accountId` (String) AWS Account where this resource is managed. * `region` (String) Region where this resource is managed. Using `pulumi import`, import a Bedrock AgentCore Registry by registry ID. For example: ```sh $ pulumi import aws:bedrock/agentcoreRegistry:AgentcoreRegistry example registry-id-12345678 ```
    • Nested Class Summary

      • Nested classes/interfaces inherited from class com.pulumi.resources.CustomResource

        com.pulumi.resources.CustomResource.CustomResourceInternal
      • Nested classes/interfaces inherited from class com.pulumi.resources.Resource

        com.pulumi.resources.Resource.LazyField<T extends java.lang.Object>, com.pulumi.resources.Resource.LazyFields, com.pulumi.resources.Resource.ResourceInternal
    • Field Summary

      • Fields inherited from class com.pulumi.resources.Resource

        childResources, remote
    • Constructor Detail

      • AgentcoreRegistry

        public AgentcoreRegistry​(java.lang.String name)
        Parameters:
        name - The _unique_ name of the resulting resource.
      • AgentcoreRegistry

        public AgentcoreRegistry​(java.lang.String name,
                                 @Nullable
                                 AgentcoreRegistryArgs args)
        Parameters:
        name - The _unique_ name of the resulting resource.
        args - The arguments to use to populate this resource's properties.
      • AgentcoreRegistry

        public AgentcoreRegistry​(java.lang.String name,
                                 @Nullable
                                 AgentcoreRegistryArgs args,
                                 @Nullable
                                 com.pulumi.resources.CustomResourceOptions options)
        Parameters:
        name - The _unique_ name of the resulting resource.
        args - The arguments to use to populate this resource's properties.
        options - A bag of options that control this resource's behavior.
    • Method Detail

      • approvalConfigurations

        public com.pulumi.core.Output<java.util.List<AgentcoreRegistryApprovalConfiguration>> approvalConfigurations()
        Returns:
        Approval configuration for registry records. See below.
      • authorizerConfiguration

        public com.pulumi.core.Output<java.util.Optional<AgentcoreRegistryAuthorizerConfiguration>> authorizerConfiguration()
        Returns:
        Authorizer configuration for the registry. Required when `authorizerType` is `CUSTOM_JWT`. See below.
      • authorizerType

        public com.pulumi.core.Output<java.lang.String> authorizerType()
        Returns:
        Type of authorizer to use for the registry. Valid values are `AWS_IAM` (default) and `CUSTOM_JWT`. This controls the authorization method for the Search and Invoke APIs used by consumers.
      • description

        public com.pulumi.core.Output<java.util.Optional<java.lang.String>> description()
        Returns:
        Description of the registry.
      • name

        public com.pulumi.core.Output<java.lang.String> name()
        Returns:
        Name of the registry. Must be unique within your account, start with a letter or number, and contain only letters, numbers, underscores, hyphens, periods, and forward slashes. Maximum length of 64 characters. The following arguments are optional:
      • region

        public com.pulumi.core.Output<java.lang.String> region()
        Returns:
        Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.
      • registryArn

        public com.pulumi.core.Output<java.lang.String> registryArn()
        Returns:
        ARN of the registry.
      • registryId

        public com.pulumi.core.Output<java.lang.String> registryId()
        Returns:
        Unique identifier of the registry.
      • get

        public static AgentcoreRegistry get​(java.lang.String name,
                                            com.pulumi.core.Output<java.lang.String> id,
                                            @Nullable
                                            AgentcoreRegistryState state,
                                            @Nullable
                                            com.pulumi.resources.CustomResourceOptions options)
        Get an existing Host resource's state with the given name, ID, and optional extra properties used to qualify the lookup.
        Parameters:
        name - The _unique_ name of the resulting resource.
        id - The _unique_ provider ID of the resource to lookup.
        state -
        options - Optional settings to control the behavior of the CustomResource.