// Lists all Protection objects for the account.
Lists all Protection objects for the account.
// Lists all Protection objects for the account .
func (c *Client) ListProtections(ctx context.Context, params *ListProtectionsInput, optFns ...func(*Options)) (*ListProtectionsOutput, error) {
	if params == nil {
		params = &ListProtectionsInput{}
	}
	result, metadata, err := c.invokeOperation(ctx, "ListProtections", params, optFns, addOperationListProtectionsMiddlewares)
	if err != nil {
		return nil, err
	}
	out := result.(*ListProtectionsOutput)
	out.ResultMetadata = metadata
	return out, nil
}
func ( c * Client ) ListProtections ( ctx context . Context , params * ListProtectionsInput , optFns ... func ( * Options ) ) ( * ListProtectionsOutput , error ) { if params == nil { params = & ListProtectionsInput { } } result , metadata , err := c . invokeOperation ( ctx , " " , params , optFns , addOperationListProtectionsMiddlewares ) if err != nil { return nil , err } out := result . ( * ListProtectionsOutput ) out . ResultMetadata = metadata return out , nil }
Lists all Protection objects for the account.
Lists all Protection objects for the account .