Class: AWSCDK::PCAConnectorAD::CfnTemplate::GeneralFlagsV2Property
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::PCAConnectorAD::CfnTemplate::GeneralFlagsV2Property
- Defined in:
- pca_connector_ad/cfn_template.rb
Overview
General 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.
Instance Attribute Summary collapse
-
#auto_enrollment ⇒ Boolean, ...
readonly
Allows certificate issuance using autoenrollment.
-
#machine_type ⇒ Boolean, ...
readonly
Defines if the template is for machines or users.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(auto_enrollment: nil, machine_type: nil) ⇒ GeneralFlagsV2Property
constructor
A new instance of GeneralFlagsV2Property.
- #to_jsii ⇒ Object
Constructor Details
#initialize(auto_enrollment: nil, machine_type: nil) ⇒ GeneralFlagsV2Property
Returns a new instance of GeneralFlagsV2Property.
1053 1054 1055 1056 1057 1058 |
# File 'pca_connector_ad/cfn_template.rb', line 1053 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_enrollment ⇒ Boolean, ... (readonly)
Allows certificate issuance using autoenrollment.
Set to TRUE to allow autoenrollment.
1066 1067 1068 |
# File 'pca_connector_ad/cfn_template.rb', line 1066 def auto_enrollment @auto_enrollment end |
#machine_type ⇒ Boolean, ... (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.
1073 1074 1075 |
# File 'pca_connector_ad/cfn_template.rb', line 1073 def machine_type @machine_type end |
Class Method Details
.jsii_properties ⇒ Object
1075 1076 1077 1078 1079 1080 |
# File 'pca_connector_ad/cfn_template.rb', line 1075 def self.jsii_properties { :auto_enrollment => "autoEnrollment", :machine_type => "machineType", } end |
Instance Method Details
#to_jsii ⇒ Object
1082 1083 1084 1085 1086 1087 1088 1089 |
# File 'pca_connector_ad/cfn_template.rb', line 1082 def to_jsii result = {} result.merge!({ "autoEnrollment" => @auto_enrollment, "machineType" => @machine_type, }) result.compact end |