Skip to content

Commit

Permalink
fix the example
Browse files Browse the repository at this point in the history
  • Loading branch information
lmouhib committed Oct 20, 2023
1 parent 9ed9fb5 commit 5ec8a26
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
10 changes: 5 additions & 5 deletions framework/API.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ export interface SparkEmrContainersRuntimeProps {
* import { ManagedPolicy, PolicyDocument, PolicyStatement } from 'aws-cdk-lib/aws-iam';
*import { KubectlV27Layer } from '@aws-cdk/lambda-layer-kubectl-v27';
*
* const kubectlLayer = new KubectlV27Layer(emrEksClusterStack, 'kubectlLayer');
* const kubectlLayer = new KubectlV27Layer(this, 'kubectlLayer');
*
* const emrEks: dsf.SparkEmrContainersRuntime = dsf.SparkEmrContainersRuntime.getOrCreate(this, {
* eksAdminRoleArn: 'arn:aws:iam::123445678901:role/eks-admin',
Expand Down Expand Up @@ -171,12 +171,12 @@ export interface SparkEmrContainersRuntimeProps {
* const role = emrEks.createExecutionRole(this, 'execRole', policy, 'data-platform', 'execRole');
*
* // EMR on EKS virtual cluster ID
* new cdk.CfnOutput(this, 'VirtualClusterId', { value : virtualCluster.attrId });
* new cdk.CfnOutput(this, 'VirtualClusterId', { value : virtualCluster.attrId! });
* // Job config for each nodegroup
* new cdk.CfnOutput(this, "CriticalConfig", { value : emrEks.criticalDefaultConfig });
* new cdk.CfnOutput(this, "SharedConfig", { value : emrEks.sharedDefaultConfig});
* new cdk.CfnOutput(this, "CriticalConfig", { value : emrEks.criticalDefaultConfig! });
* new cdk.CfnOutput(this, "SharedConfig", { value : emrEks.sharedDefaultConfig!});
* // Execution role arn
* new cdk.CfnOutput(this,'ExecRoleArn', { value : role.roleArn});
* new cdk.CfnOutput(this,'ExecRoleArn', { value : role.roleArn!});
*
*/
export class SparkEmrContainersRuntime extends TrackedConstruct {
Expand Down

0 comments on commit 5ec8a26

Please sign in to comment.