Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs(iotevents-alpha): fix typos #32912

Merged
merged 7 commits into from
Jan 16, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions packages/@aws-cdk/aws-iotevents-alpha/lib/state.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ interface TransitionEvent {
readonly actions?: IAction[];

/**
* The next state to transit to. When the resuld of condition expression is `true`, the state is transited.
* The next state to transit to. When the result of condition expression is `true`, the state is transited.
*/
readonly nextState: State;
}
Expand Down Expand Up @@ -127,7 +127,7 @@ export class State {
}

/**
* Collect states in dependency gragh that constructed by state transitions,
* Collect states in dependency graph that constructed by state transitions,
* and return the JSONs of the states.
* This function is called recursively and collect the states.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ test('can set an action to multiple detector models', () => {
}),
});

// THEN creates two detector model resouces and two iam policy resources
// THEN creates two detector model resources and two iam policy resources
Template.fromStack(stack).resourceCountIs('AWS::IoTEvents::DetectorModel', 2);
Template.fromStack(stack).resourceCountIs('AWS::IAM::Policy', 2);

Expand Down Expand Up @@ -469,7 +469,7 @@ test('cannot create without event', () => {
}).toThrow('Detector Model must have at least one Input with a condition');
});

test('cannot create transitions that transit to duprecated target state', () => {
test('cannot create transitions that transit to deprecated target state', () => {
const firstState = new iotevents.State({
stateName: 'firstState',
onEnter: [{
Expand Down
Loading