Class: AWSCDK::RDS::CfnDBCluster::DBClusterRoleProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::RDS::CfnDBCluster::DBClusterRoleProperty
- Defined in:
- rds/cfn_db_cluster.rb
Overview
Describes an AWS 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 AWS 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.
1425 1426 1427 1428 1429 1430 |
# File 'rds/cfn_db_cluster.rb', line 1425 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 AWS Identity and Access Management (IAM) role.
IAM roles that are associated with a DB cluster grant permission for the DB cluster to access other AWS services on your behalf. For the list of supported feature names, see the SupportedFeatureNames description in DBEngineVersion in the Amazon RDS API Reference .
1443 1444 1445 |
# File 'rds/cfn_db_cluster.rb', line 1443 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.
1436 1437 1438 |
# File 'rds/cfn_db_cluster.rb', line 1436 def role_arn @role_arn end |
Class Method Details
.jsii_properties ⇒ Object
1445 1446 1447 1448 1449 1450 |
# File 'rds/cfn_db_cluster.rb', line 1445 def self.jsii_properties { :role_arn => "roleArn", :feature_name => "featureName", } end |
Instance Method Details
#to_jsii ⇒ Object
1452 1453 1454 1455 1456 1457 1458 1459 |
# File 'rds/cfn_db_cluster.rb', line 1452 def to_jsii result = {} result.merge!({ "roleArn" => @role_arn, "featureName" => @feature_name, }) result.compact end |