Class: AWSCDK::SecurityAgent::CfnAgentSpaceProps
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::SecurityAgent::CfnAgentSpaceProps
- Defined in:
- security_agent/cfn_agent_space_props.rb
Overview
Properties for defining a CfnAgentSpace.
Instance Attribute Summary collapse
-
#aws_resources ⇒ AWSCDK::IResolvable, ...
readonly
AWS resource configuration.
-
#code_review_settings ⇒ AWSCDK::IResolvable, ...
readonly
Details of code review settings.
-
#description ⇒ String?
readonly
Description of the agent space.
-
#integrated_resources ⇒ AWSCDK::IResolvable, ...
readonly
Integrated Resources configuration.
-
#kms_key_id ⇒ String?
readonly
Identifier of the KMS key used to encrypt data.
-
#name ⇒ String
readonly
Name of the agent space.
-
#tags ⇒ Array<AWSCDK::CfnTag>?
readonly
Tags for the agent space.
-
#target_domain_ids ⇒ Array<String>?
readonly
List of target domain identifiers registered with the agent space.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(name:, aws_resources: nil, code_review_settings: nil, description: nil, integrated_resources: nil, kms_key_id: nil, tags: nil, target_domain_ids: nil) ⇒ CfnAgentSpaceProps
constructor
A new instance of CfnAgentSpaceProps.
- #to_jsii ⇒ Object
Constructor Details
#initialize(name:, aws_resources: nil, code_review_settings: nil, description: nil, integrated_resources: nil, kms_key_id: nil, tags: nil, target_domain_ids: nil) ⇒ CfnAgentSpaceProps
Returns a new instance of CfnAgentSpaceProps.
17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 |
# File 'security_agent/cfn_agent_space_props.rb', line 17 def initialize(name:, aws_resources: nil, code_review_settings: nil, description: nil, integrated_resources: nil, kms_key_id: nil, tags: nil, target_domain_ids: nil) @name = name Jsii::Type.check_type(@name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "name") @aws_resources = aws_resources.is_a?(Hash) ? ::AWSCDK::SecurityAgent::CfnAgentSpace::AWSResourcesProperty.new(**aws_resources.transform_keys(&:to_sym)) : aws_resources Jsii::Type.check_type(@aws_resources, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19zZWN1cml0eWFnZW50LkNmbkFnZW50U3BhY2UuQVdTUmVzb3VyY2VzUHJvcGVydHkifV19fQ==")), "awsResources") unless @aws_resources.nil? @code_review_settings = code_review_settings.is_a?(Hash) ? ::AWSCDK::SecurityAgent::CfnAgentSpace::CodeReviewSettingsProperty.new(**code_review_settings.transform_keys(&:to_sym)) : code_review_settings Jsii::Type.check_type(@code_review_settings, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19zZWN1cml0eWFnZW50LkNmbkFnZW50U3BhY2UuQ29kZVJldmlld1NldHRpbmdzUHJvcGVydHkifV19fQ==")), "codeReviewSettings") unless @code_review_settings.nil? @description = description Jsii::Type.check_type(@description, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "description") unless @description.nil? @integrated_resources = integrated_resources Jsii::Type.check_type(@integrated_resources, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5hd3Nfc2VjdXJpdHlhZ2VudC5DZm5BZ2VudFNwYWNlLkludGVncmF0ZWRSZXNvdXJjZVByb3BlcnR5In1dfX0sImtpbmQiOiJhcnJheSJ9fV19fQ==")), "integratedResources") unless @integrated_resources.nil? @kms_key_id = kms_key_id Jsii::Type.check_type(@kms_key_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "kmsKeyId") unless @kms_key_id.nil? @tags = .is_a?(Array) ? .map { |jsii_v0| jsii_v0.is_a?(Hash) ? ::AWSCDK::CfnTag.new(**jsii_v0.transform_keys(&:to_sym)) : jsii_v0 } : Jsii::Type.check_type(@tags, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7ImZxbiI6ImF3cy1jZGstbGliLkNmblRhZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "tags") unless @tags.nil? @target_domain_ids = target_domain_ids Jsii::Type.check_type(@target_domain_ids, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "targetDomainIds") unless @target_domain_ids.nil? end |
Instance Attribute Details
#aws_resources ⇒ AWSCDK::IResolvable, ... (readonly)
AWS resource configuration.
45 46 47 |
# File 'security_agent/cfn_agent_space_props.rb', line 45 def aws_resources @aws_resources end |
#code_review_settings ⇒ AWSCDK::IResolvable, ... (readonly)
Details of code review settings.
50 51 52 |
# File 'security_agent/cfn_agent_space_props.rb', line 50 def code_review_settings @code_review_settings end |
#description ⇒ String? (readonly)
Description of the agent space.
55 56 57 |
# File 'security_agent/cfn_agent_space_props.rb', line 55 def description @description end |
#integrated_resources ⇒ AWSCDK::IResolvable, ... (readonly)
Integrated Resources configuration.
60 61 62 |
# File 'security_agent/cfn_agent_space_props.rb', line 60 def integrated_resources @integrated_resources end |
#kms_key_id ⇒ String? (readonly)
Identifier of the KMS key used to encrypt data.
Can be a key ID, key ARN, alias name, or alias ARN. If not specified, an AWS managed key is used.
67 68 69 |
# File 'security_agent/cfn_agent_space_props.rb', line 67 def kms_key_id @kms_key_id end |
#name ⇒ String (readonly)
Name of the agent space.
40 41 42 |
# File 'security_agent/cfn_agent_space_props.rb', line 40 def name @name end |
#tags ⇒ Array<AWSCDK::CfnTag>? (readonly)
Tags for the agent space.
72 73 74 |
# File 'security_agent/cfn_agent_space_props.rb', line 72 def @tags end |
#target_domain_ids ⇒ Array<String>? (readonly)
List of target domain identifiers registered with the agent space.
77 78 79 |
# File 'security_agent/cfn_agent_space_props.rb', line 77 def target_domain_ids @target_domain_ids end |
Class Method Details
.jsii_properties ⇒ Object
79 80 81 82 83 84 85 86 87 88 89 90 |
# File 'security_agent/cfn_agent_space_props.rb', line 79 def self.jsii_properties { :name => "name", :aws_resources => "awsResources", :code_review_settings => "codeReviewSettings", :description => "description", :integrated_resources => "integratedResources", :kms_key_id => "kmsKeyId", :tags => "tags", :target_domain_ids => "targetDomainIds", } end |
Instance Method Details
#to_jsii ⇒ Object
92 93 94 95 96 97 98 99 100 101 102 103 104 105 |
# File 'security_agent/cfn_agent_space_props.rb', line 92 def to_jsii result = {} result.merge!({ "name" => @name, "awsResources" => @aws_resources, "codeReviewSettings" => @code_review_settings, "description" => @description, "integratedResources" => @integrated_resources, "kmsKeyId" => @kms_key_id, "tags" => @tags, "targetDomainIds" => @target_domain_ids, }) result.compact end |