Class: AWSCDK::SecurityAgent::CfnPentest::DocumentInfoProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::SecurityAgent::CfnPentest::DocumentInfoProperty
- Defined in:
- security_agent/cfn_pentest.rb
Overview
A document stored in S3 that provides context for the pentest.
Instance Attribute Summary collapse
-
#artifact_id ⇒ String?
readonly
Artifact identifier.
-
#s3_location ⇒ String?
readonly
S3 document location.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(artifact_id: nil, s3_location: nil) ⇒ DocumentInfoProperty
constructor
A new instance of DocumentInfoProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(artifact_id: nil, s3_location: nil) ⇒ DocumentInfoProperty
Returns a new instance of DocumentInfoProperty.
890 891 892 893 894 895 |
# File 'security_agent/cfn_pentest.rb', line 890 def initialize(artifact_id: nil, s3_location: nil) @artifact_id = artifact_id Jsii::Type.check_type(@artifact_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "artifactId") unless @artifact_id.nil? @s3_location = s3_location Jsii::Type.check_type(@s3_location, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "s3Location") unless @s3_location.nil? end |
Instance Attribute Details
#artifact_id ⇒ String? (readonly)
Artifact identifier.
901 902 903 |
# File 'security_agent/cfn_pentest.rb', line 901 def artifact_id @artifact_id end |
#s3_location ⇒ String? (readonly)
S3 document location.
906 907 908 |
# File 'security_agent/cfn_pentest.rb', line 906 def s3_location @s3_location end |
Class Method Details
.jsii_properties ⇒ Object
908 909 910 911 912 913 |
# File 'security_agent/cfn_pentest.rb', line 908 def self.jsii_properties { :artifact_id => "artifactId", :s3_location => "s3Location", } end |
Instance Method Details
#to_jsii ⇒ Object
915 916 917 918 919 920 921 922 |
# File 'security_agent/cfn_pentest.rb', line 915 def to_jsii result = {} result.merge!({ "artifactId" => @artifact_id, "s3Location" => @s3_location, }) result.compact end |