You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Unable to disable key rotation on media package channel endpoint even though the KeyRotationIntervalSeconds is set to zero on types.CmafEncryption. Therefore , the speke 2 is unable to config also .
Expected behavior
Expected that the mediapackage channel endpoint with disabled key rotation and speke 2 enable
Current behavior
Without the speke 2 enable setting , the Key rotation interval seconds is the default value (60 sec) even though the KeyRotationIntervalSeconds be set to zero.
With the speke 2 setting , CreateOriginEndpoint method would response the following error
operation error MediaPackage: CreateOriginEndpoint, https response error StatusCode: 422, RequestID: xxxxxxxxxxxx, UnprocessableEntityException: cmafPackage.encryption.keyRotationIntervalSeconds must be 0 to support speke v2 encryption contracts
Steps to Reproduce
1 . call CreateOriginEndpoint method from mediapackage client
2. set the CmafPackageCreateOrUpdateParameters with zero KeyRotationIntervalSeconds and speke 2 enable
Thanks for reaching out @ymyuen I think this issue is similar to reported service/mediaconvert, service/batch, and service/ec2 issues with regard to API members being modeled as unboxed (aka value) instead of boxed (aka pointer) types.
We'll need to reach out to the service team to get clarity on the behavior/modeling of this member.
This is now solved. Like @jasdel mentioned this was an issue with nullability where the SDK did not know how to serialize 0 values without proper modeling.
Examining the raw request shows that the KeyRotationIntervalSeconds is getting serialized with 0:
Comments on closed issues are hard for our team to see.
If you need more assistance, please either tag a team member or open a new issue that references this one.
If you wish to keep having a conversation with other community members under this issue feel free to do so.
Documentation
Describe the bug
Unable to disable key rotation on media package channel endpoint even though the KeyRotationIntervalSeconds is set to zero on types.CmafEncryption. Therefore , the speke 2 is unable to config also .
Expected behavior
Expected that the mediapackage channel endpoint with disabled key rotation and speke 2 enable
Current behavior
Without the speke 2 enable setting , the Key rotation interval seconds is the default value (60 sec) even though the KeyRotationIntervalSeconds be set to zero.
With the speke 2 setting , CreateOriginEndpoint method would response the following error
Steps to Reproduce
1 . call CreateOriginEndpoint method from mediapackage client
2. set the CmafPackageCreateOrUpdateParameters with zero KeyRotationIntervalSeconds and speke 2 enable
3 . CreateOriginEndpoint method would response the following error
Possible Solution
No response
AWS Go SDK version used
v1.16.1
Compiler and Version used
go version go1.17.2 darwin/arm64
Operating System and version
mac os monterey 12.0
The text was updated successfully, but these errors were encountered: