Skip to content

GetParameters

Source: src/AWS/SSM/GetParameters.ts

Runtime binding for ssm:GetParameters.

Bind this operation to one or more Parameters inside a function runtime to get a callable that fetches all of them in a single API call. The binding grants ssm:GetParameters on the exact parameter ARNs and kms:Decrypt on the encryption keys of any SecureString parameters.

const getParameters = yield* SSM.GetParameters(dbUrl, apiKey);
const result = yield* getParameters({ WithDecryption: true });
for (const parameter of result.Parameters ?? []) {
yield* Effect.log(`${parameter.Name} = ${parameter.Value}`);
}