EmrSettingsProperty Struct
Configuration parameters specifying IAM roles assumed by SageMaker's execution role and cluster instances.
| Source | |
|---|---|
| Type last changed |
Example
ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_sagemaker as sagemaker } from 'aws-cdk-lib';
const emrSettingsProperty: sagemaker.CfnUserProfile.EmrSettingsProperty = {
assumableRoleArns: ['assumableRoleArns'],
executionRoleArns: ['executionRoleArns'],
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_sagemaker as sagemaker
emr_settings_property = sagemaker.CfnUserProfile.EmrSettingsProperty(
assumable_role_arns=["assumableRoleArns"],
execution_role_arns=["executionRoleArns"]
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.sagemaker.*;
EmrSettingsProperty emrSettingsProperty = EmrSettingsProperty.builder()
.assumableRoleArns(List.of("assumableRoleArns"))
.executionRoleArns(List.of("executionRoleArns"))
.build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Sagemaker;
var emrSettingsProperty = new EmrSettingsProperty {
AssumableRoleArns = new [] { "assumableRoleArns" },
ExecutionRoleArns = new [] { "executionRoleArns" }
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"
emrSettingsProperty := &EmrSettingsProperty{
AssumableRoleArns: []*string{
jsii.String("assumableRoleArns"),
},
ExecutionRoleArns: []*string{
jsii.String("executionRoleArns"),
},
}
Properties
assumableRoleArnsoptionalstring[]assumable_role_arnsoptionaltyping.List[str]assumableRoleArnsoptionalList<String>AssumableRoleArnsoptionalstring[]AssumableRoleArnsoptional*[]*string #An array of Amazon Resource Names (ARNs) of the IAM roles that the execution role of SageMaker can assume.
executionRoleArnsoptionalstring[]execution_role_arnsoptionaltyping.List[str]executionRoleArnsoptionalList<String>ExecutionRoleArnsoptionalstring[]ExecutionRoleArnsoptional*[]*string #An array of ARNs of IAM roles used by EMR cluster instances or job execution environments.