Class: AWSCDK::AuditManager::CfnAssessment::ScopeProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::AuditManager::CfnAssessment::ScopeProperty
- Defined in:
- audit_manager/cfn_assessment.rb
Overview
The Scope property type specifies the wrapper that contains the AWS accounts and services that are in scope for the assessment.
Instance Attribute Summary collapse
-
#aws_accounts ⇒ AWSCDK::IResolvable, ...
readonly
The AWS accounts that are included in the scope of the assessment.
-
#aws_services ⇒ AWSCDK::IResolvable, ...
readonly
The AWS services that are included in the scope of the assessment.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(aws_accounts: nil, aws_services: nil) ⇒ ScopeProperty
constructor
A new instance of ScopeProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(aws_accounts: nil, aws_services: nil) ⇒ ScopeProperty
Returns a new instance of ScopeProperty.
1005 1006 1007 1008 1009 1010 |
# File 'audit_manager/cfn_assessment.rb', line 1005 def initialize(aws_accounts: nil, aws_services: nil) @aws_accounts = aws_accounts Jsii::Type.check_type(@aws_accounts, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfYXVkaXRtYW5hZ2VyLkNmbkFzc2Vzc21lbnQuQVdTQWNjb3VudFByb3BlcnR5In1dfX0sImtpbmQiOiJhcnJheSJ9fV19fQ==")), "awsAccounts") unless @aws_accounts.nil? @aws_services = aws_services Jsii::Type.check_type(@aws_services, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfYXVkaXRtYW5hZ2VyLkNmbkFzc2Vzc21lbnQuQVdTU2VydmljZVByb3BlcnR5In1dfX0sImtpbmQiOiJhcnJheSJ9fV19fQ==")), "awsServices") unless @aws_services.nil? end |
Instance Attribute Details
#aws_accounts ⇒ AWSCDK::IResolvable, ... (readonly)
The AWS accounts that are included in the scope of the assessment.
1016 1017 1018 |
# File 'audit_manager/cfn_assessment.rb', line 1016 def aws_accounts @aws_accounts end |
#aws_services ⇒ AWSCDK::IResolvable, ... (readonly)
The AWS services that are included in the scope of the assessment.
This API parameter is no longer supported. If you use this parameter to specify one or more AWS services , Audit Manager ignores this input. Instead, the value for
aws_serviceswill show as empty.
1023 1024 1025 |
# File 'audit_manager/cfn_assessment.rb', line 1023 def aws_services @aws_services end |
Class Method Details
.jsii_properties ⇒ Object
1025 1026 1027 1028 1029 1030 |
# File 'audit_manager/cfn_assessment.rb', line 1025 def self.jsii_properties { :aws_accounts => "awsAccounts", :aws_services => "awsServices", } end |
Instance Method Details
#to_jsii ⇒ Object
1032 1033 1034 1035 1036 1037 1038 1039 |
# File 'audit_manager/cfn_assessment.rb', line 1032 def to_jsii result = {} result.merge!({ "awsAccounts" => @aws_accounts, "awsServices" => @aws_services, }) result.compact end |