Class: AWSCDK::SecurityHub::CfnConnectorV2Props
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::SecurityHub::CfnConnectorV2Props
- Defined in:
- security_hub/cfn_connector_v2_props.rb
Overview
Properties for defining a CfnConnectorV2.
Instance Attribute Summary collapse
-
#description ⇒ String?
readonly
The description of the connectorV2.
-
#kms_key_arn ⇒ String?
readonly
The Amazon Resource Name (ARN) of KMS key used to encrypt secrets for the connectorV2.
-
#name ⇒ String
readonly
The unique name of the connectorV2.
-
#provider ⇒ AWSCDK::IResolvable, AWSCDK::SecurityHub::CfnConnectorV2::ProviderProperty
readonly
The third-party provider detail for a service configuration.
-
#tags ⇒ Hash{String => String}?
readonly
The tags to add to the connectorV2 when you create.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(name:, provider:, description: nil, kms_key_arn: nil, tags: nil) ⇒ CfnConnectorV2Props
constructor
A new instance of CfnConnectorV2Props.
- #to_jsii ⇒ Object
Constructor Details
#initialize(name:, provider:, description: nil, kms_key_arn: nil, tags: nil) ⇒ CfnConnectorV2Props
Returns a new instance of CfnConnectorV2Props.
14 15 16 17 18 19 20 21 22 23 24 25 |
# File 'security_hub/cfn_connector_v2_props.rb', line 14 def initialize(name:, provider:, description: nil, kms_key_arn: nil, tags: nil) @name = name Jsii::Type.check_type(@name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "name") @provider = provider.is_a?(Hash) ? ::AWSCDK::SecurityHub::CfnConnectorV2::ProviderProperty.new(**provider.transform_keys(&:to_sym)) : provider Jsii::Type.check_type(@provider, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19zZWN1cml0eWh1Yi5DZm5Db25uZWN0b3JWMi5Qcm92aWRlclByb3BlcnR5In1dfX0=")), "provider") @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? @tags = Jsii::Type.check_type(@tags, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoibWFwIn19")), "tags") unless @tags.nil? end |
Instance Attribute Details
#description ⇒ String? (readonly)
The description of the connectorV2.
41 42 43 |
# File 'security_hub/cfn_connector_v2_props.rb', line 41 def description @description end |
#kms_key_arn ⇒ String? (readonly)
The Amazon Resource Name (ARN) of KMS key used to encrypt secrets for the connectorV2.
46 47 48 |
# File 'security_hub/cfn_connector_v2_props.rb', line 46 def kms_key_arn @kms_key_arn end |
#name ⇒ String (readonly)
The unique name of the connectorV2.
31 32 33 |
# File 'security_hub/cfn_connector_v2_props.rb', line 31 def name @name end |
#provider ⇒ AWSCDK::IResolvable, AWSCDK::SecurityHub::CfnConnectorV2::ProviderProperty (readonly)
The third-party provider detail for a service configuration.
36 37 38 |
# File 'security_hub/cfn_connector_v2_props.rb', line 36 def provider @provider end |
#tags ⇒ Hash{String => String}? (readonly)
The tags to add to the connectorV2 when you create.
51 52 53 |
# File 'security_hub/cfn_connector_v2_props.rb', line 51 def @tags end |
Class Method Details
.jsii_properties ⇒ Object
53 54 55 56 57 58 59 60 61 |
# File 'security_hub/cfn_connector_v2_props.rb', line 53 def self.jsii_properties { :name => "name", :provider => "provider", :description => "description", :kms_key_arn => "kmsKeyArn", :tags => "tags", } end |
Instance Method Details
#to_jsii ⇒ Object
63 64 65 66 67 68 69 70 71 72 73 |
# File 'security_hub/cfn_connector_v2_props.rb', line 63 def to_jsii result = {} result.merge!({ "name" => @name, "provider" => @provider, "description" => @description, "kmsKeyArn" => @kms_key_arn, "tags" => @tags, }) result.compact end |