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: