Closed trivikr closed 4 years ago
This happens because operation putResourcePolicy is not present in smithy models.
putResourcePolicy is now available in smithy models https://github.com/aws/aws-sdk-js-v3/blob/a37795799ef045d68f8122cc7a15b9f803c03ae9/codegen/sdk-codegen/aws-models/schemas.2019-12-02.json#L1973-L2012
The models were updated in https://github.com/aws/aws-sdk-js-v3/pull/1457 and were released in v1.0.0-gamma.7
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs and link to relevant comments in this thread.
Describe the bug Operation putResourcePolicy is missing in client-schemas
SDK version number
Is the issue in the browser/Node.js/ReactNative? N/A
To Reproduce (observed behavior)
Code
```js const AWS = require("aws-sdk"); const { schemas } = require("@aws-sdk/client-schemas"); (async () => { const region = "us-west-2"; const v2Client = new AWS.Schemas({ region }); const v3Client = new schemas({ region }); console.log(v2Client.putResourcePolicy); console.log(v3Client.putResourcePolicy); })(); ```Output
```console [Function (anonymous)] undefined ```Expected behavior The operation
putResourcePolicy
should exist on client-schemasAdditional context This issue was noticed while triaging https://github.com/aws/aws-sdk-js/issues/3249