New data source and resource - s3_user#650
Conversation
| if !state.AccessKey.IsNull() && !state.AccessKey.IsUnknown() && strings.TrimSpace(state.AccessKey.ValueString()) != "" { | ||
| keysPresent = true | ||
| } | ||
| if !keysPresent && !state.SecretKey.IsNull() && !state.SecretKey.IsUnknown() && strings.TrimSpace(state.SecretKey.ValueString()) != "" { |
There was a problem hiding this comment.
!keyPresent actually is not needed here. Basically, as long as AccessKey or SecretKey exists, keyPresent is true. You have done the similar thing on line 190 area.
There was a problem hiding this comment.
Thanks for pointing that out, I've modified the conditional statement.
| when creating or modifying a user or when the user keys were last regenerated, after which the user keys expire and are no longer valid. | ||
| Valid format is: 'PnDTnHnMnS|PnW'. For example, P2DT6H3M10S specifies a time period of 2 days, 6 hours, 3 minutes, and 10 seconds. | ||
| If the value specified is '0' seconds, then the keys won't expire. | ||
| It can only be used when the keys regeneration operation is performed. |
There was a problem hiding this comment.
In https://docs.netapp.com/us-en/ontap-restapi/swagger-ui/index.html#/Object-Store/s3_user_create, "when creating or modifying a user or
when the user keys were last regenerated, after which the user keys expire and are no longer valid.
"
Does it mean create/modify/regenerated (one of them) this parameter can be used not limited to regenerated?
Can you verify it manually if the statement is true?
There was a problem hiding this comment.
I tested in postman - key_time_to_live is a valid option for POST call.
I've added changes to the create function and updated the docs for this param too.
chuyich
left a comment
There was a problem hiding this comment.
A couple suggsetion/questions need your clarification.
I've added new changes, please review the same. |
Issue #507 & #508
ACC test result: