0

I am using Node SDK for AWS, I have a question regarding the createLogGroup and createLogStream operations, are these operations idempotent? i.e I can call create multiple times without having to worry about duplication or error.

Has anyone tried this before? Thanks for your help.

aks
  • 8,796
  • 11
  • 50
  • 78

1 Answers1

2

No, they are not idempotent. Calling them again with the same names will cause an error. For instance, if you follow the link through to the underlying CreateLogGroup API reference, you can see one of the possible error responses is:

ResourceAlreadyExistsException

The specified resource already exists.

HTTP Status Code: 400

Community
  • 1
  • 1
James Thorpe
  • 31,411
  • 5
  • 72
  • 93