Class CfnTemplatePropsMixin
java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.Mixin
software.amazon.awscdk.cfnpropertymixins.services.pcaconnectorad.CfnTemplatePropsMixin
- All Implemented Interfaces:
software.amazon.jsii.JsiiSerializable,software.constructs.IMixin
@Generated(value="jsii-pacmak/1.127.0 (build 2117ad5)",
date="2026-03-19T12:55:23.364Z")
@Stability(Stable)
public class CfnTemplatePropsMixin
extends Mixin
implements software.constructs.IMixin
Creates an Active Directory compatible certificate template.
The connectors issues certificates using these templates based on the requester’s Active Directory group membership.
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.cfnpropertymixins.services.pcaconnectorad.*;
import software.amazon.awscdk.*;
IMergeStrategy mergeStrategy;
CfnTemplatePropsMixin cfnTemplatePropsMixin = CfnTemplatePropsMixin.Builder.create(CfnTemplateMixinProps.builder()
.connectorArn("connectorArn")
.definition(TemplateDefinitionProperty.builder()
.templateV2(TemplateV2Property.builder()
.certificateValidity(CertificateValidityProperty.builder()
.renewalPeriod(ValidityPeriodProperty.builder()
.period(123)
.periodType("periodType")
.build())
.validityPeriod(ValidityPeriodProperty.builder()
.period(123)
.periodType("periodType")
.build())
.build())
.enrollmentFlags(EnrollmentFlagsV2Property.builder()
.enableKeyReuseOnNtTokenKeysetStorageFull(false)
.includeSymmetricAlgorithms(false)
.noSecurityExtension(false)
.removeInvalidCertificateFromPersonalStore(false)
.userInteractionRequired(false)
.build())
.extensions(ExtensionsV2Property.builder()
.applicationPolicies(ApplicationPoliciesProperty.builder()
.critical(false)
.policies(List.of(ApplicationPolicyProperty.builder()
.policyObjectIdentifier("policyObjectIdentifier")
.policyType("policyType")
.build()))
.build())
.keyUsage(KeyUsageProperty.builder()
.critical(false)
.usageFlags(KeyUsageFlagsProperty.builder()
.dataEncipherment(false)
.digitalSignature(false)
.keyAgreement(false)
.keyEncipherment(false)
.nonRepudiation(false)
.build())
.build())
.build())
.generalFlags(GeneralFlagsV2Property.builder()
.autoEnrollment(false)
.machineType(false)
.build())
.privateKeyAttributes(PrivateKeyAttributesV2Property.builder()
.cryptoProviders(List.of("cryptoProviders"))
.keySpec("keySpec")
.minimalKeyLength(123)
.build())
.privateKeyFlags(PrivateKeyFlagsV2Property.builder()
.clientVersion("clientVersion")
.exportableKey(false)
.strongKeyProtectionRequired(false)
.build())
.subjectNameFlags(SubjectNameFlagsV2Property.builder()
.requireCommonName(false)
.requireDirectoryPath(false)
.requireDnsAsCn(false)
.requireEmail(false)
.sanRequireDirectoryGuid(false)
.sanRequireDns(false)
.sanRequireDomainDns(false)
.sanRequireEmail(false)
.sanRequireSpn(false)
.sanRequireUpn(false)
.build())
.supersededTemplates(List.of("supersededTemplates"))
.build())
.templateV3(TemplateV3Property.builder()
.certificateValidity(CertificateValidityProperty.builder()
.renewalPeriod(ValidityPeriodProperty.builder()
.period(123)
.periodType("periodType")
.build())
.validityPeriod(ValidityPeriodProperty.builder()
.period(123)
.periodType("periodType")
.build())
.build())
.enrollmentFlags(EnrollmentFlagsV3Property.builder()
.enableKeyReuseOnNtTokenKeysetStorageFull(false)
.includeSymmetricAlgorithms(false)
.noSecurityExtension(false)
.removeInvalidCertificateFromPersonalStore(false)
.userInteractionRequired(false)
.build())
.extensions(ExtensionsV3Property.builder()
.applicationPolicies(ApplicationPoliciesProperty.builder()
.critical(false)
.policies(List.of(ApplicationPolicyProperty.builder()
.policyObjectIdentifier("policyObjectIdentifier")
.policyType("policyType")
.build()))
.build())
.keyUsage(KeyUsageProperty.builder()
.critical(false)
.usageFlags(KeyUsageFlagsProperty.builder()
.dataEncipherment(false)
.digitalSignature(false)
.keyAgreement(false)
.keyEncipherment(false)
.nonRepudiation(false)
.build())
.build())
.build())
.generalFlags(GeneralFlagsV3Property.builder()
.autoEnrollment(false)
.machineType(false)
.build())
.hashAlgorithm("hashAlgorithm")
.privateKeyAttributes(PrivateKeyAttributesV3Property.builder()
.algorithm("algorithm")
.cryptoProviders(List.of("cryptoProviders"))
.keySpec("keySpec")
.keyUsageProperty(KeyUsagePropertyProperty.builder()
.propertyFlags(KeyUsagePropertyFlagsProperty.builder()
.decrypt(false)
.keyAgreement(false)
.sign(false)
.build())
.propertyType("propertyType")
.build())
.minimalKeyLength(123)
.build())
.privateKeyFlags(PrivateKeyFlagsV3Property.builder()
.clientVersion("clientVersion")
.exportableKey(false)
.requireAlternateSignatureAlgorithm(false)
.strongKeyProtectionRequired(false)
.build())
.subjectNameFlags(SubjectNameFlagsV3Property.builder()
.requireCommonName(false)
.requireDirectoryPath(false)
.requireDnsAsCn(false)
.requireEmail(false)
.sanRequireDirectoryGuid(false)
.sanRequireDns(false)
.sanRequireDomainDns(false)
.sanRequireEmail(false)
.sanRequireSpn(false)
.sanRequireUpn(false)
.build())
.supersededTemplates(List.of("supersededTemplates"))
.build())
.templateV4(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()
.applicationPolicies(ApplicationPoliciesProperty.builder()
.critical(false)
.policies(List.of(ApplicationPolicyProperty.builder()
.policyObjectIdentifier("policyObjectIdentifier")
.policyType("policyType")
.build()))
.build())
.keyUsage(KeyUsageProperty.builder()
.critical(false)
.usageFlags(KeyUsageFlagsProperty.builder()
.dataEncipherment(false)
.digitalSignature(false)
.keyAgreement(false)
.keyEncipherment(false)
.nonRepudiation(false)
.build())
.build())
.build())
.generalFlags(GeneralFlagsV4Property.builder()
.autoEnrollment(false)
.machineType(false)
.build())
.hashAlgorithm("hashAlgorithm")
.privateKeyAttributes(PrivateKeyAttributesV4Property.builder()
.algorithm("algorithm")
.cryptoProviders(List.of("cryptoProviders"))
.keySpec("keySpec")
.keyUsageProperty(KeyUsagePropertyProperty.builder()
.propertyFlags(KeyUsagePropertyFlagsProperty.builder()
.decrypt(false)
.keyAgreement(false)
.sign(false)
.build())
.propertyType("propertyType")
.build())
.minimalKeyLength(123)
.build())
.privateKeyFlags(PrivateKeyFlagsV4Property.builder()
.clientVersion("clientVersion")
.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())
.supersededTemplates(List.of("supersededTemplates"))
.build())
.build())
.name("name")
.reenrollAllCertificateHolders(false)
.tags(Map.of(
"tagsKey", "tags"))
.build())
.strategy(mergeStrategy)
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceApplication policies describe what the certificate can be used for.static interfaceApplication policies describe what the certificate can be used for.static final classA fluent builder forCfnTemplatePropsMixin.static interfaceInformation describing the end of the validity period of the certificate.static interfaceTemplate configurations for v2 template schema.static interfaceTemplate configurations for v3 template schema.static interfaceTemplate configurations for v4 template schema.static interfaceCertificate extensions for v2 template schema.static interfaceCertificate extensions for v3 template schema.static interfaceCertificate extensions for v4 template schema.static interfaceGeneral flags for v2 template schema that defines if the template is for a machine or a user and if the template can be issued using autoenrollment.static interfaceGeneral flags for v3 template schema that defines if the template is for a machine or a user and if the template can be issued using autoenrollment.static interfaceGeneral flags for v4 template schema that defines if the template is for a machine or a user and if the template can be issued using autoenrollment.static interfaceThe key usage flags represent the purpose (e.g., encipherment, signature) of the key contained in the certificate.static interfaceThe key usage extension defines the purpose (e.g., encipherment, signature) of the key contained in the certificate.static interfaceSpecifies key usage.static interfaceThe key usage property defines the purpose of the private key contained in the certificate.static interfaceDefines the attributes of the private key.static interfaceDefines the attributes of the private key.static interfaceDefines the attributes of the private key.static interfacePrivate key flags for v2 templates specify the client compatibility, if the private key can be exported, and if user input is required when using a private key.static interfacePrivate key flags for v3 templates specify the client compatibility, if the private key can be exported, if user input is required when using a private key, and if an alternate signature algorithm should be used.static interfacePrivate 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.static interfaceInformation to include in the subject name and alternate subject name of the certificate.static interfaceInformation to include in the subject name and alternate subject name of the certificate.static interfaceInformation to include in the subject name and alternate subject name of the certificate.static interfaceTemplate configuration to define the information included in certificates.static interfacev2 template schema that uses Legacy Cryptographic Providers.static interfacev3 template schema that uses Key Storage Providers.static interfacev4 template schema that can use either Legacy Cryptographic Providers or Key Storage Providers.static interfaceInformation describing the end of the validity period of the certificate.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.constructs.IMixin
software.constructs.IMixin.Jsii$Default, software.constructs.IMixin.Jsii$Proxy -
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionCreate a mixin to apply properties toAWS::PCAConnectorAD::Template.CfnTemplatePropsMixin(CfnTemplateMixinProps props, CfnPropertyMixinOptions options) Create a mixin to apply properties toAWS::PCAConnectorAD::Template.protectedCfnTemplatePropsMixin(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnTemplatePropsMixin(software.amazon.jsii.JsiiObjectRef objRef) -
Method Summary
Modifier and TypeMethodDescriptionvoidapplyTo(software.constructs.IConstruct construct) Apply the mixin properties to the construct.protected CfnTemplateMixinPropsgetProps()protected IMergeStrategysupports(software.constructs.IConstruct construct) Check if this mixin supports the given construct.Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
CFN_PROPERTY_KEYS
-
-
Constructor Details
-
CfnTemplatePropsMixin
protected CfnTemplatePropsMixin(software.amazon.jsii.JsiiObjectRef objRef) -
CfnTemplatePropsMixin
protected CfnTemplatePropsMixin(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnTemplatePropsMixin
@Stability(Stable) public CfnTemplatePropsMixin(@NotNull CfnTemplateMixinProps props, @Nullable CfnPropertyMixinOptions options) Create a mixin to apply properties toAWS::PCAConnectorAD::Template.- Parameters:
props- L1 properties to apply. This parameter is required.options- Mixin options.
-
CfnTemplatePropsMixin
Create a mixin to apply properties toAWS::PCAConnectorAD::Template.- Parameters:
props- L1 properties to apply. This parameter is required.
-
-
Method Details
-
applyTo
@Stability(Stable) public void applyTo(@NotNull software.constructs.IConstruct construct) Apply the mixin properties to the construct. -
supports
@Stability(Stable) @NotNull public Boolean supports(@NotNull software.constructs.IConstruct construct) Check if this mixin supports the given construct. -
getProps
-
getStrategy
-