@oystehr/sdk
Version:
Oystehr SDK
36 lines (35 loc) • 1.42 kB
TypeScript
import { OystehrClientRequest, SecretDeleteParams, SecretGetParams, SecretGetResponse, SecretListResponse, SecretSetParams, SecretSetResponse } from '../..';
import { SDKResource } from '../../client/client';
import { OystehrConfig } from '../../config';
export declare class Secret extends SDKResource {
#private;
constructor(config: OystehrConfig);
/**
* Get a list of all secrets in the Project.
*
* Access Policy Action: `Zambda:ListAllSecrets`
* Access Policy Resource: `Zambda:Secret`
*/
list(request?: OystehrClientRequest): Promise<SecretListResponse>;
/**
* Create a secret for a project. If the secret is already defined, update it.
*
* Access Policy Action: `Zambda:CreateSecret`
* Access Policy Resource: `Zambda:Secret`
*/
set(params: SecretSetParams, request?: OystehrClientRequest): Promise<SecretSetResponse>;
/**
* Get the secret with the provided name.
*
* Access Policy Action: `Zambda:GetSecret`
* Access Policy Resource: `Zambda:Secret`
*/
get(params: SecretGetParams, request?: OystehrClientRequest): Promise<SecretGetResponse>;
/**
* Delete the secret with the provided name.
*
* Access Policy Action: `Zambda:DeleteSecret`
* Access Policy Resource: `Zambda:Secret`
*/
delete(params: SecretDeleteParams, request?: OystehrClientRequest): Promise<void>;
}