Class: AWSCDK::PCAConnectorAD::CfnTemplate::GeneralFlagsV3Property

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

Overview

General 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.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(auto_enrollment: nil, machine_type: nil) ⇒ GeneralFlagsV3Property

Returns a new instance of GeneralFlagsV3Property.

Parameters:

  • auto_enrollment (Boolean, AWSCDK::IResolvable, nil) (defaults to: nil)

    Allows certificate issuance using autoenrollment.

  • machine_type (Boolean, AWSCDK::IResolvable, nil) (defaults to: nil)

    Defines if the template is for machines or users.



1100
1101
1102
1103
1104
1105
# File 'pca_connector_ad/cfn_template.rb', line 1100

def initialize(auto_enrollment: nil, machine_type: nil)
  @auto_enrollment = auto_enrollment
  Jsii::Type.check_type(@auto_enrollment, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3sicHJpbWl0aXZlIjoiYm9vbGVhbiJ9LHsiZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifV19fQ==")), "autoEnrollment") unless @auto_enrollment.nil?
  @machine_type = machine_type
  Jsii::Type.check_type(@machine_type, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3sicHJpbWl0aXZlIjoiYm9vbGVhbiJ9LHsiZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifV19fQ==")), "machineType") unless @machine_type.nil?
end

Instance Attribute Details

#auto_enrollmentBoolean, ... (readonly)

Allows certificate issuance using autoenrollment.

Set to TRUE to allow autoenrollment.



1113
1114
1115
# File 'pca_connector_ad/cfn_template.rb', line 1113

def auto_enrollment
  @auto_enrollment
end

#machine_typeBoolean, ... (readonly)

Defines if the template is for machines or users.

Set to TRUE if the template is for machines. Set to FALSE if the template is for users



1120
1121
1122
# File 'pca_connector_ad/cfn_template.rb', line 1120

def machine_type
  @machine_type
end

Class Method Details

.jsii_propertiesObject



1122
1123
1124
1125
1126
1127
# File 'pca_connector_ad/cfn_template.rb', line 1122

def self.jsii_properties
  {
    :auto_enrollment => "autoEnrollment",
    :machine_type => "machineType",
  }
end

Instance Method Details

#to_jsiiObject



1129
1130
1131
1132
1133
1134
1135
1136
# File 'pca_connector_ad/cfn_template.rb', line 1129

def to_jsii
  result = {}
  result.merge!({
    "autoEnrollment" => @auto_enrollment,
    "machineType" => @machine_type,
  })
  result.compact
end