Class: AWSCDK::RDS::CfnDBInstance::DBInstanceRoleProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
rds/cfn_db_instance.rb

Overview

Information about an AWS Identity and Access Management (IAM) role that is associated with a DB instance.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(feature_name:, role_arn:) ⇒ DBInstanceRoleProperty

Returns a new instance of DBInstanceRoleProperty.

Parameters:

  • feature_name (String)

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

  • role_arn (String)

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



1994
1995
1996
1997
1998
1999
# File 'rds/cfn_db_instance.rb', line 1994

def initialize(feature_name:, role_arn:)
  @feature_name = feature_name
  Jsii::Type.check_type(@feature_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "featureName")
  @role_arn = role_arn
  Jsii::Type.check_type(@role_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "roleArn")
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 instance grant permission for the DB instance 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 .



2007
2008
2009
# File 'rds/cfn_db_instance.rb', line 2007

def feature_name
  @feature_name
end

#role_arnString (readonly)

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



2012
2013
2014
# File 'rds/cfn_db_instance.rb', line 2012

def role_arn
  @role_arn
end

Class Method Details

.jsii_propertiesObject



2014
2015
2016
2017
2018
2019
# File 'rds/cfn_db_instance.rb', line 2014

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

Instance Method Details

#to_jsiiObject



2021
2022
2023
2024
2025
2026
2027
2028
# File 'rds/cfn_db_instance.rb', line 2021

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