Interface CfnRegistryRecord.DescriptorsProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnRegistryRecord.DescriptorsProperty.Jsii$Proxy
- Enclosing class:
CfnRegistryRecord
@Stability(Stable)
public static interface CfnRegistryRecord.DescriptorsProperty
extends software.amazon.jsii.JsiiSerializable
The typed set of descriptors for a registry record.
Exactly one descriptor field is populated based on the record 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.*;
DescriptorsProperty descriptorsProperty = DescriptorsProperty.builder()
.a2AAgentCard(A2aAgentCardDescriptorProperty.builder()
.data("data")
.dataSchemaVersion("dataSchemaVersion")
.source(DescriptorSourceProperty.builder()
.fromUrl(DescriptorSourceFromUrlProperty.builder()
.url("url")
// the properties below are optional
.credentialProviderConfigurations(List.of(RegistryRecordCredentialProviderConfigurationProperty.builder()
.credentialProvider(RegistryRecordCredentialProviderUnionProperty.builder()
.iamCredentialProvider(RegistryRecordIamCredentialProviderProperty.builder()
.region("region")
.roleArn("roleArn")
.service("service")
.build())
.oauthCredentialProvider(RegistryRecordOAuthCredentialProviderProperty.builder()
.providerArn("providerArn")
// the properties below are optional
.customParameters(Map.of(
"customParametersKey", "customParameters"))
.grantType("grantType")
.scopes(List.of("scopes"))
.build())
.build())
.credentialProviderType("credentialProviderType")
.build()))
.build())
.build())
.build())
.agentSkillsDefinition(AgentSkillsDefinitionDescriptorProperty.builder()
.additionalData(AgentSkillsAdditionalDataProperty.builder()
.skillMd(AgentSkillsMdDescriptorProperty.builder()
.data("data")
.dataSchemaVersion("dataSchemaVersion")
.source(SkillMdSourceProperty.builder()
.fromUrl(SkillMdSourceFromUrlProperty.builder()
.url("url")
.build())
.build())
.build())
.build())
.data("data")
.dataSchemaVersion("dataSchemaVersion")
.build())
.custom(CustomDescriptorProperty.builder()
.data("data")
.build())
.mcpServer(McpServerDescriptorProperty.builder()
.additionalData(McpServerAdditionalDataProperty.builder()
.tools(McpToolsDescriptorProperty.builder()
.data("data")
.dataSchemaVersion("dataSchemaVersion")
.build())
.build())
.data("data")
.dataSchemaVersion("dataSchemaVersion")
.source(DescriptorSourceProperty.builder()
.fromUrl(DescriptorSourceFromUrlProperty.builder()
.url("url")
// the properties below are optional
.credentialProviderConfigurations(List.of(RegistryRecordCredentialProviderConfigurationProperty.builder()
.credentialProvider(RegistryRecordCredentialProviderUnionProperty.builder()
.iamCredentialProvider(RegistryRecordIamCredentialProviderProperty.builder()
.region("region")
.roleArn("roleArn")
.service("service")
.build())
.oauthCredentialProvider(RegistryRecordOAuthCredentialProviderProperty.builder()
.providerArn("providerArn")
// the properties below are optional
.customParameters(Map.of(
"customParametersKey", "customParameters"))
.grantType("grantType")
.scopes(List.of("scopes"))
.build())
.build())
.credentialProviderType("credentialProviderType")
.build()))
.build())
.build())
.build())
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnRegistryRecord.DescriptorsPropertystatic final classAn implementation forCfnRegistryRecord.DescriptorsProperty -
Method Summary
Modifier and TypeMethodDescriptionbuilder()default ObjectThe A2A agent card descriptor, populated when the record type is AGENT.default ObjectThe agent skills definition descriptor, populated when the record type is SKILL.default ObjectThe custom descriptor, populated when the record type is CUSTOM.default ObjectThe MCP server descriptor, populated when the record type is MCP.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getA2AAgentCard
The A2A agent card descriptor, populated when the record type is AGENT.Returns union: either
IResolvableorCfnRegistryRecord.A2aAgentCardDescriptorProperty- See Also:
-
getAgentSkillsDefinition
The agent skills definition descriptor, populated when the record type is SKILL.Returns union: either
IResolvableorCfnRegistryRecord.AgentSkillsDefinitionDescriptorProperty- See Also:
-
getCustom
The custom descriptor, populated when the record type is CUSTOM.Returns union: either
IResolvableorCfnRegistryRecord.CustomDescriptorProperty- See Also:
-
getMcpServer
The MCP server descriptor, populated when the record type is MCP.Returns union: either
IResolvableorCfnRegistryRecord.McpServerDescriptorProperty- See Also:
-
builder
-