Skip to content
v2.277.0

PrivateKeyFlagsV4Property Struct ​

Private key flags for v4 templates specify the client compatibility, if the private key can be exported, if user input is required when using a private key, if an alternate signature algorithm should be used, and if certificates are renewed using the same private key.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_pcaconnectorad as pcaconnectorad } from 'aws-cdk-lib';
const privateKeyFlagsV4Property: pcaconnectorad.CfnTemplate.PrivateKeyFlagsV4Property = {
  clientVersion: 'clientVersion',

  // the properties below are optional
  exportableKey: false,
  requireAlternateSignatureAlgorithm: false,
  requireSameKeyRenewal: false,
  strongKeyProtectionRequired: false,
  useLegacyProvider: false,
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_pcaconnectorad as pcaconnectorad

private_key_flags_v4_property = pcaconnectorad.CfnTemplate.PrivateKeyFlagsV4Property(
    client_version="clientVersion",

    # the properties below are optional
    exportable_key=False,
    require_alternate_signature_algorithm=False,
    require_same_key_renewal=False,
    strong_key_protection_required=False,
    use_legacy_provider=False
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.pcaconnectorad.*;

PrivateKeyFlagsV4Property privateKeyFlagsV4Property = PrivateKeyFlagsV4Property.builder()
        .clientVersion("clientVersion")

        // the properties below are optional
        .exportableKey(false)
        .requireAlternateSignatureAlgorithm(false)
        .requireSameKeyRenewal(false)
        .strongKeyProtectionRequired(false)
        .useLegacyProvider(false)
        .build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.PCAConnectorAD;

var privateKeyFlagsV4Property = new PrivateKeyFlagsV4Property {
    ClientVersion = "clientVersion",

    // the properties below are optional
    ExportableKey = false,
    RequireAlternateSignatureAlgorithm = false,
    RequireSameKeyRenewal = false,
    StrongKeyProtectionRequired = false,
    UseLegacyProvider = false
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

privateKeyFlagsV4Property := &PrivateKeyFlagsV4Property{
	ClientVersion: jsii.String("clientVersion"),

	// the properties below are optional
	ExportableKey: jsii.Boolean(false),
	RequireAlternateSignatureAlgorithm: jsii.Boolean(false),
	RequireSameKeyRenewal: jsii.Boolean(false),
	StrongKeyProtectionRequired: jsii.Boolean(false),
	UseLegacyProvider: jsii.Boolean(false),
}

Properties ​

clientVersionstringclient_versionstrclientVersionStringClientVersionstringClientVersion*stringrequired#
Defines the minimum client compatibility.
exportableKeyoptionalboolean | IResolvableexportable_keyoptionaltyping.Union[bool, IResolvable]exportableKeyoptionalBooleanExportableKeyoptionalboolExportableKeyoptionalinterface{}#
Allows the private key to be exported.
requireAlternateSignatureAlgorithmoptionalboolean | IResolvablerequire_alternate_signature_algorithmoptionaltyping.Union[bool, IResolvable]requireAlternateSignatureAlgorithmoptionalBooleanRequireAlternateSignatureAlgorithmoptionalboolRequireAlternateSignatureAlgorithmoptionalinterface{}#
Requires the PKCS #1 v2.1 signature format for certificates. You should verify that your CA, objects, and applications can accept this signature format.
requireSameKeyRenewaloptionalboolean | IResolvablerequire_same_key_renewaloptionaltyping.Union[bool, IResolvable]requireSameKeyRenewaloptionalBooleanRequireSameKeyRenewaloptionalboolRequireSameKeyRenewaloptionalinterface{}#
Renew certificate using the same private key.
strongKeyProtectionRequiredoptionalboolean | IResolvablestrong_key_protection_requiredoptionaltyping.Union[bool, IResolvable]strongKeyProtectionRequiredoptionalBooleanStrongKeyProtectionRequiredoptionalboolStrongKeyProtectionRequiredoptionalinterface{}#
Require user input when using the private key for enrollment.
useLegacyProvideroptionalboolean | IResolvableuse_legacy_provideroptionaltyping.Union[bool, IResolvable]useLegacyProvideroptionalBooleanUseLegacyProvideroptionalboolUseLegacyProvideroptionalinterface{}#
Specifies the cryptographic service provider category used to generate private keys.

Set to TRUE to use Legacy Cryptographic Service Providers and FALSE to use Key Storage Providers.