Class CfnRegistry
java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.CfnElement
software.amazon.awscdk.CfnRefElement
software.amazon.awscdk.CfnResource
software.amazon.awscdk.services.glue.CfnRegistry
- All Implemented Interfaces:
IInspectable,ITaggable,IRegistryRef,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.116.0 (build 0eddcff)",
date="2025-10-24T13:34:39.459Z")
@Stability(Stable)
public class CfnRegistry
extends CfnResource
implements IInspectable, IRegistryRef, ITaggable
The AWS::Glue::Registry is an AWS Glue resource type that manages registries of schemas in the AWS Glue Schema Registry.
Example:
import software.amazon.awscdk.services.glue.CfnRegistry;
import software.amazon.awscdk.services.lambda.eventsources.ManagedKafkaEventSource;
import software.amazon.awscdk.services.lambda.eventsources.GlueSchemaRegistry;
// Your MSK cluster arn
String clusterArn;
Function myFunction;
// The Kafka topic you want to subscribe to
String topic = "some-cool-topic";
// Your Glue Schema Registry
CfnRegistry glueRegistry = CfnRegistry.Builder.create(this, "Registry")
.name("schema-registry")
.description("Schema registry for event source")
.build();
myFunction.addEventSource(ManagedKafkaEventSource.Builder.create()
.clusterArn(clusterArn)
.topic(topic)
.startingPosition(StartingPosition.TRIM_HORIZON)
.provisionedPollerConfig(ProvisionedPollerConfig.builder()
.minimumPollers(1)
.maximumPollers(3)
.build())
.schemaRegistryConfig(GlueSchemaRegistry.Builder.create()
.schemaRegistry(glueRegistry)
.eventRecordFormat(EventRecordFormat.JSON)
.schemaValidationConfigs(List.of(KafkaSchemaValidationConfig.builder().attribute(KafkaSchemaValidationAttribute.KEY).build()))
.build())
.build());
- See Also:
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.services.glue.IRegistryRef
IRegistryRef.Jsii$Default, IRegistryRef.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.ITaggable
ITaggable.Jsii$Default, ITaggable.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCfnRegistry(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnRegistry(software.amazon.jsii.JsiiObjectRef objRef) CfnRegistry(software.constructs.Construct scope, String id, CfnRegistryProps props) -
Method Summary
Modifier and TypeMethodDescriptionAmazon Resource Name for the created Registry.A description of the registry.getName()The name of the registry.A reference to a Registry resource.getTags()Tag Manager which manages the tags for this resource.AWS tags that contain a key value pair and may be searched by console, command line, or API.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties(Map<String, Object> props) voidsetDescription(String value) A description of the registry.voidThe name of the registry.voidsetTagsRaw(List<CfnTag> value) AWS tags that contain a key value pair and may be searched by console, command line, or API.Methods inherited from class software.amazon.awscdk.CfnResource
addDeletionOverride, addDependency, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, obtainDependencies, obtainResourceDependencies, removeDependency, replaceDependency, shouldSynthesize, toString, validatePropertiesMethods inherited from class software.amazon.awscdk.CfnRefElement
getRefMethods inherited from class software.amazon.awscdk.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdMethods inherited from class software.constructs.Construct
getNode, isConstructMethods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface software.constructs.IConstruct
getNodeMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
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) - 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
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspectin interfaceIInspectable- 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:
renderPropertiesin classCfnResource- Parameters:
props- This parameter is required.
-
getAttrArn
Amazon Resource Name for the created Registry. -
getCfnProperties
- Overrides:
getCfnPropertiesin classCfnResource
-
getRegistryRef
A reference to a Registry resource.- Specified by:
getRegistryRefin interfaceIRegistryRef
-
getTags
Tag Manager which manages the tags for this resource. -
getName
The name of the registry. -
setName
The name of the registry. -
getDescription
A description of the registry. -
setDescription
A description of the registry. -
getTagsRaw
AWS tags that contain a key value pair and may be searched by console, command line, or API. -
setTagsRaw
AWS tags that contain a key value pair and may be searched by console, command line, or API.
-