Class: AWSCDK::SecurityAgent::CfnPentest::CustomHeaderProperty

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

Overview

A custom header to include in outbound requests.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name: nil, value: nil) ⇒ CustomHeaderProperty

Returns a new instance of CustomHeaderProperty.

Parameters:

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

    Name of the header.

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

    Value of the header.



847
848
849
850
851
852
# File 'security_agent/cfn_pentest.rb', line 847

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

Instance Attribute Details

#nameString? (readonly)

Name of the header.



858
859
860
# File 'security_agent/cfn_pentest.rb', line 858

def name
  @name
end

#valueString? (readonly)

Value of the header.



863
864
865
# File 'security_agent/cfn_pentest.rb', line 863

def value
  @value
end

Class Method Details

.jsii_propertiesObject



865
866
867
868
869
870
# File 'security_agent/cfn_pentest.rb', line 865

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

Instance Method Details

#to_jsiiObject



872
873
874
875
876
877
878
879
# File 'security_agent/cfn_pentest.rb', line 872

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