Class: AWSCDK::SecurityAgent::CfnPentest::AssetsProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::SecurityAgent::CfnPentest::AssetsProperty
- Defined in:
- security_agent/cfn_pentest.rb
Overview
Collection of assets to be tested during the pentest.
Instance Attribute Summary collapse
-
#actors ⇒ AWSCDK::IResolvable, ...
readonly
List of actors used during testing.
-
#documents ⇒ AWSCDK::IResolvable, ...
readonly
List of documents providing additional context for the pentest.
-
#endpoints ⇒ AWSCDK::IResolvable, ...
readonly
List of endpoints to test.
-
#integrated_repositories ⇒ AWSCDK::IResolvable, ...
readonly
List of repositories connected via provider integrations.
-
#source_code ⇒ AWSCDK::IResolvable, ...
readonly
List of source code repositories to analyze.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(actors: nil, documents: nil, endpoints: nil, integrated_repositories: nil, source_code: nil) ⇒ AssetsProperty
constructor
A new instance of AssetsProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(actors: nil, documents: nil, endpoints: nil, integrated_repositories: nil, source_code: nil) ⇒ AssetsProperty
Returns a new instance of AssetsProperty.
691 692 693 694 695 696 697 698 699 700 701 702 |
# File 'security_agent/cfn_pentest.rb', line 691 def initialize(actors: nil, documents: nil, endpoints: nil, integrated_repositories: nil, source_code: nil) @actors = actors Jsii::Type.check_type(@actors, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5hd3Nfc2VjdXJpdHlhZ2VudC5DZm5QZW50ZXN0LkFjdG9yUHJvcGVydHkifV19fSwia2luZCI6ImFycmF5In19XX19")), "actors") unless @actors.nil? @documents = documents Jsii::Type.check_type(@documents, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5hd3Nfc2VjdXJpdHlhZ2VudC5DZm5QZW50ZXN0LkRvY3VtZW50SW5mb1Byb3BlcnR5In1dfX0sImtpbmQiOiJhcnJheSJ9fV19fQ==")), "documents") unless @documents.nil? @endpoints = endpoints Jsii::Type.check_type(@endpoints, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5hd3Nfc2VjdXJpdHlhZ2VudC5DZm5QZW50ZXN0LkVuZHBvaW50UHJvcGVydHkifV19fSwia2luZCI6ImFycmF5In19XX19")), "endpoints") unless @endpoints.nil? @integrated_repositories = integrated_repositories Jsii::Type.check_type(@integrated_repositories, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5hd3Nfc2VjdXJpdHlhZ2VudC5DZm5QZW50ZXN0LkludGVncmF0ZWRSZXBvc2l0b3J5UHJvcGVydHkifV19fSwia2luZCI6ImFycmF5In19XX19")), "integratedRepositories") unless @integrated_repositories.nil? @source_code = source_code Jsii::Type.check_type(@source_code, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5hd3Nfc2VjdXJpdHlhZ2VudC5DZm5QZW50ZXN0LlNvdXJjZUNvZGVSZXBvc2l0b3J5UHJvcGVydHkifV19fSwia2luZCI6ImFycmF5In19XX19")), "sourceCode") unless @source_code.nil? end |
Instance Attribute Details
#actors ⇒ AWSCDK::IResolvable, ... (readonly)
List of actors used during testing.
708 709 710 |
# File 'security_agent/cfn_pentest.rb', line 708 def actors @actors end |
#documents ⇒ AWSCDK::IResolvable, ... (readonly)
List of documents providing additional context for the pentest.
713 714 715 |
# File 'security_agent/cfn_pentest.rb', line 713 def documents @documents end |
#endpoints ⇒ AWSCDK::IResolvable, ... (readonly)
List of endpoints to test.
718 719 720 |
# File 'security_agent/cfn_pentest.rb', line 718 def endpoints @endpoints end |
#integrated_repositories ⇒ AWSCDK::IResolvable, ... (readonly)
List of repositories connected via provider integrations.
723 724 725 |
# File 'security_agent/cfn_pentest.rb', line 723 def integrated_repositories @integrated_repositories end |
#source_code ⇒ AWSCDK::IResolvable, ... (readonly)
List of source code repositories to analyze.
728 729 730 |
# File 'security_agent/cfn_pentest.rb', line 728 def source_code @source_code end |
Class Method Details
.jsii_properties ⇒ Object
730 731 732 733 734 735 736 737 738 |
# File 'security_agent/cfn_pentest.rb', line 730 def self.jsii_properties { :actors => "actors", :documents => "documents", :endpoints => "endpoints", :integrated_repositories => "integratedRepositories", :source_code => "sourceCode", } end |
Instance Method Details
#to_jsii ⇒ Object
740 741 742 743 744 745 746 747 748 749 750 |
# File 'security_agent/cfn_pentest.rb', line 740 def to_jsii result = {} result.merge!({ "actors" => @actors, "documents" => @documents, "endpoints" => @endpoints, "integratedRepositories" => @integrated_repositories, "sourceCode" => @source_code, }) result.compact end |