Class: AWSCDK::SecurityHub::CfnConnectorV2Props

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
security_hub/cfn_connector_v2_props.rb

Overview

Properties for defining a CfnConnectorV2.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name:, provider:, description: nil, kms_key_arn: nil, tags: nil) ⇒ CfnConnectorV2Props

Returns a new instance of CfnConnectorV2Props.

Parameters:

  • name (String)

    The unique name of the connectorV2.

  • provider (AWSCDK::IResolvable, AWSCDK::SecurityHub::CfnConnectorV2::ProviderProperty)

    The third-party provider detail for a service configuration.

  • description (String, nil) (defaults to: nil)

    The description of the connectorV2.

  • kms_key_arn (String, nil) (defaults to: nil)

    The Amazon Resource Name (ARN) of KMS key used to encrypt secrets for the connectorV2.

  • tags (Hash{String => String}, nil) (defaults to: nil)

    The tags to add to the connectorV2 when you create.



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 = tags
  Jsii::Type.check_type(@tags, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoibWFwIn19")), "tags") unless @tags.nil?
end

Instance Attribute Details

#descriptionString? (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_arnString? (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

#nameString (readonly)

The unique name of the connectorV2.



31
32
33
# File 'security_hub/cfn_connector_v2_props.rb', line 31

def name
  @name
end

#providerAWSCDK::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

#tagsHash{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
  @tags
end

Class Method Details

.jsii_propertiesObject



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_jsiiObject



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