TemplateV4Property Struct
v4 template schema that can use either Legacy Cryptographic Providers or Key Storage Providers.
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 templateV4Property: pcaconnectorad.CfnTemplate.TemplateV4Property = {
certificateValidity: {
renewalPeriod: {
period: 123,
periodType: 'periodType',
},
validityPeriod: {
period: 123,
periodType: 'periodType',
},
},
enrollmentFlags: {
enableKeyReuseOnNtTokenKeysetStorageFull: false,
includeSymmetricAlgorithms: false,
noSecurityExtension: false,
removeInvalidCertificateFromPersonalStore: false,
userInteractionRequired: false,
},
extensions: {
keyUsage: {
usageFlags: {
dataEncipherment: false,
digitalSignature: false,
keyAgreement: false,
keyEncipherment: false,
nonRepudiation: false,
},
// the properties below are optional
critical: false,
},
// the properties below are optional
applicationPolicies: {
policies: [{
policyObjectIdentifier: 'policyObjectIdentifier',
policyType: 'policyType',
}],
// the properties below are optional
critical: false,
},
},
generalFlags: {
autoEnrollment: false,
machineType: false,
},
privateKeyAttributes: {
keySpec: 'keySpec',
minimalKeyLength: 123,
// the properties below are optional
algorithm: 'algorithm',
cryptoProviders: ['cryptoProviders'],
keyUsageProperty: {
propertyFlags: {
decrypt: false,
keyAgreement: false,
sign: false,
},
propertyType: 'propertyType',
},
},
privateKeyFlags: {
clientVersion: 'clientVersion',
// the properties below are optional
exportableKey: false,
requireAlternateSignatureAlgorithm: false,
requireSameKeyRenewal: false,
strongKeyProtectionRequired: false,
useLegacyProvider: false,
},
subjectNameFlags: {
requireCommonName: false,
requireDirectoryPath: false,
requireDnsAsCn: false,
requireEmail: false,
sanRequireDirectoryGuid: false,
sanRequireDns: false,
sanRequireDomainDns: false,
sanRequireEmail: false,
sanRequireSpn: false,
sanRequireUpn: false,
},
// the properties below are optional
hashAlgorithm: 'hashAlgorithm',
supersededTemplates: ['supersededTemplates'],
};
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
template_v4_property = pcaconnectorad.CfnTemplate.TemplateV4Property(
certificate_validity=pcaconnectorad.CfnTemplate.CertificateValidityProperty(
renewal_period=pcaconnectorad.CfnTemplate.ValidityPeriodProperty(
period=123,
period_type="periodType"
),
validity_period=pcaconnectorad.CfnTemplate.ValidityPeriodProperty(
period=123,
period_type="periodType"
)
),
enrollment_flags=pcaconnectorad.CfnTemplate.EnrollmentFlagsV4Property(
enable_key_reuse_on_nt_token_keyset_storage_full=False,
include_symmetric_algorithms=False,
no_security_extension=False,
remove_invalid_certificate_from_personal_store=False,
user_interaction_required=False
),
extensions=pcaconnectorad.CfnTemplate.ExtensionsV4Property(
key_usage=pcaconnectorad.CfnTemplate.KeyUsageProperty(
usage_flags=pcaconnectorad.CfnTemplate.KeyUsageFlagsProperty(
data_encipherment=False,
digital_signature=False,
key_agreement=False,
key_encipherment=False,
non_repudiation=False
),
# the properties below are optional
critical=False
),
# the properties below are optional
application_policies=pcaconnectorad.CfnTemplate.ApplicationPoliciesProperty(
policies=[pcaconnectorad.CfnTemplate.ApplicationPolicyProperty(
policy_object_identifier="policyObjectIdentifier",
policy_type="policyType"
)],
# the properties below are optional
critical=False
)
),
general_flags=pcaconnectorad.CfnTemplate.GeneralFlagsV4Property(
auto_enrollment=False,
machine_type=False
),
private_key_attributes=pcaconnectorad.CfnTemplate.PrivateKeyAttributesV4Property(
key_spec="keySpec",
minimal_key_length=123,
# the properties below are optional
algorithm="algorithm",
crypto_providers=["cryptoProviders"],
key_usage_property=pcaconnectorad.CfnTemplate.KeyUsagePropertyProperty(
property_flags=pcaconnectorad.CfnTemplate.KeyUsagePropertyFlagsProperty(
decrypt=False,
key_agreement=False,
sign=False
),
property_type="propertyType"
)
),
private_key_flags=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
),
subject_name_flags=pcaconnectorad.CfnTemplate.SubjectNameFlagsV4Property(
require_common_name=False,
require_directory_path=False,
require_dns_as_cn=False,
require_email=False,
san_require_directory_guid=False,
san_require_dns=False,
san_require_domain_dns=False,
san_require_email=False,
san_require_spn=False,
san_require_upn=False
),
# the properties below are optional
hash_algorithm="hashAlgorithm",
superseded_templates=["supersededTemplates"]
)
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.*;
TemplateV4Property templateV4Property = TemplateV4Property.builder()
.certificateValidity(CertificateValidityProperty.builder()
.renewalPeriod(ValidityPeriodProperty.builder()
.period(123)
.periodType("periodType")
.build())
.validityPeriod(ValidityPeriodProperty.builder()
.period(123)
.periodType("periodType")
.build())
.build())
.enrollmentFlags(EnrollmentFlagsV4Property.builder()
.enableKeyReuseOnNtTokenKeysetStorageFull(false)
.includeSymmetricAlgorithms(false)
.noSecurityExtension(false)
.removeInvalidCertificateFromPersonalStore(false)
.userInteractionRequired(false)
.build())
.extensions(ExtensionsV4Property.builder()
.keyUsage(KeyUsageProperty.builder()
.usageFlags(KeyUsageFlagsProperty.builder()
.dataEncipherment(false)
.digitalSignature(false)
.keyAgreement(false)
.keyEncipherment(false)
.nonRepudiation(false)
.build())
// the properties below are optional
.critical(false)
.build())
// the properties below are optional
.applicationPolicies(ApplicationPoliciesProperty.builder()
.policies(List.of(ApplicationPolicyProperty.builder()
.policyObjectIdentifier("policyObjectIdentifier")
.policyType("policyType")
.build()))
// the properties below are optional
.critical(false)
.build())
.build())
.generalFlags(GeneralFlagsV4Property.builder()
.autoEnrollment(false)
.machineType(false)
.build())
.privateKeyAttributes(PrivateKeyAttributesV4Property.builder()
.keySpec("keySpec")
.minimalKeyLength(123)
// the properties below are optional
.algorithm("algorithm")
.cryptoProviders(List.of("cryptoProviders"))
.keyUsageProperty(KeyUsagePropertyProperty.builder()
.propertyFlags(KeyUsagePropertyFlagsProperty.builder()
.decrypt(false)
.keyAgreement(false)
.sign(false)
.build())
.propertyType("propertyType")
.build())
.build())
.privateKeyFlags(PrivateKeyFlagsV4Property.builder()
.clientVersion("clientVersion")
// the properties below are optional
.exportableKey(false)
.requireAlternateSignatureAlgorithm(false)
.requireSameKeyRenewal(false)
.strongKeyProtectionRequired(false)
.useLegacyProvider(false)
.build())
.subjectNameFlags(SubjectNameFlagsV4Property.builder()
.requireCommonName(false)
.requireDirectoryPath(false)
.requireDnsAsCn(false)
.requireEmail(false)
.sanRequireDirectoryGuid(false)
.sanRequireDns(false)
.sanRequireDomainDns(false)
.sanRequireEmail(false)
.sanRequireSpn(false)
.sanRequireUpn(false)
.build())
// the properties below are optional
.hashAlgorithm("hashAlgorithm")
.supersededTemplates(List.of("supersededTemplates"))
.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 templateV4Property = new TemplateV4Property {
CertificateValidity = new CertificateValidityProperty {
RenewalPeriod = new ValidityPeriodProperty {
Period = 123,
PeriodType = "periodType"
},
ValidityPeriod = new ValidityPeriodProperty {
Period = 123,
PeriodType = "periodType"
}
},
EnrollmentFlags = new EnrollmentFlagsV4Property {
EnableKeyReuseOnNtTokenKeysetStorageFull = false,
IncludeSymmetricAlgorithms = false,
NoSecurityExtension = false,
RemoveInvalidCertificateFromPersonalStore = false,
UserInteractionRequired = false
},
Extensions = new ExtensionsV4Property {
KeyUsage = new KeyUsageProperty {
UsageFlags = new KeyUsageFlagsProperty {
DataEncipherment = false,
DigitalSignature = false,
KeyAgreement = false,
KeyEncipherment = false,
NonRepudiation = false
},
// the properties below are optional
Critical = false
},
// the properties below are optional
ApplicationPolicies = new ApplicationPoliciesProperty {
Policies = new [] { new ApplicationPolicyProperty {
PolicyObjectIdentifier = "policyObjectIdentifier",
PolicyType = "policyType"
} },
// the properties below are optional
Critical = false
}
},
GeneralFlags = new GeneralFlagsV4Property {
AutoEnrollment = false,
MachineType = false
},
PrivateKeyAttributes = new PrivateKeyAttributesV4Property {
KeySpec = "keySpec",
MinimalKeyLength = 123,
// the properties below are optional
Algorithm = "algorithm",
CryptoProviders = new [] { "cryptoProviders" },
KeyUsageProperty = new KeyUsagePropertyProperty {
PropertyFlags = new KeyUsagePropertyFlagsProperty {
Decrypt = false,
KeyAgreement = false,
Sign = false
},
PropertyType = "propertyType"
}
},
PrivateKeyFlags = new PrivateKeyFlagsV4Property {
ClientVersion = "clientVersion",
// the properties below are optional
ExportableKey = false,
RequireAlternateSignatureAlgorithm = false,
RequireSameKeyRenewal = false,
StrongKeyProtectionRequired = false,
UseLegacyProvider = false
},
SubjectNameFlags = new SubjectNameFlagsV4Property {
RequireCommonName = false,
RequireDirectoryPath = false,
RequireDnsAsCn = false,
RequireEmail = false,
SanRequireDirectoryGuid = false,
SanRequireDns = false,
SanRequireDomainDns = false,
SanRequireEmail = false,
SanRequireSpn = false,
SanRequireUpn = false
},
// the properties below are optional
HashAlgorithm = "hashAlgorithm",
SupersededTemplates = new [] { "supersededTemplates" }
};
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"
templateV4Property := &TemplateV4Property{
CertificateValidity: &CertificateValidityProperty{
RenewalPeriod: &ValidityPeriodProperty{
Period: jsii.Number(123),
PeriodType: jsii.String("periodType"),
},
ValidityPeriod: &ValidityPeriodProperty{
Period: jsii.Number(123),
PeriodType: jsii.String("periodType"),
},
},
EnrollmentFlags: &EnrollmentFlagsV4Property{
EnableKeyReuseOnNtTokenKeysetStorageFull: jsii.Boolean(false),
IncludeSymmetricAlgorithms: jsii.Boolean(false),
NoSecurityExtension: jsii.Boolean(false),
RemoveInvalidCertificateFromPersonalStore: jsii.Boolean(false),
UserInteractionRequired: jsii.Boolean(false),
},
Extensions: &ExtensionsV4Property{
KeyUsage: &KeyUsageProperty{
UsageFlags: &KeyUsageFlagsProperty{
DataEncipherment: jsii.Boolean(false),
DigitalSignature: jsii.Boolean(false),
KeyAgreement: jsii.Boolean(false),
KeyEncipherment: jsii.Boolean(false),
NonRepudiation: jsii.Boolean(false),
},
// the properties below are optional
Critical: jsii.Boolean(false),
},
// the properties below are optional
ApplicationPolicies: &ApplicationPoliciesProperty{
Policies: []interface{}{
&ApplicationPolicyProperty{
PolicyObjectIdentifier: jsii.String("policyObjectIdentifier"),
PolicyType: jsii.String("policyType"),
},
},
// the properties below are optional
Critical: jsii.Boolean(false),
},
},
GeneralFlags: &GeneralFlagsV4Property{
AutoEnrollment: jsii.Boolean(false),
MachineType: jsii.Boolean(false),
},
PrivateKeyAttributes: &PrivateKeyAttributesV4Property{
KeySpec: jsii.String("keySpec"),
MinimalKeyLength: jsii.Number(123),
// the properties below are optional
Algorithm: jsii.String("algorithm"),
CryptoProviders: []*string{
jsii.String("cryptoProviders"),
},
KeyUsageProperty: &KeyUsagePropertyProperty{
PropertyFlags: &KeyUsagePropertyFlagsProperty{
Decrypt: jsii.Boolean(false),
KeyAgreement: jsii.Boolean(false),
Sign: jsii.Boolean(false),
},
PropertyType: jsii.String("propertyType"),
},
},
PrivateKeyFlags: &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),
},
SubjectNameFlags: &SubjectNameFlagsV4Property{
RequireCommonName: jsii.Boolean(false),
RequireDirectoryPath: jsii.Boolean(false),
RequireDnsAsCn: jsii.Boolean(false),
RequireEmail: jsii.Boolean(false),
SanRequireDirectoryGuid: jsii.Boolean(false),
SanRequireDns: jsii.Boolean(false),
SanRequireDomainDns: jsii.Boolean(false),
SanRequireEmail: jsii.Boolean(false),
SanRequireSpn: jsii.Boolean(false),
SanRequireUpn: jsii.Boolean(false),
},
// the properties below are optional
HashAlgorithm: jsii.String("hashAlgorithm"),
SupersededTemplates: []*string{
jsii.String("supersededTemplates"),
},
}
Properties
certificateValidityIResolvable | CfnTemplate.CertificateValidityPropertycertificate_validitytyping.Union[IResolvable, CertificateValidityProperty]certificateValidityIResolvableCertificateValidityIResolvableCertificateValidityinterface{}required#Certificate validity describes the validity and renewal periods of a certificate.
enrollmentFlagsIResolvable | CfnTemplate.EnrollmentFlagsV4Propertyenrollment_flagstyping.Union[IResolvable, EnrollmentFlagsV4Property]enrollmentFlagsIResolvableEnrollmentFlagsIResolvableEnrollmentFlagsinterface{}required#Enrollment flags describe the enrollment settings for certificates using the existing private key and deleting expired or revoked certificates.
extensionsIResolvable | CfnTemplate.ExtensionsV4Propertyextensionstyping.Union[IResolvable, ExtensionsV4Property]extensionsIResolvableExtensionsIResolvableExtensionsinterface{}required#Extensions describe the key usage extensions and application policies for a template.
generalFlagsIResolvable | CfnTemplate.GeneralFlagsV4Propertygeneral_flagstyping.Union[IResolvable, GeneralFlagsV4Property]generalFlagsIResolvableGeneralFlagsIResolvableGeneralFlagsinterface{}required#General flags describe whether the template is used for computers or users and if the template can be used with autoenrollment.
hashAlgorithmoptionalstringhash_algorithmoptionalstrhashAlgorithmoptionalStringHashAlgorithmoptionalstringHashAlgorithmoptional*string#Specifies the hash algorithm used to hash the private key.
Hash algorithm can only be specified when using Key Storage Providers.
privateKeyAttributesIResolvable | CfnTemplate.PrivateKeyAttributesV4Propertyprivate_key_attributestyping.Union[IResolvable, PrivateKeyAttributesV4Property]privateKeyAttributesIResolvablePrivateKeyAttributesIResolvablePrivateKeyAttributesinterface{}required#Private key attributes allow you to specify the minimal key length, key spec, key usage, and cryptographic providers for the private key of a certificate for v4 templates.
V4 templates allow you to use either Key Storage Providers or Legacy Cryptographic Service Providers. You specify the cryptography provider category in private key flags.
privateKeyFlagsIResolvable | CfnTemplate.PrivateKeyFlagsV4Propertyprivate_key_flagstyping.Union[IResolvable, PrivateKeyFlagsV4Property]privateKeyFlagsIResolvablePrivateKeyFlagsIResolvablePrivateKeyFlagsinterface{}required#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.
subjectNameFlagsIResolvable | CfnTemplate.SubjectNameFlagsV4Propertysubject_name_flagstyping.Union[IResolvable, SubjectNameFlagsV4Property]subjectNameFlagsIResolvableSubjectNameFlagsIResolvableSubjectNameFlagsinterface{}required#Subject name flags describe the subject name and subject alternate name that is included in a certificate.
supersededTemplatesoptionalstring[]superseded_templatesoptionaltyping.List[str]supersededTemplatesoptionalList<String>SupersededTemplatesoptionalstring[]SupersededTemplatesoptional*[]*string#List of templates in Active Directory that are superseded by this template.