Class: AWSCDK::PCAConnectorAD::CfnTemplate::GeneralFlagsV2Property

Inherits:
Jsii::Struct
  • Object
show all
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

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

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

Returns a new instance of GeneralFlagsV2Property.

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.



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_enrollmentBoolean, ... (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_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.



1073
1074
1075
# File 'pca_connector_ad/cfn_template.rb', line 1073

def machine_type
  @machine_type
end

Class Method Details

.jsii_propertiesObject



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_jsiiObject



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