Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
fix(custom-resources): cannot set logging for state machine generated in CompleteHandler #27310
fix(custom-resources): cannot set logging for state machine generated in CompleteHandler #27310
Changes from 5 commits
c7d5edf
5fddc2b
f20e343
d798bf7
256b91b
1fe40cc
ce58bdc
1b4ec5f
7da8364
6c941e9
a14775f
9f7c0f8
e8dcfd7
1755f07
c60d5f4
3b6da20
bbe0fe4
b9c5fda
bd9f44b
d674127
1b00eb2
9b0e7e4
5f96f54
beb5d60
1c7e988
83039d8
09e05dc
d1a6cc6
58b08d3
1a4a7e5
69dde5d
8be78f3
a25cb4b
18f72fc
767dd40
5a68fa5
aca913d
67114ab
23e23c0
893dff2
48dbb49
6932cb4
3ebccbd
b80f7c7
494e381
40be425
b8a495b
d2c9211
63b60f3
74e2d90
a6311b5
b27e221
e10707b
30136be
313e3d9
b0be805
18d4f33
e2de141
676f877
cf76b87
dfa7771
7163c86
ca92b3c
0e7aeb9
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Declaring a separate method for all of this is cleaner, something like:
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, I will change like this.
However I will use
if (disableLogging) return undefined;
instead ofif (!logOptions || disableLogging) return undefined;
. Because it needs to create logs and policies by default even iflogOptions
is not specified, according to this issue.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
And I think a return value type of the method cannot be
CfnStateMachine.LoggingConfigurationProperty
.Because
AWS::StepFunctions::StateMachine
is created by not L1 Construct forStateMachine
butCfnResource
.So I may return by not specifying type for now.
Or how about using
CfnStateMachine
instead ofCfnResource
as follows?Please see the commit.
3ebccbd#diff-ba99cb0b24f721e7bd6405b5f84ba44cd64f95932fa1f0974d7676855680a25bR126-R129
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think that the current implementation should be fine.
Thanks for the clarification and the adjustment on the
if
condition.