Class: AWSCDK::RDS::CfnDBCluster::DBClusterRoleProperty

Inherits:
Jsii::Struct
  • Object
show all
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

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 AWS Identity and Access Management (IAM) role.



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_nameString? (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_arnString (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_propertiesObject



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_jsiiObject



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