Class: AWSCDK::Neptune::CfnDBCluster::DBClusterRoleProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
neptune/cfn_db_cluster.rb

Overview

Describes an Amazon Identity and Access Management (IAM) role that is associated with a DB cluster.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(role_arn:, feature_name: nil) ⇒ DBClusterRoleProperty

Returns a new instance of DBClusterRoleProperty.

Parameters:

  • role_arn (String)

    The Amazon Resource Name (ARN) of the IAM role that is associated with the DB cluster.

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

    The name of the feature associated with the Amazon Identity and Access Management (IAM) role.



888
889
890
891
892
893
# File 'neptune/cfn_db_cluster.rb', line 888

def initialize(role_arn:, feature_name: nil)
  @role_arn = role_arn
  Jsii::Type.check_type(@role_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "roleArn")
  @feature_name = feature_name
  Jsii::Type.check_type(@feature_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "featureName") unless @feature_name.nil?
end

Instance Attribute Details

#feature_nameString? (readonly)

The name of the feature associated with the Amazon Identity and Access Management (IAM) role.

For the list of supported feature names, see DescribeDBEngineVersions .



906
907
908
# File 'neptune/cfn_db_cluster.rb', line 906

def feature_name
  @feature_name
end

#role_arnString (readonly)

The Amazon Resource Name (ARN) of the IAM role that is associated with the DB cluster.



899
900
901
# File 'neptune/cfn_db_cluster.rb', line 899

def role_arn
  @role_arn
end

Class Method Details

.jsii_propertiesObject



908
909
910
911
912
913
# File 'neptune/cfn_db_cluster.rb', line 908

def self.jsii_properties
  {
    :role_arn => "roleArn",
    :feature_name => "featureName",
  }
end

Instance Method Details

#to_jsiiObject



915
916
917
918
919
920
921
922
# File 'neptune/cfn_db_cluster.rb', line 915

def to_jsii
  result = {}
  result.merge!({
    "roleArn" => @role_arn,
    "featureName" => @feature_name,
  })
  result.compact
end