Class: AWSCDK::SecurityAgent::CfnPentest::CustomHeaderProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::SecurityAgent::CfnPentest::CustomHeaderProperty
- Defined in:
- security_agent/cfn_pentest.rb
Overview
A custom header to include in outbound requests.
Instance Attribute Summary collapse
-
#name ⇒ String?
readonly
Name of the header.
-
#value ⇒ String?
readonly
Value of the header.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(name: nil, value: nil) ⇒ CustomHeaderProperty
constructor
A new instance of CustomHeaderProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(name: nil, value: nil) ⇒ CustomHeaderProperty
Returns a new instance of CustomHeaderProperty.
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
#name ⇒ String? (readonly)
Name of the header.
858 859 860 |
# File 'security_agent/cfn_pentest.rb', line 858 def name @name end |
#value ⇒ String? (readonly)
Value of the header.
863 864 865 |
# File 'security_agent/cfn_pentest.rb', line 863 def value @value end |
Class Method Details
.jsii_properties ⇒ Object
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_jsii ⇒ Object
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 |