Class: AWSCDK::SecurityAgent::CfnPentest::AuthenticationProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
security_agent/cfn_pentest.rb

Overview

Authentication configuration for a pentest actor.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(provider_type: nil, value: nil) ⇒ AuthenticationProperty

Returns a new instance of AuthenticationProperty.

Parameters:

  • provider_type (String, nil) (defaults to: nil)

    Type of authentication provider.

  • value (String, nil) (defaults to: nil)

    Reference value for the authentication provider, such as a secret ARN or Lambda ARN.



761
762
763
764
765
766
# File 'security_agent/cfn_pentest.rb', line 761

def initialize(provider_type: nil, value: nil)
  @provider_type = provider_type
  Jsii::Type.check_type(@provider_type, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "providerType") unless @provider_type.nil?
  @value = value
  Jsii::Type.check_type(@value, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "value") unless @value.nil?
end

Instance Attribute Details

#provider_typeString? (readonly)

Type of authentication provider.



772
773
774
# File 'security_agent/cfn_pentest.rb', line 772

def provider_type
  @provider_type
end

#valueString? (readonly)

Reference value for the authentication provider, such as a secret ARN or Lambda ARN.



777
778
779
# File 'security_agent/cfn_pentest.rb', line 777

def value
  @value
end

Class Method Details

.jsii_propertiesObject



779
780
781
782
783
784
# File 'security_agent/cfn_pentest.rb', line 779

def self.jsii_properties
  {
    :provider_type => "providerType",
    :value => "value",
  }
end

Instance Method Details

#to_jsiiObject



786
787
788
789
790
791
792
793
# File 'security_agent/cfn_pentest.rb', line 786

def to_jsii
  result = {}
  result.merge!({
    "providerType" => @provider_type,
    "value" => @value,
  })
  result.compact
end