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