Interface CfnRegistryRecord.RegistryRecordCredentialProviderUnionProperty

All Superinterfaces:
software.amazon.jsii.JsiiSerializable
All Known Implementing Classes:
CfnRegistryRecord.RegistryRecordCredentialProviderUnionProperty.Jsii$Proxy
Enclosing class:
CfnRegistryRecord

@Stability(Stable) public static interface CfnRegistryRecord.RegistryRecordCredentialProviderUnionProperty extends software.amazon.jsii.JsiiSerializable
The credential provider details.

Specify exactly one member.

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.*;
 RegistryRecordCredentialProviderUnionProperty registryRecordCredentialProviderUnionProperty = 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();
 

See Also: