Skip to content
v2.277.0

ExtensionsV2Property Struct ​

Certificate extensions for v2 template schema.

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 extensionsV2Property: pcaconnectorad.CfnTemplate.ExtensionsV2Property = {
  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,
  },
};
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

extensions_v2_property = pcaconnectorad.CfnTemplate.ExtensionsV2Property(
    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
    )
)
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.*;

ExtensionsV2Property extensionsV2Property = ExtensionsV2Property.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();
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 extensionsV2Property = new ExtensionsV2Property {
    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
    }
};
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"

extensionsV2Property := &ExtensionsV2Property{
	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),
	},
}

Properties ​

applicationPoliciesoptionalIResolvable | CfnTemplate.ApplicationPoliciesPropertyapplication_policiesoptionaltyping.Union[IResolvable, ApplicationPoliciesProperty]applicationPoliciesoptionalIResolvableApplicationPoliciesoptionalIResolvableApplicationPoliciesoptionalinterface{}#
Application policies specify what the certificate is used for and its purpose.
keyUsageIResolvable | CfnTemplate.KeyUsagePropertykey_usagetyping.Union[IResolvable, KeyUsageProperty]keyUsageIResolvableKeyUsageIResolvableKeyUsageinterface{}required#
The key usage extension defines the purpose (e.g., encipherment, signature, certificate signing) of the key contained in the certificate.