Class CfnDBInstance.DBInstanceRoleProperty.Builder
java.lang.Object
software.amazon.awscdk.services.rds.CfnDBInstance.DBInstanceRoleProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnDBInstance.DBInstanceRoleProperty>
- Enclosing interface:
CfnDBInstance.DBInstanceRoleProperty
@Stability(Stable)
public static final class CfnDBInstance.DBInstanceRoleProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnDBInstance.DBInstanceRoleProperty>
A builder for
CfnDBInstance.DBInstanceRoleProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.featureName
(String featureName) Sets the value ofCfnDBInstance.DBInstanceRoleProperty.getFeatureName()
Sets the value ofCfnDBInstance.DBInstanceRoleProperty.getRoleArn()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
featureName
@Stability(Stable) public CfnDBInstance.DBInstanceRoleProperty.Builder featureName(String featureName) Sets the value ofCfnDBInstance.DBInstanceRoleProperty.getFeatureName()
- Parameters:
featureName
- The name of the feature associated with the AWS Identity and Access Management (IAM) role. This parameter is required. 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 theSupportedFeatureNames
description in DBEngineVersion in the Amazon RDS API Reference .- Returns:
this
-
roleArn
Sets the value ofCfnDBInstance.DBInstanceRoleProperty.getRoleArn()
- Parameters:
roleArn
- The Amazon Resource Name (ARN) of the IAM role that is associated with the DB instance. This parameter is required.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnDBInstance.DBInstanceRoleProperty>
- Returns:
- a new instance of
CfnDBInstance.DBInstanceRoleProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-