Class: AWSCDK::DevOpsAgent::CfnAgentSpaceProps
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::DevOpsAgent::CfnAgentSpaceProps
- Defined in:
- dev_ops_agent/cfn_agent_space_props.rb
Overview
Properties for defining a CfnAgentSpace.
Instance Attribute Summary collapse
-
#description ⇒ String?
readonly
The description of the Agent Space.
-
#kms_key_arn ⇒ String?
readonly
The ARN of the KMS key to use for encryption.
-
#locale ⇒ String?
readonly
The locale for the AgentSpace, which determines the language used in agent responses.
-
#name ⇒ String
readonly
The name of the Agent Space.
- #operator_app ⇒ AWSCDK::IResolvable, ... readonly
-
#tags ⇒ Array<AWSCDK::CfnTag>?
readonly
An array of key-value pairs to apply to this resource.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(name:, description: nil, kms_key_arn: nil, locale: nil, operator_app: nil, tags: nil) ⇒ CfnAgentSpaceProps
constructor
A new instance of CfnAgentSpaceProps.
- #to_jsii ⇒ Object
Constructor Details
#initialize(name:, description: nil, kms_key_arn: nil, locale: nil, operator_app: nil, tags: nil) ⇒ CfnAgentSpaceProps
Returns a new instance of CfnAgentSpaceProps.
15 16 17 18 19 20 21 22 23 24 25 26 27 28 |
# File 'dev_ops_agent/cfn_agent_space_props.rb', line 15 def initialize(name:, description: nil, kms_key_arn: nil, locale: nil, operator_app: nil, tags: nil) @name = name Jsii::Type.check_type(@name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "name") @description = description Jsii::Type.check_type(@description, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "description") unless @description.nil? @kms_key_arn = kms_key_arn Jsii::Type.check_type(@kms_key_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "kmsKeyArn") unless @kms_key_arn.nil? @locale = locale Jsii::Type.check_type(@locale, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "locale") unless @locale.nil? @operator_app = operator_app.is_a?(Hash) ? ::AWSCDK::DevOpsAgent::CfnAgentSpace::OperatorAppProperty.new(**operator_app.transform_keys(&:to_sym)) : operator_app Jsii::Type.check_type(@operator_app, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19kZXZvcHNhZ2VudC5DZm5BZ2VudFNwYWNlLk9wZXJhdG9yQXBwUHJvcGVydHkifV19fQ==")), "operatorApp") unless @operator_app.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? end |
Instance Attribute Details
#description ⇒ String? (readonly)
The description of the Agent Space.
39 40 41 |
# File 'dev_ops_agent/cfn_agent_space_props.rb', line 39 def description @description end |
#kms_key_arn ⇒ String? (readonly)
The ARN of the KMS key to use for encryption.
44 45 46 |
# File 'dev_ops_agent/cfn_agent_space_props.rb', line 44 def kms_key_arn @kms_key_arn end |
#locale ⇒ String? (readonly)
The locale for the AgentSpace, which determines the language used in agent responses.
49 50 51 |
# File 'dev_ops_agent/cfn_agent_space_props.rb', line 49 def locale @locale end |
#name ⇒ String (readonly)
The name of the Agent Space.
34 35 36 |
# File 'dev_ops_agent/cfn_agent_space_props.rb', line 34 def name @name end |
#operator_app ⇒ AWSCDK::IResolvable, ... (readonly)
52 53 54 |
# File 'dev_ops_agent/cfn_agent_space_props.rb', line 52 def operator_app @operator_app end |
#tags ⇒ Array<AWSCDK::CfnTag>? (readonly)
An array of key-value pairs to apply to this resource.
57 58 59 |
# File 'dev_ops_agent/cfn_agent_space_props.rb', line 57 def @tags end |
Class Method Details
.jsii_properties ⇒ Object
59 60 61 62 63 64 65 66 67 68 |
# File 'dev_ops_agent/cfn_agent_space_props.rb', line 59 def self.jsii_properties { :name => "name", :description => "description", :kms_key_arn => "kmsKeyArn", :locale => "locale", :operator_app => "operatorApp", :tags => "tags", } end |
Instance Method Details
#to_jsii ⇒ Object
70 71 72 73 74 75 76 77 78 79 80 81 |
# File 'dev_ops_agent/cfn_agent_space_props.rb', line 70 def to_jsii result = {} result.merge!({ "name" => @name, "description" => @description, "kmsKeyArn" => @kms_key_arn, "locale" => @locale, "operatorApp" => @operator_app, "tags" => @tags, }) result.compact end |