import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { ListSourceAssociationsRequest, ListSourceAssociationsResponse } from "../models/models_0"; /** * @public */ export type { __MetadataBearer }; /** * @public * * The input for {@link ListSourceAssociationsCommand}. */ export interface ListSourceAssociationsCommandInput extends ListSourceAssociationsRequest { } /** * @public * * The output of {@link ListSourceAssociationsCommand}. */ export interface ListSourceAssociationsCommandOutput extends ListSourceAssociationsResponse, __MetadataBearer { } declare const ListSourceAssociationsCommand_base: { new (input: ListSourceAssociationsCommandInput): import("@smithy/core/client").CommandImpl; new (...[input]: [] | [ListSourceAssociationsCommandInput]): import("@smithy/core/client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions; }; /** *

Lists source associations for resource shares. Source associations control which sources can be used with service principals in resource shares. This operation provides visibility into source associations for resource share owners.

*

You can filter the results by resource share Amazon Resource Name (ARN), source ID, source type, or association status. We recommend using pagination to ensure that the operation returns quickly and successfully.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { RAMClient, ListSourceAssociationsCommand } from "@aws-sdk/client-ram"; // ES Modules import * // const { RAMClient, ListSourceAssociationsCommand } = require("@aws-sdk/client-ram"); // CommonJS import * // import type { RAMClientConfig } from "@aws-sdk/client-ram"; * const config = {}; // type is RAMClientConfig * const client = new RAMClient(config); * const input = { // ListSourceAssociationsRequest * resourceShareArns: [ // ResourceShareArnList * "STRING_VALUE", * ], * sourceId: "STRING_VALUE", * sourceType: "STRING_VALUE", * associationStatus: "ASSOCIATING" || "ASSOCIATED" || "FAILED" || "DISASSOCIATING" || "DISASSOCIATED" || "SUSPENDED" || "SUSPENDING" || "RESTORING", * nextToken: "STRING_VALUE", * maxResults: Number("int"), * }; * const command = new ListSourceAssociationsCommand(input); * const response = await client.send(command); * // { // ListSourceAssociationsResponse * // sourceAssociations: [ // AssociatedSourceList * // { // AssociatedSource * // resourceShareArn: "STRING_VALUE", * // sourceId: "STRING_VALUE", * // sourceType: "STRING_VALUE", * // status: "STRING_VALUE", * // lastUpdatedTime: new Date("TIMESTAMP"), * // creationTime: new Date("TIMESTAMP"), * // statusMessage: "STRING_VALUE", * // }, * // ], * // nextToken: "STRING_VALUE", * // }; * * ``` * * @param ListSourceAssociationsCommandInput - {@link ListSourceAssociationsCommandInput} * @returns {@link ListSourceAssociationsCommandOutput} * @see {@link ListSourceAssociationsCommandInput} for command's `input` shape. * @see {@link ListSourceAssociationsCommandOutput} for command's `response` shape. * @see {@link RAMClientResolvedConfig | config} for RAMClient's `config` shape. * * @throws {@link InvalidNextTokenException} (client fault) *

The operation failed because the specified value for NextToken isn't * valid. You must specify a value you received in the NextToken response of a * previous call to this operation.

* * @throws {@link InvalidParameterException} (client fault) *

The operation failed because a parameter you specified isn't valid.

* * @throws {@link MalformedArnException} (client fault) *

The operation failed because the specified Amazon Resource Name (ARN) has a format that isn't * valid.

* * @throws {@link ServerInternalException} (server fault) *

The operation failed because the service could not respond to the request due to an * internal problem. Try again later.

* * @throws {@link ServiceUnavailableException} (server fault) *

The operation failed because the service isn't available. Try again later.

* * @throws {@link UnknownResourceException} (client fault) *

The operation failed because a specified resource couldn't be found.

* * @throws {@link RAMServiceException} *

Base exception class for all service exceptions from RAM service.

* * * @public */ export declare class ListSourceAssociationsCommand extends ListSourceAssociationsCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: ListSourceAssociationsRequest; output: ListSourceAssociationsResponse; }; sdk: { input: ListSourceAssociationsCommandInput; output: ListSourceAssociationsCommandOutput; }; }; }