Class: AWSCDK::PCAConnectorAD::CfnTemplate::KeyUsagePropertyProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
pca_connector_ad/cfn_template.rb

Overview

The key usage property defines the purpose of the private key contained in the certificate.

You can specify specific purposes using property flags or all by using property type ALL.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(property_flags: nil, property_type: nil) ⇒ KeyUsagePropertyProperty

Returns a new instance of KeyUsagePropertyProperty.

Parameters:



1365
1366
1367
1368
1369
1370
# File 'pca_connector_ad/cfn_template.rb', line 1365

def initialize(property_flags: nil, property_type: nil)
  @property_flags = property_flags.is_a?(Hash) ? ::AWSCDK::PCAConnectorAD::CfnTemplate::KeyUsagePropertyFlagsProperty.new(**property_flags.transform_keys(&:to_sym)) : property_flags
  Jsii::Type.check_type(@property_flags, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19wY2Fjb25uZWN0b3JhZC5DZm5UZW1wbGF0ZS5LZXlVc2FnZVByb3BlcnR5RmxhZ3NQcm9wZXJ0eSJ9XX19")), "propertyFlags") unless @property_flags.nil?
  @property_type = property_type
  Jsii::Type.check_type(@property_type, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "propertyType") unless @property_type.nil?
end

Instance Attribute Details

#property_flagsAWSCDK::IResolvable, ... (readonly)

You can specify key usage for encryption, key agreement, and signature.

You can use property flags or property type but not both.



1378
1379
1380
# File 'pca_connector_ad/cfn_template.rb', line 1378

def property_flags
  @property_flags
end

#property_typeString? (readonly)

You can specify all key usages using property type ALL.

You can use property type or property flags but not both.



1385
1386
1387
# File 'pca_connector_ad/cfn_template.rb', line 1385

def property_type
  @property_type
end

Class Method Details

.jsii_propertiesObject



1387
1388
1389
1390
1391
1392
# File 'pca_connector_ad/cfn_template.rb', line 1387

def self.jsii_properties
  {
    :property_flags => "propertyFlags",
    :property_type => "propertyType",
  }
end

Instance Method Details

#to_jsiiObject



1394
1395
1396
1397
1398
1399
1400
1401
# File 'pca_connector_ad/cfn_template.rb', line 1394

def to_jsii
  result = {}
  result.merge!({
    "propertyFlags" => @property_flags,
    "propertyType" => @property_type,
  })
  result.compact
end