Class: AWSCDK::Neptune::CfnDBCluster::DBClusterRoleProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Neptune::CfnDBCluster::DBClusterRoleProperty
- 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
-
#feature_name ⇒ String?
readonly
The name of the feature associated with the Amazon Identity and Access Management (IAM) role.
-
#role_arn ⇒ String
readonly
The Amazon Resource Name (ARN) of the IAM role that is associated with the DB cluster.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(role_arn:, feature_name: nil) ⇒ DBClusterRoleProperty
constructor
A new instance of DBClusterRoleProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(role_arn:, feature_name: nil) ⇒ DBClusterRoleProperty
Returns a new instance of DBClusterRoleProperty.
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_name ⇒ String? (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_arn ⇒ String (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_properties ⇒ Object
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_jsii ⇒ Object
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 |